45,337
edits
No edit summary |
No edit summary |
||
Line 43: | Line 43: | ||
end | end | ||
local function open_to_closed(v | local function open_to_closed(v) | ||
local otc = {} | local otc = {} | ||
local switch = {["ɑ"] = "a", ["e"] = "ɛ", ["i"] = "ɪ", ["ɔ"] = "ɔ", ["u"] = "ʊ", ["y"] = "œ", ["ø"] = | local switch = {["ɑ"] = "a", ["e"] = "ɛ", ["i"] = "ɪ", ["ɔ"] = "ɔ", ["u"] = "ʊ", ["y"] = "œ", | ||
["ø"] = (w and "ɤ") or "œ"} | |||
for vc in gmatch(v, ".") do | for vc in gmatch(v, ".") do | ||
Line 142: | Line 132: | ||
{"ɣ([mn])", "ŋ%1ː"}, {"ɣ([vsl])", "k%1"}, | {"ɣ([mn])", "ŋ%1ː"}, {"ɣ([vsl])", "k%1"}, | ||
-- closed vowels | -- closed vowels | ||
{"(" .. vowel .. "*)(" .. consonant .. consonant .. ")", function(s1, s2) return | {"(" .. vowel .. "*)(" .. consonant .. consonant .. ")", function(s1, s2) return open_to_closed(s1) .. s2 end, {"w"}}, | ||
{"(" .. vowel .. "*)(" .. consonant .. consonant .. ")", function(s1, s2) return open_to_closed(s1) .. s2 end}, | {"(" .. vowel .. "*)(" .. consonant .. consonant .. ")", function(s1, s2) return open_to_closed(s1) .. s2 end}, | ||
{"(" .. vowel .. "*)(" .. consonant .. ")$", function(s1, s2) return | {"(" .. vowel .. "*)(" .. consonant .. ")$", function(s1, s2) return open_to_closed(s1) .. s2 end, {"w"}}, | ||
{"(" .. vowel .. "*)(" .. consonant .. ")$", function(s1, s2) return open_to_closed(s1) .. s2 end}, | {"(" .. vowel .. "*)(" .. consonant .. ")$", function(s1, s2) return open_to_closed(s1) .. s2 end}, | ||
{"ɑ$", "a"}, | {"ɑ$", "a"}, |