Module:User:Erutuon/transliteration/data
Jump to navigation
Jump to search
- This module sandbox lacks a documentation subpage. You may create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • user page • user talk page • userspace
This is a private module sandbox of Erutuon, for his own experimentation. Items in this module may be added and removed at Erutuon's discretion; do not rely on this module's stability.
local data = {}
data.ady = {}
data.ady.map = {
-- 1-character correspondences
[1] = {
["а"]="ā", ["б"]="b", ["в"]="v", ["г"]="ɣ", ["д"]="d", ["е"]="e", ["ё"]="ë", ["ж"]="ž",
["з"]="z", ["и"]="i", ["й"]="j", ["к"]="k", ["л"]="l", ["м"]="m", ["н"]="n", ["о"]="o",
["п"]="p", ["р"]="r", ["с"]="s", ["т"]="t", ["у"]="w", ["ф"]="f", ["х"]="x", ["ц"]="c",
["ч"]="č", ["ш"]="š", ["щ"]="š̍", ["ъ"]="”", ["ы"]="ə", ["ь"]="’", ["э"]="ă", ["ю"]="ju",
["я"]="jā", ["ӏ"]="ʾ", ["А"]="Ā", ["Б"]="B", ["В"]="V", ["Г"]="Ɣ", ["Д"]="D", ["Е"]="E",
["Ё"]="Ë", ["Ж"]="Ž", ["З"]="Z", ["И"]="I", ["Й"]="J", ["К"]="K", ["Л"]="L", ["М"]="M",
["Н"]="N", ["О"]="O", ["П"]="P", ["Р"]="R", ["С"]="S", ["Т"]="T", ["У"]="W", ["Ф"]="F",
["Х"]="X", ["Ц"]="C", ["Ч"]="Č", ["Ш"]="Š", ["Щ"]="Š̍", ["Ъ"]="”", ["Ы"]="Ə", ["Ь"]="’",
["Э"]="Ă", ["Ю"]="Ju", ["Я"]="Jā", ["Ӏ"]="ʾ"
},
-- 3- and 4-character correspondences
[3] = {
['кхъу'] = 'q°',
['Кхъу'] = 'Q°',
['гъу'] = 'ġ°',
['дзу'] = 'ʒ°',
['жъу'] = 'ẑ°',
['Кхъ'] = 'Q',
['кхъ'] = 'q',
['къу'] = 'q°',
['кӏу'] = 'ḳ°',
['пӏу'] = 'ṗ°',
['тӏу'] = 'ṭ°',
['хъу'] = 'χ°',
['шъу'] = 'ŝ°',
['шӏу'] = 'ṣ̂°',
['гу'] = 'g°',
['Гъу'] = 'Ġ°',
['Дзу'] = 'Ʒ°',
['Жъу'] = 'Ẑ°',
['Къу'] = 'Q°',
['Кӏу'] = 'Ḳ°',
['Пӏу'] = 'Ṗ°',
['Тӏу'] = 'Ṭ°',
['Хъу'] = 'Χ°',
['Шъу'] = 'Ŝ°',
['Шӏу'] = 'Ṣ̂°',
},
-- 2-character correspondences
[2] = {
['гь'] = 'ɡ’',
['гъ'] = 'ġ',
['дж'] = 'ǯ̍',
['дз'] = 'ʒ',
['жъ'] = 'ẑ',
['жь'] = 'ž̍',
['ку'] = 'k°',
['къ'] = 'q',
['кӏ'] = 'č̣̍',
['лъ'] = 'ł',
['лӏ'] = 'ḷ',
['пӏ'] = 'ṗ',
['сӏ'] = 'ṣ̣',
['тӏ'] = 'ṭ',
['фӏ'] = 'f̣',
['ху'] = 'x°',
['хъ'] = 'χ',
['хь'] = 'ḥ',
['цу'] = 'c°',
['цӏ'] = 'c̣',
['чӏ'] = 'č̣',
['чу'] = 'č̍°',
['чъ'] = 'č',
['шъ'] = 'ŝ',
['шӏ'] = 'ṣ̂',
['ӏу'] = 'ʾ°',
['ӏь'] = '՚̍',
['Гу'] = 'G°',
['Гь'] = 'ɡ’',
['Гъ'] = 'Ġ',
['Дж'] = 'Ǯ̍',
['Дз'] = 'Ʒ',
['Жъ'] = 'Ẑ',
['Жь'] = 'Ž̍',
['Ку'] = 'K°',
['Къ'] = 'Q',
['Кӏ'] = 'Č̣̍',
['Лъ'] = 'Ł',
['Лӏ'] = 'Ḷ',
['Пӏ'] = 'Ṗ',
['Сӏ'] = 'Ṣ̣',
['Тӏ'] = 'Ṭ',
['Фӏ'] = 'F̣',
['Ху'] = 'X°',
['Хъ'] = 'Χ',
['Хь'] = 'Ḥ',
['Цу'] = 'C°',
['Цӏ'] = 'C̣',
['Чӏ'] = 'Č̣',
['Чу'] = 'Č̍°',
['Чъ'] = 'Č',
['Шъ'] = 'Ŝ',
['Шӏ'] = 'Ṣ̂',
},
}
data.ady.arrays = { data.ady.map[1] }
data.ady.arrays[2] = {}
data.ady.arrays[3] = {}
local i = 0
local array = data.ady.arrays[2]
for grapheme, replacement in pairs(data.ady.map[2]) do
i = i + 1
array[i] = { grapheme, replacement }
end
local i = 0
local array = data.ady.arrays[3]
for grapheme, replacement in pairs(data.ady.map[3]) do
i = i + 1
array[i] = { grapheme, replacement }
end
return data