45,639
edits
No edit summary |
No edit summary |
||
(12 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
local tt_lepik = { | local tt_lepik = { | ||
["Е" .. M .. D]='Jo' .. M, ["е" .. M .. D]='jo' .. M, | |||
["Е" .. D]='Jo', ["е" .. D]='jo', | |||
["А"]='A', ["а"]='a', | ["А"]='A', ["а"]='a', | ||
["Я"]='Ja', ["я"]='ja', | ["Я"]='Ja', ["я"]='ja', | ||
Line 19: | Line 22: | ||
["Ғ"]='Gh', ["ғ"]='gh', | ["Ғ"]='Gh', ["ғ"]='gh', | ||
["Д"]='D', ["д"]='d', ["З"]='Z', ["з"]='z', ["Ж"]='Ž', ["ж"]='ž', | ["Д"]='D', ["д"]='d', ["З"]='Z', ["з"]='z', ["Ж"]='Ž', ["ж"]='ž', | ||
["Ы"]='I', ["ы"]='i', | ["Ы"]='I', ["ы"]='i', | ||
Line 34: | Line 33: | ||
["Ӈ"]='Ng', ["ӈ"]='ng', | ["Ӈ"]='Ng', ["ӈ"]='ng', | ||
["[ОO]" .. B]='A' .. D, ["[оo]" .. B]='a' .. D, | |||
["О" .. M .. B]='A' .. DA, ["о" .. M .. B]='a' .. DA, | ["О" .. M .. B]='A' .. DA, ["о" .. M .. B]='a' .. DA, | ||
["О"]='O', ["о"]='o', | ["О"]='O', ["о"]='o', | ||
Line 62: | Line 60: | ||
["Ш"]='Š', ["ш"]='š', | ["Ш"]='Š', ["ш"]='š', | ||
[" | ["[ЭE]" .. M .. B]='E' .. DA, ["[эe]" .. M .. B]='e' .. DA, | ||
["Э" .. B]='E' .. D, ["э"]='e' .. D, | ["Э" .. B]='E' .. D, ["э" .. B]='e' .. D, | ||
["Э"]='E', ["э"]='e', | ["Э"]='E', ["э"]='e', | ||
[" | ["І"]='J', ["і"]='j', | ||
["Ь"]='Y', ["ь"]='y', | |||
["[Ъъ]"]="'", | ["[Ъъ]"]="'", | ||
["([LNln])j([aeiouy])"]='%1y%2' | |||
[ | |||
}; | }; | ||
Line 82: | Line 80: | ||
end | end | ||
text = mw.ustring.toNFD(text):gsub("([LNln])j([aeiouy])", "%1y%2") | |||
:gsub("O" .. B, "A" .. D):gsub("o" .. B, "a" .. D) | |||
:gsub(M,A) | |||
:gsub(A .. D, DA):gsub(D .. A, DA) | |||
return mw.ustring.toNFC(text) | return mw.ustring.toNFC(text):gsub("([Dd])z","%1c"):gsub("([Dd])ž","%1z") | ||
end | end | ||
return export | return export |