Module:mg-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 13: Line 13:
local consonants = "[bkdhjlmnɲprɾstʃθβðɡɣzʧɫʎ]"
local consonants = "[bkdhjlmnɲprɾstʃθβðɡɣzʧɫʎ]"
local vowels = "[aɑɐeɪɛiɔʊou]"
local vowels = "[aɑɐeɪɛiɔʊou]"
local voiced = "[bdhʎjmnɲβðɡɣz]"


local function same(foo, bar)
local function same(foo, bar)
Line 24: Line 25:
local prelims = {
local prelims = {
{"r", "ɾ"}, {"ch", "ʧ"}, {"qu", "k"}, {"il", "ʎ"}, {"ñ", "ɲ"}, {"g", "ɡ"}, {"c", "k"}, {"v", "b"},  
{"r", "ɾ"}, {"ch", "ʧ"}, {"qu", "k"}, {"il", "ʎ"}, {"ñ", "ɲ"}, {"g", "ɡ"}, {"c", "k"}, {"v", "b"},  
{"z", "θ"}, {"x", "ʃ"}, 
}
}


Line 47: Line 49:


local rules = {
local rules = {
{"([ɾs])·([ɾs])", function(s1, s2) return same(s1, s2) and "·ʰ" .. s1 or s1 .. s2 end},
{"([ɾs])·([ɾs])", function(s1, s2) return same(s1, s2) and "·ʰ" .. s1 or s1 .. s2 end}, -- rr and ss clusters, preaspirated
{".$", {["a"] = "ɐ", ["e"] = "ɪ", ["o"] = "ʊ", ["n"] = NASAL}},
{".$", {["a"] = "ɐ", ["e"] = "ɪ", ["o"] = "ʊ", ["n"] = NASAL}},
{"l·", "ɫ·"}, {"l$", "ɫ"}, -- velarized <l>
{"l·", "ɫ·"}, {"l$", "ɫ"}, -- velarized [l]
{"a(" .. velar .. ")", "ɑ%1"}, {"(" .. velar .. ")a", "%1ɑ"}, -- [a] backens next to velar consonants
{"a(" .. velar .. ")", "ɑ%1"}, {"(" .. velar .. ")a", "%1ɑ"}, -- [a] backens next to velar consonants
{"s·(" .. voiced .. ")", "z·%1"}, {"(" .. vowels .. ")·s(" .. vowels .. ")", "%1·z%2"}, -- [s]-voicing
{"im$", "y" .. NASAL}, {"m$", "u" .. NASAL}, {"n·", NASAL .. "·"}, -- [m] and [n] behave as nasalizers in codas and word-finally
{"ʧ", "(t)ʃ"},
}
}


Navigation menu