মডিউল:Syrc-entryname
অবয়ব
এই মডিউলের জন্য মডিউল:Syrc-entryname/নথি-এ নথিপত্র তৈরি করা হয়ে থাকতে পারে
local export = {}
local u = mw.ustring.char
function export.makeEntryName(text, lang, sc)
-- tilde, macron, dot above, diaeresis, dot below, breve below, tilde below, macron below, superscript aleph, pthaha, zqapha, rbasa, zlama, hbasa, esasa, rwaha, feminine dot, qushshaya
local replacements = {
u(0x303), u(0x304), u(0x307), u(0x308), u(0x323), u(0x32E), u(0x330), u(0x331), u(0x711), "[" .. u(0x730) .. "-" .. u(0x74A) .. "]"
}
for _, replacement in ipairs(replacements) do
text = mw.ustring.gsub(text, replacement, "")
end
return text
end
return export