มอดูล:bua-sortkey
หน้าตา
- This มอดูล lacks a documentation subpage. Please create it.
- Useful links: subpage list • links • transclusions • testcases • sandbox
local export = {}
local u = mw.ustring.char
local a = u(0xF000)
local monographs = {
["ё"] = "е" .. a, ["ө"] = "о" .. a, ["ү"] = "у" .. a, ["һ"] = "х" .. a }
function export.makeSortKey(text, lang, sc)
for from, to in pairs(monographs) do
text = mw.ustring.gsub(text, from, to)
end
return text
end
return export