မဝ်ဂျူ:egy-utilities/data
မံက်ပြာကတ်
Documentation for this module may be created at မဝ်ဂျူ:egy-utilities/data/doc
local sortkey_replacements = {}
local alphabet = "ꜣ j y ꜥ w b p f m n r h ḥ ḫ ẖ z s š q k g t ṯ d ḏ"
local replacement_codepoint = 0xE000 -- Private Use Area; the ConScript Unicode Registry uses this particular section for Tengwar
for letter in alphabet:gmatch("%S+") do
if mw.ustring.len(letter) > 1 then
error("The letter " .. letter .. " is not one character.")
end
replacement_codepoint = replacement_codepoint + 1
sortkey_replacements[letter] = mw.ustring.char(replacement_codepoint)
end
return sortkey_replacements