Module:qay-pron: Difference between revisions
No edit summary |
No edit summary |
||
| Line 21: | Line 21: | ||
local function laxen(v) | local function laxen(v) | ||
local otc = {} | local otc = {} | ||
local switch = {["e"] = "ɛ", ["i"] = "ɪ", [" | local switch = {["e"] = "ɛ", ["i"] = "ɪ", ["o"] = "ɔ", ["u"] = "ʊ", ["a"] = "a"} | ||
for vc in gmatch(v, ".") do | for vc in gmatch(v, ".") do | ||
| Line 51: | Line 51: | ||
{"·ˈ", "ˈ"}, {"([^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(c1,v,c2) return c1 .. laxen(v) .. c2 end}, | {"^(" .. consonants .. "?)(" .. vowels .. "*)(" .. consonants .. ")$", function(c1,v,c2) return c1 .. laxen(v) .. c2 end}, | ||
{"(" .. consonants .. ")(" .. consonants .. ")", function(c1, c2) return same(c1,c2) and c1 or c1 .. c2 end}, | {"(" .. consonants .. ")(" .. consonants .. ")", function(c1, c2) return same(c1,c2) and c1 or c1 .. c2 end}, | ||