မဝ်ဂျူ:udm-sortkey
မံက်ပြာကတ်
Documentation for this module may be created at မဝ်ဂျူ:udm-sortkey/doc
local export = {}
local u = mw.ustring.char
local a = u(0xF000)
local oneChar = {
["ё"] = "е" .. a, ["ӝ"] = "ж" .. a, ["ӟ"] = "з" .. 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