Module:kilta-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
local sub = string.sub
local sub = mw.ustring.sub
local find = string.find
local find = mw.ustring.find
local gmatch = string.gmatch
local gmatch = mw.ustring.gmatch
local gsub = string.gsub
local gsub = mw.ustring.gsub
local match = string.match
local match = mw.ustring.match
local u = mw.ustring.char
local u = mw.ustring.char
local gsplit = mw.text.gsplit
local gsplit = mw.text.gsplit
Line 52: Line 52:
{"ü", "au̯"},
{"ü", "au̯"},
{"ï", "ai̯"},
{"ï", "ai̯"},
{"[·%.]ˈ", "ˈ"}, {"·", "."}, {"([áéíóú])", "A"},
{"[·%.]ˈ", "ˈ"}, {"·", "."}, {"([áéíóú])", function(v) return gsub(mw.ustring.toNFD(v), A, "ː") end},
}
}