local U = mw.ustring.char
local acute = U(0x301) -- acute
local caron = U(0x30C) -- caron
local macron = U(0x304) -- macron
local ring_above = U(0x30A) -- ring above
local data = {
{
= "а̄", -- ā
= "г̊", -- g̊
= "ѓ", -- ǵ
= "ғ̊", -- ɣ̊
= "г̌", -- ɣ̌
= "ж", -- ž
= "к̊", -- k̊
= "ќ", -- ḱ
= "қ̊", -- q̊
= "х̊", -- x̊
= "х̌", -- x̌
= "х̌̊", -- x̌̊
= "ч", -- č
= "ҷ", -- ǰ
= "ш", -- š
= "э",
},
{
= "а",
= "а̄",
= "б",
= "в",
= "в̌",
= "г",
= "ѓ",
= "ғ",
= "д",
= "д̌",
= "е",
= "ә",
= "ж",
= "з",
= "и",
= "й",
= "к",
= "ќ",
= "қ",
= "л",
= "м",
= "н",
= "о",
= "п",
= "р",
= "с",
= "т",
= "т̌",
= "у",
= "ф",
= "х",
= "ҳ",
= "ц",
= "ч",
= "ҷ",
= "ш",
},
}
-- Add replacements for capitals: both an all-caps version ("JA")
-- and capitalized version ("Ja").
for _, replacements in ipairs(data) do
-- sortedPairs saves the list of table keys so that we can modify the table
-- while iterating over it.
for text, replacement in require "Module:table".sortedPairs(replacements) do
replacement = mw.ustring.upper(replacement)
replacements = replacement
replacements = replacement
end
end
return data