Module:qay-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 45: Line 45:


local phonemic_rules = {
local phonemic_rules = {
{"[ˈ·][ˈ·]", "ˈ"}, {"([^nŋ][·ˈ])([tkdɡ])j", "%1%2ʲ"},  
{"ˈ·", "ˈ"}, {"·ˈ", "ˈ"}, {"([^nŋ][·ˈ])([tkdɡ])j", "%1%2ʲ"},  
{"(" .. consonants .. ")(·?ˈ?)(" .. consonants .. ")", function(c1, st, c2) return same(c1,c2) and st .. c1 or c1 .. st .. c2 end},
{"(" .. consonants .. ")(·?ˈ?)(" .. consonants .. ")", function(c1, st, c2) return same(c1,c2) and st .. c1 or c1 .. st .. c2 end},
{"jj", "j"},  
{"jj", "j"},  
Line 51: Line 51:


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 .. "?)(" .. vowels .. "*)(" .. consonants .. ")", function(st,c1,v,c2) return st .. c1 .. laxen(v) .. c2 end},
{"([·ˈ])(" .. consonants .. "?)(" .. vowels .. "*)(" .. consonants .. ")", function(st,c1,v,c2) return st .. c1 .. laxen(v) .. c2 end},