45,345
edits
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
local gmatch = mw.ustring.gmatch | local gmatch = mw.ustring.gmatch | ||
local gsub = mw.ustring.gsub | local gsub = mw.ustring.gsub | ||
local UNRELEASED = u(0x031A) -- COMBINING LEFT ANGLE ABOVE. ̚ | |||
local NASALIZED = u(0x0303) -- COMBINING TILDE. ̃ | |||
local consonant = "[" .. "mpbvntdsṡrklgġhįų" .. "]" | local consonant = "[" .. "mpbvntdsṡrklgġhįų" .. "]" | ||
local vowel = "[" .. | local front_vowel = "iɪyeøɛœæa" | ||
local back_vowel = "uɔ" .. NASALIZED .. "?ɑʊ" | |||
local vowel = "[" .. front_vowel .. back_vowel .. "]" | |||
local rules = { | local rules = { | ||
Line 43: | Line 48: | ||
["ġ"] = "x", | ["ġ"] = "x", | ||
}, | }, | ||
{ -- | { --all vowels as open (open-closed distinctions are computed later) | ||
[" | ["a"] = "ɑ", ["ả"] = "æː", | ||
["ę"] = "æ", | |||
[" | |||
["ẻ"] = "eː", | ["ẻ"] = "eː", | ||
["ỉ"] = "iː", | ["ỉ"] = "iː", | ||
[" | ["o"] = "ɔ", ["ỏ"] = "ʊː", | ||
["ủ"] = "uː", | ["ủ"] = "uː", | ||
["ỷ"] = "yː", | ["ỷ"] = "yː", | ||
[" | ["ů"] = "ø", ["ẻu"] = "øː", | ||
["õ"] = "ɔ̃", ["õu"] = "ɔ̃ː̃", | |||
}, | }, | ||
{ | { | ||
["^k( | ["^k(" .. front_vowel .. ")"] = "c%1", --word-initial [k] palatalizes before front-vowels | ||
["^([ptkc])"] = "%1ʰ", --voiceless stops word-initially become aspirated | ["^([ptkc])"] = "%1ʰ", --voiceless stops word-initially become aspirated | ||
["^gį( | ["^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) | ||
}, | }, |