Module:Deranize: Difference between revisions

No change in size ,  20:13, 18 December 2022
m
untone → detone
(typosquat)
m (untone → detone)
Line 1: Line 1:
-- either mw.ustring.toNFD or mw.ustring.match doesn't work properly, so resorting to this for the time being (lol)
-- either mw.ustring.toNFD or mw.ustring.match doesn't work properly, so resorting to this for the time being (lol)
local untone = {
local detone = {
   ["a"] = {"a", 1},
   ["a"] = {"a", 1},
   ["u"] = {"u", 1},
   ["u"] = {"u", 1},
Line 89: Line 89:
       ix = postcoda
       ix = postcoda
     end
     end
     local nucleus, tone = unpack(untone[medial])
     local nucleus, tone = unpack(detone[medial])
     local glyphs = {initial, nucleus, tone}
     local glyphs = {initial, nucleus, tone}
     if coda ~= "" then
     if coda ~= "" then