Module:guim-translit

From Linguifex
Jump to navigation Jump to search

Documentation for this module may be created at Module:guim-translit/doc

local export = {}
 
local tt = {
	["А̄въ"]='Āwˤ', ["а̄въ"]='āwˤ', ["А̄йъ"]='Ājˤ', ["а̄йъ"]='ājˤ', ["А̄"]='Ā', ["а̄"]='ā', ["Авъ"]='Awˤ', ["авъ"]='awˤ', ["Айъ"]='Ajˤ', ["айъ"]='ajˤ', ["А"]='A', ["а"]='a', ["Б"]='B', ["б"]='b', ["В"]='W', ["в"]='w', ["Гъ"]='Ğ', ["гъ"]='ğ', ["Гь"]='H', ["гь"]='h', ["Г"]='G', ["г"]='g', ["Дз"]='Ʒ', ["дз"]='ʒ', ["Дж"]='Ǯ', ["дж"]='ǯ', ["Д"]='D', ["д"]='d', ["Е̄"]='Jē', ["е̄"]='jē', ["Е"]='Jе', ["е"]='je', ["Ё̄"]='Jō', ["ё̄"]='jō', ["Ё"]='Jo', ["ё"]='jo', ["Ж"]='Ž', ["ж"]='ž', ["З"]='Z', ["з"]='z', ["Ӣъ"]='Īˤ', ["ӣъ"]='īˤ', ["Ӣ"]='Ī', ["ӣ"]='ī', ["Иъ"]='Iˤ', ["иъ"]='iˤ', ["И"]='I', ["и"]='i', ["Ккьӏ"]='Ttł’', ["ккьӏ"]='ttł’', ["Ккь"]='Ttł', ["ккь"]='ttł', ["Кьӏ"]='Tł’', ["кьӏ"]='tł’', ["Кь"]='Tł', ["кь"]='tł', ["Къӏ"]='Q’', ["къӏ"]='q’', ["Къ"]='Q', ["къ"]='q', ["Кӏ"]='K’', ["кӏ"]='k’', ["К"]='K', ["к"]='k', ["Лъ"]='Ł', ["лъ"]='ł', ["Лл"]='Łł', ["лл"]='łł', ["Л"]='L', ["л"]='l', ["М"]='M', ["м"]='m', ["Н"]='N', ["н"]='n', ["О̄"]='Ō', ["о̄"]='ō', ["О"]='O', ["о"]='o', ["Пӏ"]='P’', ["пӏ"]='p’', ["П"]='P', ["п"]='p', ["Ръ"]='Rh', ["ръ"]='rh', ["Р"]='R', ["р"]='r', ["С"]='S', ["с"]='s', ["Тӏ"]='T’', ["тӏ"]='t’', ["Т"]='T', ["т"]='t', ["Ӯъ"]='Ūˤ', ["ӯъ"]='ūˤ', ["Ӯ"]='Ū', ["ӯ"]='ū', ["Уъ"]='Uˤ', ["уъ"]='uˤ', ["У"]='U', ["у"]='u', ["Ф"]='F', ["ф"]='f', ["Хъ"]='X̌', ["хъ"]='x̌', ["Х"]='X', ["х"]='x', ["Цӏ"]='C’', ["цӏ"]='c’', ["Ц"]='C', ["ц"]='c', ["Чӏ"]='Č’', ["чӏ"]='č’', ["Ч"]='Č', ["ч"]='č', ["Ш"]='Š', ["ш"]='š', ["Щ"]='Šš', ["щ"]='šš', ["Ю̄ъ"]='Jūˤ', ["ю̄ъ"]='jūˤ', ["Юъ"]='Juˤ', ["юъ"]='juˤ', ["Ю̄"]='Jū', ["ю̄"]='jū', ["Ю"]='Ju', ["ю"]='ju', ["Я̄йъ"]='Jājˤ', ["я̄йъ"]='jājˤ', ["Яйъ"]='Jajˤ', ["яйъ"]='jajˤ', ["Я̄въ"]='Jāwˤ', ["я̄въ"]='jāwˤ', ["Явъ"]='Jawˤ', ["явъ"]='jawˤ', ["Я̄"]='Jā', ["я̄"]='jā', ["Я"]='Ja', ["я"]='ja', ["Й"]='J', ["й"]='j', ["Ӏ"]='ʔ', ["ӏ"]='ʔ', ["Ыъ"]='Ȳˤ', ["ыъ"]='ȳˤ', ["Ыъ"]='Yˤ', ["ыъ"]='yˤ', ["Ы"]='Ȳ', ["ы"]='ȳ', ["Ы"]='Y', ["ы"]='y', ["Э̄"]='Ē', ["э̄"]='ē', ["Э"]='E', ["э"]='e', ["Ә̄въ"]='Ǟwˤ', ["ә̄въ"]='ǟwˤ', ["Ә̄йъ"]='Ǟjˤ', ["ә̄йъ"]='ǟjˤ', ["Әвъ"]='Äwˤ', ["әвъ"]='äwˤ', ["Әйъ"]='Äjˤ', ["әйъ"]='äjˤ', ["Ә̄ъ"]='Ǟˤ', ["ә̄ъ"]='ǟˤ', ["Әъ"]='Äˤ', ["әъ"]='äˤ', ["Ә̄"]='Ǟ', ["ә̄"]='ǟ', ["Ә"]='Ä', ["ә"]='ä'
};

function export.tr(text, lang, sc)
	text = mw.ustring.gsub(text, '.', tt)
	return text
end

return export