45,625
edits
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
local NASALIZED = u(0x0303) -- COMBINING TILDE. ̃ | local NASALIZED = u(0x0303) -- COMBINING TILDE. ̃ | ||
local consonant = "[ | local consonant = "[mnɲŋpbtdcɟkgʔvðs]" | ||
local front_vowel = "iɪyeøɛœæa" | local front_vowel = "iɪyeøɛœæa" | ||
local back_vowel = "uɔ" .. NASALIZED .. "?ɑʊ" | local back_vowel = "uɔ" .. NASALIZED .. "?ɑʊ" | ||
local vowel = "[" .. front_vowel .. back_vowel .. "]" | local vowel = "[" .. front_vowel .. back_vowel .. "]" | ||
local function open_to_closed(v) | |||
local switch = { | |||
["ɑ"] = "a", ["e"] = "ɛ", ["i"] = "ɪ", ["u"] = "ʊ", ["y"] = "œ", ["ø"] = "œ", | |||
} | |||
for openv, closedv in ipairs(switch) do | |||
return gsub(v, openv, closedv) | |||
end | |||
end | |||
local rules = { | local rules = { | ||
Line 65: | Line 74: | ||
["^gį([" .. front_vowel .. "])"] = "d͡z%1", --<gį> word-initially and before front vowels is pronounced [d͡z] | ["^gį([" .. front_vowel .. "])"] = "d͡z%1", --<gį> word-initially and before front vowels is pronounced [d͡z] | ||
["(" .. vowel .. ")t$"] = "%1ʔ%1" -- -Vt becomes -VʔV (or -Vht, not considered) | ["(" .. vowel .. ")t$"] = "%1ʔ%1" -- -Vt becomes -VʔV (or -Vht, not considered) | ||
}, | |||
{ | |||
["([" .. m_sm.diphthongs .. "])(" .. consonant] = open_to_closed("%1"), | |||
}, | }, | ||
} | } |