Module:kilta-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 15: Line 15:


local consonants = "[pβmtsnɾlʧkxʷʞƕː]"
local consonants = "[pβmtsnɾlʧkxʷʞƕː]"
local vowels = "[aeiouəꜷꜽː]"
local vowels = "[aeiouəꜷꜽ]"


local export = {}
local export = {}
Line 41: Line 41:
{"v", "β"}, {"r", "ɾ"}, {"h", "x"},
{"v", "β"}, {"r", "ɾ"}, {"h", "x"},
{"ë", "ə"}, {"e" .. D, "ə"}, {"ëë+", "əː"}, {"e" .. D .. "e" .. D, "əː"},
{"ë", "ə"}, {"ëë+", "əː"}, {"([aeiou])", function(v) return match(mw.ustring.toNFD(v), "^.") end},
{"([aeiou])".. A, "%1ː"}, {"([aeiou])", function(v) return match(v, "^.") end},
{"kʞ", "ʞː"}, {"(" .. consonants .. ")(" .. consonants .. ")",
{"kʞ", "ʞː"}, {"(" .. consonants .. ")(" .. consonants .. ")",
Line 68: Line 67:


function export.crux(term)
function export.crux(term)
term = mw.ustring.lower(mw.ustring.toNFD(term))
term = mw.ustring.lower(term)
local phonemic, phonetic = term, term
local phonemic, phonetic = term, term