45,641
edits
No edit summary |
No edit summary |
||
Line 39: | Line 39: | ||
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"] = "œ", | ||
["ø"] = "ü",} -- dialectal variation, will be changed later | ["ø"] = "ü",} -- dialectal variation, will be changed later | ||
Line 151: | Line 151: | ||
{"(" .. 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 open_to_closed(s1) .. s2 end}, | {"(" .. vowel .. "*)(" .. consonant .. ")$", function(s1, s2) return open_to_closed(s1) .. s2 end}, | ||
{"(" .. vowel .. "*ː?)(" .. consonant .. "ɨ)", function(s1, s2) return open_to_closed(s1) .. s2 end}, | {"(" .. vowel .. "*)(ː?)(" .. consonant .. "ɨ)", function(s1, s2, s3) return open_to_closed(s1) .. s2 .. s3 end}, | ||
{"ɑ$", "a"}, | {"ɑ$", "a"}, | ||
{"(" .. vowel .. ")đ$", "%1ʔ%1"}, -- -Vt becomes -VʔV (or -Vht, not considered) | {"(" .. vowel .. ")đ$", "%1ʔ%1"}, -- -Vt becomes -VʔV (or -Vht, not considered) |