Module:dzh-translit: Difference between revisions

From Linguifex
Jump to navigation Jump to search
(Created page with "local export = {} local tt = { ["А"]='A', ["а"]='a', ["Б"]='B', ["б"]='b', ["В"]='V', ["в"]='v', ["Г"]='G', ["г"]='g', ["Д"]='D', ["д"]='d', ["Е"]='E', ["е"]=...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
["Л"]='L', ["л"]='l', ["М"]='M', ["м"]='m', ["Н"]='N', ["н"]='n', ["О"]='O', ["о"]='o', ["П"]='P', ["п"]='p',
["Л"]='L', ["л"]='l', ["М"]='M', ["м"]='m', ["Н"]='N', ["н"]='n', ["О"]='O', ["о"]='o', ["П"]='P', ["п"]='p',
["Р"]='R', ["р"]='r', ["С"]='S', ["с"]='s', ["Т"]='T', ["т"]='t', ["У"]='U', ["у"]='u', ["Ф"]='F', ["ф"]='f',
["Р"]='R', ["р"]='r', ["С"]='S', ["с"]='s', ["Т"]='T', ["т"]='t', ["У"]='U', ["у"]='u', ["Ф"]='F', ["ф"]='f',
["Х"]='H', ["х"]='h', ["Ш"]='Š', ["ш"]='š', ["Ъ"]='Ǎ', ["ъ"]='ǎ', ["Ь"]='J', ["ь"]='j',
["Х"]='H', ["х"]='h', ["Ч"]='Č', ["ч"]='č', ["Ш"]='Š', ["ш"]='š', ["Ъ"]='Ă', ["ъ"]='ă', ["Ь"]='J', ["ь"]='j',
["Ю"]='Ju', ["ю"]='ju', ["Я"]='Ja', ["я"]='ja',
["Ю"]='Ju', ["ю"]='ju', ["Я"]='Ja', ["я"]='ja', ["Й"]='J', ["й"]='j',
};
};



Latest revision as of 22:29, 4 January 2022



local export = {}
 
local tt = {
	["А"]='A', ["а"]='a', ["Б"]='B', ["б"]='b', ["В"]='V', ["в"]='v', ["Г"]='G', ["г"]='g', ["Д"]='D', ["д"]='d', 
	["Е"]='E', ["е"]='e', ["Ж"]='Ž', ["ж"]='ž', ["З"]='Z', ["з"]='z', ["И"]='I', ["и"]='i',	["К"]='K', ["к"]='k',
	["Л"]='L', ["л"]='l', ["М"]='M', ["м"]='m', ["Н"]='N', ["н"]='n', ["О"]='O', ["о"]='o', ["П"]='P', ["п"]='p',
	["Р"]='R', ["р"]='r', ["С"]='S', ["с"]='s', ["Т"]='T', ["т"]='t', ["У"]='U', ["у"]='u', ["Ф"]='F', ["ф"]='f',
	["Х"]='H', ["х"]='h', ["Ч"]='Č', ["ч"]='č', ["Ш"]='Š', ["ш"]='š', ["Ъ"]='Ă', ["ъ"]='ă', ["Ь"]='J', ["ь"]='j',
	["Ю"]='Ju', ["ю"]='ju', ["Я"]='Ja', ["я"]='ja',	["Й"]='J', ["й"]='j',
};

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

return export