Lingua-Translit
view release on metacpan or search on metacpan
xml/gost_7-79_ukr.xml view on Meta::CPAN
<translit>
<!-- meta information -->
<name>GOST 7.79 UKR</name>
<desc>GOST 7.79:2000, Cyrillic to Latin, Ukrainian</desc>
<reverse>true</reverse>
<!-- set of transliteration rules -->
<!--
Used abbreviations (according to Unicode Standard 5.0):
CCL = CYRILLIC CAPITAL LETTER
CSL = CYRILLIC SMALL LETTER
LCL = LATIN CAPITAL LETTER
LSL = LATIN SMALL LETTER
-->
<rules>
<!-- context dependent rules -->
<!--'tse' is 'c' before 'i,e,y,j'-->
<rule>
<from>ц</from> <!-- CSL TSE -->
<to>c</to> <!-- LSL C -->
<context>
<before>[iejyиейюяєії]</before>
</context>
</rule>
<rule>
<from>Ц</from> <!-- CCL TSE -->
<to>C</to> <!-- LCL C -->
<context>
<before>[IEJYИЕЙЮЯЄІЇ]</before>
</context>
</rule>
<!--otherwise 'cz'-->
<rule>
<from>ц</from> <!-- CSL TSE -->
<to>cz</to> <!-- LSL C LSL Z -->
</rule>
<rule> <!-- ALLCAPS -->
<from>Ц</from> <!-- CCL TSE -->
<to>CZ</to> <!-- LCL C LCL Z-->
<context>
<before>[\p{IsUpper}\p{IsSpace}]</before>
<after>[\p{IsUpper}\p{IsSpace}]</after>
</context>
</rule>
<rule>
<from>Ц</from> <!-- CCL TSE -->
<to>Cz</to> <!-- LCL C LSL Z-->
</rule>
<!-- transliterations resulting in multiple characters -->
<rule>
<from>щ</from> <!-- CSL SHCHA -->
<to>shh</to> <!-- LSL S LSL H LSL H -->
</rule>
<rule> <!-- ALLCAPS -->
<from>Щ</from> <!-- CCL SHCHA -->
<to>SHH</to> <!-- LCL S LCL H LCL H -->
<context>
<before>[\p{IsUpper}\p{IsSpace}]</before>
<after>[\p{IsUpper}\p{IsSpace}]</after>
</context>
</rule>
<rule>
<from>Щ</from> <!-- CCL SHCHA -->
<to>Shh</to> <!-- LCL S LSL H LSL H -->
</rule>
<rule>
<from>ґ</from> <!-- CSL GHE WITH UPTURN -->
<to>g`</to> <!-- LSL G GRAVE ACCENT -->
</rule>
<rule>
<from>Ґ</from> <!-- CCL GHE WITH UPTURN -->
<to>G`</to> <!-- LCL G GRAVE ACCENT -->
</rule>
<rule>
<from>є</from> <!-- CSL UKRAINIAN IE -->
<to>ye</to> <!-- LSL Y LSL E -->
</rule>
<rule> <!-- ALLCAPS -->
<from>Є</from> <!-- CCL UKRAINIAN IE -->
<to>YE</to> <!-- LCL Y LCL E -->
<context>
<before>[\p{IsUpper}\p{IsSpace}]</before>
<after>[\p{IsUpper}\p{IsSpace}]</after>
</context>
</rule>
<rule>
<from>Є</from> <!-- CCL UKRAINIAN IE -->
<to>Ye</to> <!-- LCL Y LSL E -->
</rule>
<rule>
<from>ж</from> <!-- CSL ZHE -->
<to>zh</to> <!-- LSL Z LSL H -->
</rule>
<rule>
<from>Ж</from> <!-- CCL ZHE -->
<to>ZH</to> <!-- LCL Z LCL H -->
<context>
<before>[\p{IsUpper}\p{IsSpace}]</before>
<after>[\p{IsUpper}\p{IsSpace}]</after>
</context>
</rule>
<rule>
<from>Ж</from> <!-- CCL ZHE -->
<to>Zh</to> <!-- LCL Z LSL H -->
</rule>
( run in 0.473 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )