local U = mw.ustring.char
local caron = U(0x30C) -- caron
local circumflex = U(0x302) -- circumflex
local diaeresis = U(0x308) -- diaeresis
local macron = U(0x304) -- macron
local ring_above = U(0x30A) -- ring above
local data = {
{
= "а̄", -- ā
= "г̌", -- ɣ̌
= "е", -- ē
= "е̂", -- ê
= "е̂", -- ê
= "е̂", -- ǟ
= "з̌", -- ž
= "ӣ", -- ī
= "о", -- ō
= "ӯ", -- ū
= "у̊", -- ū̊
= "х̌", -- 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