Module:kilta-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 44: Line 44:
{"β([ie])", "v%1"},
{"β([ie])", "v%1"},
{"^(ˈ?)(" .. vowels .. ")", "%1ʔ%2"},
{"^(ˈ?)(" .. vowels .. ")", "%1ʔ%2"},
}
local deacuter = {
["á"] = "a", ["é"] = "e", ["í"] = "i", ["ó"] = "o", ["ú"] = "u",
}
}


Line 52: Line 56:
{"ü", "au̯"},
{"ü", "au̯"},
{"ï", "ai̯"},
{"ï", "ai̯"},
{"[·%.]ˈ", "ˈ"}, {"·", "."}, {"([áéíóú])", function(v) return gsub(mw.ustring.toNFD(v), A, "ː") end},
{"[·%.]ˈ", "ˈ"}, {"·", "."}, {"([áéíóú])", function(v) return deacuter[v] .. "ː" end},
}
}