Module:anui-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 22: Line 22:
local nasal_vowel = {["a"] = "ã", ["i"] = "ĩ", ["o"] = "õ", ["u"] = "ᴍ"}
local nasal_vowel = {["a"] = "ã", ["i"] = "ĩ", ["o"] = "õ", ["u"] = "ᴍ"}


local function nasal_to_oral(s)
local function oral_to_nasal(s)
return s
local switcheroo = {["a"] = "ã", ["i"] = "ĩ", ["o"] = "õ", ["u"] = "ᴍ"}
return switcheroo[s]
end
end


Line 33: Line 34:
{"([uùm]ʼ?)m", "%1ᴍ"}, {"m(ʼᴍ)", "ᴍ%1"}, -- tell apart between regular and syllabic <m>
{"([uùm]ʼ?)m", "%1ᴍ"}, {"m(ʼᴍ)", "ᴍ%1"}, -- tell apart between regular and syllabic <m>
{vowel .. vowel, {["aa"] = "aː˧", ["ee"] = "eː˧", ["ii"] = "iː˧", ["ɔɔ"] = "ɔː˧", ["uu"] = "uː˧",}},
{vowel .. vowel, {["aa"] = "aː˧", ["ee"] = "eː˧", ["ii"] = "iː˧", ["ɔɔ"] = "ɔː˧", ["uu"] = "uː˧",}},
{"(" .. vowel .. ")(" .. mw.ustring.toNFC("%1" .. NASAL) .. ")", "%" .. HIGHFALL},  
{"(" .. vowel .. ")" .. oral_to_nasal("%1"), "%" .. HIGHFALL},
}
}

Navigation menu