Module:xchc-translit: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 68: Line 68:
["[ЬІ]"]="J", ["[ьі]"]="j",
["[ЬІ]"]="J", ["[ьі]"]="j",
["[Ъъ]"]="'",
["[Ъъ]"]="'",
[M] = A, [D .. A] = DA, [A .. D] = DA,
};
};


Line 82: Line 80:
end
end
-- text = text:gsub("([Yy])e(" .. A .. ")" .. DA, "%1o%2")
text = mw.ustring.toNFD(text):gsub(M,A):gsub(A .. D, DA):gsub(D .. A, DA)
return mw.ustring.toNFC(text)
return mw.ustring.toNFC(text)

Navigation menu