Module:xchc-translit: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 19: Line 19:
["Ғ"]='Gh', ["ғ"]='gh',
["Ғ"]='Gh', ["ғ"]='gh',
["Д[zз]"]='Dc', ["д[zз]"]='dc', ["Д[жž]"]='Dz', ["д[жž]"]='dz',
["Д"]='D', ["д"]='d', ["З"]='Z', ["з"]='z', ["Ж"]='Ž', ["ж"]='ž',
["Д"]='D', ["д"]='d', ["З"]='Z', ["з"]='z', ["Ж"]='Ž', ["ж"]='ž',
Line 66: Line 65:
["Э"]='E', ["э"]='e',
["Э"]='E', ["э"]='e',
["[ЬІ]"]='J', ["[ьі]"]='j',
["І"]='J', ["і"]='j',
["Ь"]='Y', ["ь"]='y',
["[Ъъ]"]="'",
["[Ъъ]"]="'",
["([LNln])j([aeiouy])"]='%1y%2'
["([LNln])j([aeiouy])"]='%1y%2'
Line 82: Line 82:
text = mw.ustring.toNFD(text):gsub("([LNln])j([aeiouy])", "%1y%2")
text = mw.ustring.toNFD(text):gsub("([LNln])j([aeiouy])", "%1y%2")
:gsub("([Dd])z","%1c"):gsub("([Dd])ž","%1z")
:gsub(M,A)
:gsub(M,A)
:gsub(A .. D, DA):gsub(D .. A, DA)
:gsub(A .. D, DA):gsub(D .. A, DA)

Navigation menu