Module:qay-pron: Difference between revisions

No edit summary
No edit summary
Line 21: Line 21:
local vowels = "[a" .. front .. back .. "]"
local vowels = "[a" .. front .. back .. "]"
-- ʤʧ
-- ʤʧ
local function open_to_closed(v)
local otc = {}
local switch = {["e"] = "ɛ", ["i"] = "ɪ", ["ɔ"] = "ɔ", ["u"] = "ʊ", ["a"] = "a"}
for vc in gmatch(v, ".") do
vc = gsub(vc, vc, switch[vc])
table.insert(otc, vc)
end
return table.concat(otc)
end
local phonemic_rules = {
local phonemic_rules = {
{"g", "ɡ"}, {"([tkdɡ])y", "%1ʲ"},
{"ng", "ŋ"}, {"y", "j"}, {"g", "ɡ"}, {"([tkdɡ])y", "%1ʲ"}, {"ā", "aː"},  {"ē", "eː"}, {"ī", "iː"}, {"ō", "oː"}, {"ū", "uː"},
}
}


local phonetic_rules = {
local phonetic_rules = {
{"g", "ɡ"}, {"[tk]y", "ʧ"}, {"[dɡ]y", "ʤ"}, {"r", "ɾ"}, {"h([" .. front .. "])", "ç%1"}, {"h([" .. back .. "])", "x%1"},
{"ng", "ŋ"}, {"y", "j"}, {"g", "ɡ"}, {"[tk]y", "ʧ"}, {"[dɡ]y", "ʤ"}, {"r", "ɾ"}, {"h([" .. front .. "])", "ç%1"},
}
{"h([" .. back .. "])", "x%1"}, {"ā", ""}, {"ē", ""}, {"ī", ""}, {"ō", ""}, {"ū", ""}, {"a", "ä"},
 
local deacuter = {
["á"] = "a", ["é"] = "e", ["í"] = "i", ["ó"] = "o", ["ú"] = "u", ["ý"] = "y",
}
}