Module:xchc-translit: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 66: Line 66:
["Э"]='E', ["э"]='e',
["Э"]='E', ["э"]='e',
["[ЬІ]"]="J", ["[ьі]"]="j",
["[ЬІ]"]='J', ["[ьі]"]='j',
["[Ъъ]"]="'",
["[Ъъ]"]="'",
["([LNln])j([aeiouy])"]='%1y%2'
};
};


Line 80: Line 81:
end
end
text = mw.ustring.toNFD(text):gsub(M,A):gsub(A .. D, DA):gsub(D .. A, DA)
text = mw.ustring.toNFD(text):gsub("([LNln])j([aeiouy])", "%1y%2")
:gsub(M,A)
:gsub(A .. D, DA):gsub(D .. A, DA)
return mw.ustring.toNFC(text)
return mw.ustring.toNFC(text)

Navigation menu