Documentation for this module may be created at Module:Sandbox/EnronEvolved/ipatable/doc
-- Testing a way to dynamically generate IPA pulmonic consonant tables.
p = {}
function tableToString (t)
local s = {"{"}
for i=1,#t do s[#s+1] = t[i] end
s[#s+1] = "}"
s = table.concat(s)
return s
end
function p.mktable(frame)
local pArgs = frame:getParent().args
local tArgs = frame.args
ipaTable = {
p = {0,0,0}
}
--[[ Each entry corresponds to a coordinate in a 'one character per cell'
table. Place of articulation first (0 to 10) then manner (0 to 7) and
then voicing (0 is unvoiced, 1 is voiced)]]
arg = tArgs[1]
return "<nowiki>" .. tableToString(ipaTable[arg]) .. "</nowiki>"
end
return p