Module:kilta-pron: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 36: Line 36:
return term
return term
end
end
local deacuter = {
["á"] = "a", ["é"] = "e", ["í"] = "i", ["ó"] = "o", ["ú"] = "u", ["ý"] = "y",
}


local phonemic_rules = {
local phonemic_rules = {
Line 45: Line 41:
{"v", "β"}, {"r", "ɾ"}, {"h", "x"},
{"v", "β"}, {"r", "ɾ"}, {"h", "x"},
{"ë", "ə"}, {"ëë+", "əː"}, {"([áéíóú])", function(v) return deacuter[v] end},
{"ë", "ə"}, {"ëë+", "əː"}, {"([áéíóú])", function(v) return mw.ustring.toNFD(v):gsub(A, "ː") end},
{"kʞ", "ʞː"}, {"(" .. consonants .. ")(" .. consonants .. ")",
{"kʞ", "ʞː"}, {"(" .. consonants .. ")(" .. consonants .. ")",
Line 65: Line 61:


local last_rules = {
local last_rules = {
{"ʞ", "kʷ"},
{"ʞ", "kʷ"}, {"ƕ", "xʷ"}, {"ʧ", "t͡ʃ"},
{"ƕ", "xʷ"},
{"ꜷ", "au"}, {"ꜽ", "ai"},
{"ʧ", "t͡ʃ"},
{"v", "β"},
}
}