45,640
edits
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
local sub = mw.ustring.sub | local sub = mw.ustring.sub | ||
local TILDEB = u(0x0330) -- COMBINING TILDE BELOW ̰◌ | local TILDEB = u(0x0330) -- COMBINING TILDE BELOW ̰◌ | ||
Line 28: | Line 27: | ||
local function redup(word) | local function redup(word) | ||
word = word:gsub("([ḛḭṵaɔ]" .. TILDEB .. "?)", {["ḛ"] = "è", ["ḭ"] = "ì", ["ṵ"] = "ù", ["a" .. TILDEB] = "à", [" | word = word:gsub("([ḛḭṵaɔ]" .. TILDEB .. "?)", {["ḛ"] = "è", ["ḭ"] = "ì", ["ṵ"] = "ù", ["a" .. TILDEB] = "à", ["o" .. TILDEB] = "ò"}) | ||
word = m(word) | word = m(word) | ||
Line 47: | Line 46: | ||
elseif uvular then word = gsub(C, "([ʇǃǂǁʘ])x", "%1") .. v .. C .. r | elseif uvular then word = gsub(C, "([ʇǃǂǁʘ])x", "%1") .. v .. C .. r | ||
else word = C .. v .. C .. r end | else word = C .. v .. C .. r end | ||
word = word:gsub("ᴍ", "m") | |||
if not args["grave"] then | |||
word = word:gsub("[àèìòù]", {["è"] = "ḛ", ["ì"] = "ḭ", ["ù"] = "ṵ", ["à"] = "a" .. TILDEB, ["ò"] = "o" .. TILDEB}) | |||
end | |||
return word | return word |