မာတိကာသို့ ခုန်သွားရန်

မော်ဂျူး:Syrc-entryname

ဝစ်ရှင်နရီ မှ

Documentation for this module may be created at မော်ဂျူး:Syrc-entryname/doc

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