请输入您要查询的百科知识:

 

词条 Module:Sandbox/Cpt.a.haddock/test
释义

local getArgs = require('Module:Arguments').getArgs

local mSep = require('Module:Separated entries')

local p = {}

svaraDesc = {

["Ṣ"] = {desc = "Shadja (Sa, lower octave)", carnatic = "Ṣ", hindustani = "Ṣ", western = "C"},

["S"] = {desc = "Shadja (Sa)", carnatic = "S", hindustani = "S", western = "C"},

["Ṡ"] = {desc = "Shadja (Sa, higher octave)", carnatic = "Ṡ", hindustani = "Ṡ", western = "C"},

["R₁"] = {desc = "Shuddha Rishabha", carnatic = "R₁", hindustani = "Ṟ", western = "C"},

["R₂"] = {desc = "Chatushruti Rishabha", carnatic = "R₂", hindustani = "R", western = "C"},

["R₃"] = {desc = "Shatshruti Rishabha", carnatic = "R₃", hindustani = "G̱", western = "C"},

["G₁"] = {desc = "Shuddha Gandhara", carnatic = "G₁", hindustani = "R", western = "C"},

["G₂"] = {desc = "Sadharana Gandhara", carnatic = "G₂", hindustani = "G̱", western = "C"},

["G₃"] = {desc = "Antara Gandhara", carnatic = "G₃", hindustani = "G", western = "C"},

["M₁"] = {desc = "Shuddha Madhyama", carnatic = "M₁", hindustani = "M", western = "C"},

["M₂"] = {desc = "Prati Madhyama", carnatic = "M₂", hindustani = "M̄", western = "C"},

["P"] = {desc = "Pancham (Pa)", carnatic = "P", hindustani = "P", western = "C"},

["D₁"] = {desc = "Shuddha Dhaivata", carnatic = "D₁", hindustani = "Ḏ", western = "C"},

["D₂"] = {desc = "Chatushruti Dhaivata", carnatic = "D₂", hindustani = "D", western = "C"},

["D₃"] = {desc = "Shatshruti Dhaivata", carnatic = "D₃", hindustani = "Ṉ", western = "C"},

["N₁"] = {desc = "Shuddha Nishada", carnatic = "N₁", hindustani = "D", western = "C"},

["N₂"] = {desc = "Kaishiki Nishada", carnatic = "N₂", hindustani = "Ṉ", western = "C"},

["N₃"] = {desc = "Kakali Nishada", carnatic = "N₃", hindustani = "N", western = "C"},

["Ṟ"] = {desc = "Komal Re", carnatic = "R₁", hindustani = "Ṟ", western = "C"},

["R"] = {desc = "Shuddha Re", carnatic = "R₂", hindustani = "R", western = "C"},

["G̱"] = {desc = "Komal Gandhara", carnatic = "G₂", hindustani = "G̱", western = "C"},

["G"] = {desc = "Shuddha Gandhara", carnatic = "G₃", hindustani = "G", western = "C"},

["M"] = {desc = "Madhyama", carnatic = "M₁", hindustani = "M", western = "C"},

["M̄"] = {desc = "Tivra Ma", carnatic = "M₂", hindustani = "M̄", western = "C"},

["Ḏ"] = {desc = "Komal Dhaivata", carnatic = "D₁", hindustani = "Ḏ", western = "C"},

["D"] = {desc = "Shuddha Dhaivata", carnatic = "D₂", hindustani = "D", western = "C"},

["Ṉ"] = {desc = "Komal Nishada", carnatic = "N₂", hindustani = "Ṉ", western = "C"},

["N"] = {desc = "Shuddha Nishada", carnatic = "N₃", hindustani = "N", western = "C"},

}

function p.test(frame)

local output

local hindustani = {}

local entry1, entry2

local v = 'S'

local args = getArgs(frame) -- make a local pointer to the frame.args table

if not args[1] then

return 'error: no input'; -- minimal error check to see if we got required input

end

entry2 = svaraDesc[v]['hindustani']

-- print(p.test({'S'}))

for key, value in pairs(args) do

mw.log(key, value)

entry1 = svaraDesc[value]['hindustani']

hindustani[key] = entry1

mw.logObject(entry1)

end

hindustani['separator'] = " "

local output = mSep.main(hindustani)

return output

end

function p.hello(frame)

mw.log("foo")

end

return p

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/10 14:22:19