Skip to content

Commit

Permalink
Improve transliteration for russian language (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
yhdgms1 authored May 4, 2021
1 parent 1ffe949 commit b02e2f2
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions replacements.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,16 +320,26 @@ const replacements = [
['г', 'g'],
['Д', 'D'],
['д', 'd'],
['ъе', 'ye'],
['Ъе', 'Ye'],
['ъЕ', 'yE'],
['ЪЕ', 'YE'],
['Е', 'E'],
['е', 'e'],
['Ё', 'Yo'],
['ё', 'yo'],
['Ж', 'Zh'],
['ж', 'zh'],
['З', 'Z'],
['з', 'z'],
['И', 'I'],
['и', 'i'],
['Й', 'J'],
['й', 'j'],
['ый', 'iy'],
['Ый', 'Iy'],
['ЫЙ', 'IY'],
['ыЙ', 'iY'],
['Й', 'Y'],
['й', 'y'],
['К', 'K'],
['к', 'k'],
['Л', 'L'],
Expand All @@ -352,10 +362,10 @@ const replacements = [
['у', 'u'],
['Ф', 'F'],
['ф', 'f'],
['Х', 'H'],
['х', 'h'],
['Ц', 'Cz'],
['ц', 'cz'],
['Х', 'Kh'],
['х', 'kh'],
['Ц', 'Ts'],
['ц', 'ts'],
['Ч', 'Ch'],
['ч', 'ch'],
['Ш', 'Sh'],
Expand All @@ -374,8 +384,6 @@ const replacements = [
['ю', 'yu'],
['Я', 'Ya'],
['я', 'ya'],
['Ё', 'Yo'],
['ё', 'yo'],

// Romanian
['ă', 'a'],
Expand Down

0 comments on commit b02e2f2

Please sign in to comment.