Module:kilta-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
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 41: Line 45:
{"v", "β"}, {"r", "ɾ"}, {"h", "x"},
{"v", "β"}, {"r", "ɾ"}, {"h", "x"},
{"ë", "ə"}, {"ëë+", "əː"}, {"([áéíóú])", function(v) return match(mw.ustring.toNFD(v), "^.") .. "ː" end},
{"ë", "ə"}, {"ëë+", "əː"}, {"([áéíóú])", function(v) return deacuter[v] end},
{"kʞ", "ʞː"}, {"(" .. consonants .. ")(" .. consonants .. ")",
{"kʞ", "ʞː"}, {"(" .. consonants .. ")(" .. consonants .. ")",
Line 48: Line 52:


local phonetic_rules = {
local phonetic_rules = {
{"", ""}, {"", ""}, {"", ""}, {"", ""},  
{"á", "a"}, {"", ""}, {"", ""}, {"", ""},  
{"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""},  
{"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""},  
{"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""},  
{"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""},  

Navigation menu