Module:qay-pron: Difference between revisions

No edit summary
No edit summary
Line 37: Line 37:


local shared_rules = {
local shared_rules = {
{"n(%.?)([kg])", "ŋ%1%2"}, {"ŋg", "ŋ"}, {"c", "ʧ"}, {"j", "ʤ"}, {"y", "j"}, {"g", "ɡ"},  
{"n(·?)([kg])", "ŋ%1%2"}, {"ŋg", "ŋ"}, {"c", "ʧ"}, {"j", "ʤ"}, {"y", "j"}, {"g", "ɡ"},  
-- Long vowels
-- Long vowels
{"ā", "aː"},  {"ē", "eː"}, {"ī", "iː"}, {"ō", "oː"}, {"ū", "uː"},
{"ā", "aː"},  {"ē", "eː"}, {"ī", "iː"}, {"ō", "oː"}, {"ū", "uː"},
Line 48: Line 48:


local phonetic_rules = {
local phonetic_rules = {
{"([^nŋ]%.?)[tk]j", "%1ʧ"}, {"([^nŋ]%.?)[dɡ]j", "%1ʤ"}, {"r", "ɾ"},
{"([^nŋ]·)[tk]j", "%1ʧ"}, {"([^nŋ]·)[dɡ]j", "%1ʤ"}, {"r", "ɾ"},
{"h([" .. front .. "])", "ç%1"}, {"h([" .. back .. "])", "x%1"},  
{"h([" .. front .. "])", "ç%1"}, {"h([" .. back .. "])", "x%1"},  
--{"(" consonants .. vowel)", ""},
--{"(" consonants .. vowel)", ""},
Line 76: Line 76:
end
end


return table.concat(#noa > 1 and noa or syll, ".")
return table.concat(#noa > 1 and noa or syll, "·")
end
end