45,581
edits
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
local vowel = "[" .. back_vowel .. front_vowel .. "]" | local vowel = "[" .. back_vowel .. front_vowel .. "]" | ||
local oral_to_nasal = {["a"] = "ã", ["i"] = "ĩ", ["ɔ"] = "ṍ", ["u"] = "ᴍ"} -- ṍ = ɔ̃ | local oral_to_nasal = {["a"] = "ã", ["i"] = "ĩ", ["ɔ"] = "ṍ", ["u"] = "ᴍ"} -- ṍ = ɔ̃ | ||
local modal_to_glottal = {["a"] = "à", ["i"] = "ì", ["ɔ"] = "ò", ["u"] = "ù"} | local modal_to_glottal = {["a"] = "à", ["e"] = "è", ["i"] = "ì", ["ɔ"] = "ò", ["u"] = "ù"} | ||
local glottal_to_modal = {["à"] = "a" .. CREAKY, ["è"] = "e" .. CREAKY, ["ì"] = "i" .. CREAKY, ["ò"] = "ɔ" .. CREAKY, ["ù"] = "u" .. CREAKY} | |||
local nasalized = "[ãĩṍᴍ]" | local nasalized = "[ãĩṍᴍ]" | ||
local glottalic = "[àèìòù]" | local glottalic = "[àèìòù]" | ||
Line 38: | Line 39: | ||
{"([ḛḭṵaɔ]" .. TILDEBELOW .. "?)", {["ḛ"] = "è", ["ḭ"] = "ì", ["ṵ"] = "ù", ["a" .. TILDEBELOW] = "à", ["ɔ" .. TILDEBELOW] = "ò"}}, | {"([ḛḭṵaɔ]" .. TILDEBELOW .. "?)", {["ḛ"] = "è", ["ḭ"] = "ì", ["ṵ"] = "ù", ["a" .. TILDEBELOW] = "à", ["ɔ" .. TILDEBELOW] = "ò"}}, | ||
{"([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 .. ")", function(s1, s2) return same | {"(" .. vowel .. ")(".. vowel .. ")", function(s1, s2) return same and s1 .. "ː˧" or s1 .. s2 .. "˧" end}, | ||
{"(" .. vowel .. ")(" .. nasalized .. ")", function(s1, s2) return same | {"(" .. vowel .. ")(" .. nasalized .. ")", function(s1, s2) return same and s2 .. "ː" .. HIGHFALL or oral_to_nasal[s1] .. s2 .. HIGHFALL end}, | ||
{"(" .. glottalic .. ")([" .. front_vowel .. "])", function(s1, s2) return same and s1 .. "ː˦" or modal_to_oral[s1] .. modal_to_oral[s2] .. "˨" end}, | {"(" .. glottalic .. ")([" .. front_vowel .. "])", function(s1, s2) return same and s1 .. "ː˦" or modal_to_oral[s1] .. modal_to_oral[s2] .. "˨" end}, | ||