Module:anui-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 23: Line 23:


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


Line 34: 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 .. ")" .. oral_to_nasal("%1"), "%1ː" .. HIGHFALL},
{"(" .. vowel .. ")(" .. oral_to_nasal("%1") .. ")", "%1ː" .. HIGHFALL},
}
}

Navigation menu