Jump to content

Module:IPA symbol/sandbox

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Lfdder (talk | contribs) at 12:25, 19 July 2013 (Created page with 'local p = {} local symbols = { [{ "101" ,"p" }] = { ["name"] = "voiceless bilabial stop" ,["wpname"] = "voiceless bilabial stop" ...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
local p = {}
local symbols = {
  [{
    "101"
   ,"p"
  }] = {
         ["name"] = "voiceless bilabial stop"
        ,["wpname"] = "voiceless bilabial stop"
        ,["soundfile"] = "voiceless bilabial stop.ogg"
        ,["type"] = "consonant"
       }
 ,[{
    "101 408"
   ,"p̪"
  }] = {
         ["name"] = "voiceless labiodental stop"
        ,["wpname"] = "voiceless labiodental stop"
        ,["soundfile"] = "voiceless labiodental stop.ogg"
        ,["type"] = "consonant"
       }
}

function p.name(frame)
  for k, v in pairs(symbols) do
    for x, y in pairs(k) do
      if y == frame.args[1] then
        return v["name"]
      end
    end
  end
end

return p