Module:mg-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 27: Line 27:


local function remove_acute(str)
local function remove_acute(str)
return mw.ustring.toNFC(gsub(mw.ustring.toNFD(str), ACUTE, ""))
str = mw.ustring.toNFD(str)
str = str:gsub(ACUTE, "")
str = mw.ustring.toNFC(str)
return str
end
end