Jump to content

Module:tyv-sortkey

Wiktionary වෙතින්


local export = {}
local u = mw.ustring.char
local a = u(0xF000)

local oneChar = {
	["ё"] = "е" .. a, ["ң"] = "н" .. a, ["ө"] = "о" .. a, ["ү"] = "у" .. a
}

function export.makeSortKey(text, lang, sc)
	return mw.ustring.upper(mw.ustring.gsub(mw.ustring.lower(text), ".", oneChar))
end

return export
"https://si.wiktionary.org/w/index.php?title=Module:tyv-sortkey&oldid=224012" වෙතින් සම්ප්‍රවේශනය කෙරිණි