Lingua-Translit
view release on metacpan or search on metacpan
xml/bgn-pcgn_rus_strict.xml view on Meta::CPAN
before а, Ñ, Ñ, Ñ
Ñ -> ·y
after vowel characters а, е, Ñ, и, о, Ñ, Ñ, Ñ, Ñ, Ñ
(these cases are called "unusual Russian character
sequences", and are expected mainly in words of
non-Russian origin)
Ñ -> y
in all other instances
-->
<rule>
<from>Ñ</from>
<to>y·</to>
<context>
<!-- capitals Ð, У, Ы, Ð are already transliterated to
'A', 'U', '·Y', 'Y·', 'Y', '·E' and 'E'; some й are
converted to 'y·' -->
<before>[AUYE·аÑÑÑ]</before>
</context>
</rule>
<rule>
<from>Ñ</from>
<to>·y</to>
<context>
<!-- vowel characters in uppercase (Ð, Ð, Ð, Ð, Ð, У, Ы, Ð,
Ю, Я) are transliterated to 'A', 'E', 'Ye', 'Ã', 'Yë',
'I', 'O', 'U', '·Y', 'Y·', 'Y', '·E', 'E', 'Yu', 'Ya';
й became 'y', and some Ñ already became '·y';
е and Ñ became 'e', 'ye', 'ë' and 'yë';
however, we don't include an interpunct character in this
context in order to avoid a duplication -->
<after>[AEÃIOUYaueëyаеÑиоÑÑÑÑÑ]</after>
</context>
</rule>
<rule>
<from>Ñ</from>
<to>y</to>
</rule>
<!--
Ñ -> ·e
after any consonant character except й
(these cases are called "unusual Russian character
sequences", and are expected mainly in words of
non-Russian origin)
Ñ -> e
in all other instances
A note: according to the rules, Ñ should not be
transliterated as '·e' after й; however, й should be
transliterated as 'y·' before Ñ, so an interpunct character
appears anyway when one transliterates ÐÑ/йÑ.
-->
<rule>
<from>Ñ</from>
<to>·e</to>
<context>
<!-- capitals are already transliterated;
lowercase letters 'h', 'c' and 's' appear in
transliterations of Ð, Ш, Ц, Ч, Щ, Ð¥, ТС/ТÑ
and ШЧ/Ð¨Ñ -->
<after>[BVGDZhKLMNPRSTsFCScбвгджзклмнпÑÑÑÑÑ
ÑÑÑÑ]</after>
</context>
</rule>
<rule>
<from>Ñ</from>
<to>e</to>
</rule>
<!--
Then, we proceed to characters whose context doesn't depend
on other characters.
-->
<rule>
<from>а</from>
<to>a</to>
</rule>
<rule>
<from>б</from>
<to>b</to>
</rule>
<rule>
<from>в</from>
<to>v</to>
</rule>
<rule>
<from>г</from>
<to>g</to>
</rule>
<rule>
<from>д</from>
<to>d</to>
</rule>
<rule>
<from>ж</from>
<to>zh</to>
</rule>
<rule>
<from>з</from>
<to>z</to>
</rule>
<rule>
<from>и</from>
<to>i</to>
</rule>
<rule>
<from>к</from>
<to>k</to>
</rule>
( run in 0.400 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )