Lingua-Translit

 view release on metacpan or  search on metacpan

xml/gost_7-79_rus.xml  view on Meta::CPAN



<translit>

    <!-- meta information -->

    <name>GOST 7.79 RUS</name>
    <desc>GOST 7.79:2000, Cyrillic to Latin, Russian</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>&#x0446;</from>   <!-- CSL TSE  -->
            <to>&#x0063;</to>       <!-- LSL C  -->
            <context>
                <before>[iejy&#x0438;&#x0435;&#x0439;&#x044B;&#x044E;&#x044F;&#x044D;&#x0451;]</before>
            </context>
        </rule>
        <rule>
            <from>&#x0426;</from>   <!-- CCL TSE  -->
            <to>&#x0043;</to>       <!-- LCL C  -->
            <context>
                <before>[IEJY&#x0418;&#x0415;&#x0419;&#x042B;&#x042E;&#x042F;&#x0401;&#x042D;]</before>
            </context>
        </rule>
        <!--otherwise 'cz'-->
        <rule>
            <from>&#x0446;</from>   <!-- CSL TSE  -->
            <to>&#x0063;&#x007A;</to>       <!-- LSL C LSL Z  -->
        </rule>
        <rule> <!-- ALLCAPS -->
            <from>&#x0426;</from>   <!-- CCL TSE  -->
            <to>&#x0043;&#x005A;</to>       <!-- LCL C  LCL Z-->
            <context>
                <before>[\p{IsUpper}\p{IsSpace}]</before>
                <after>[\p{IsUpper}\p{IsSpace}]</after>
            </context>
        </rule>
        <rule>
            <from>&#x0426;</from>   <!-- CCL TSE  -->
            <to>&#x0043;&#x007A;</to>       <!-- LCL C  LSL Z-->
        </rule>


        <!-- transliterations resulting in multiple characters -->
        <rule>
            <from>&#x0449;</from>       <!-- CSL SHCHA  -->
            <to>&#x0073;&#x0068;&#x0068;</to>   <!-- LSL S LSL H LSL H -->
        </rule>
        <rule> <!-- ALLCAPS -->
            <from>&#x0429;</from>       <!-- CCL SHCHA  -->
            <to>&#x0053;&#x0048;&#x0048;</to> <!-- LCL S LCL H LCL H -->
            <context>
                <before>[\p{IsUpper}\p{IsSpace}]</before>
                <after>[\p{IsUpper}\p{IsSpace}]</after>
            </context>
        </rule>
        <rule>
            <from>&#x0429;</from>   <!-- CCL SHCHA  -->
            <to>&#x0053;&#x0068;&#x0068;</to> <!-- LCL S LSL H LSL H -->
        </rule>

        <rule>
            <from>&#x0451;</from>           <!-- CSL IO -->
            <to>&#x0079;&#x006F;</to>       <!-- LSL Y LSL O -->
        </rule>
        <rule> <!-- ALLCAPS -->
            <from>&#x0401;</from>           <!-- CCL IO -->
            <to>&#x0059;&#x004F;</to>       <!-- LCL Y LCL O -->
            <context>
                <before>[\p{IsUpper}\p{IsSpace}]</before>
                <after>[\p{IsUpper}\p{IsSpace}]</after>
            </context>
        </rule>
        <rule>
            <from>&#x0401;</from>   <!-- CCL IO -->
            <to>&#x0059;&#x006F;</to>       <!-- LCL Y LSL O -->
        </rule>

        <rule>
            <from>&#x0436;</from>   <!-- CSL ZHE  -->
            <to>&#x007A;&#x0068;</to>       <!-- LSL Z LSL H  -->
        </rule>
        <rule>
            <from>&#x0416;</from>   <!-- CCL ZHE  -->
            <to>&#x005A;&#x0048;</to>       <!-- LCL Z LCL H  -->
            <context>
                <before>[\p{IsUpper}\p{IsSpace}]</before>
                <after>[\p{IsUpper}\p{IsSpace}]</after>
            </context>
        </rule>
        <rule>
            <from>&#x0416;</from>   <!-- CCL ZHE  -->
            <to>&#x005A;&#x0068;</to>       <!-- LCL Z LSL H  -->
        </rule>
        <rule>
            <from>&#x0447;</from>   <!-- CSL CHE -->
            <to>&#x0063;&#x0068;</to>       <!-- LSL C LSL H  -->
        </rule>
        <rule> <!-- ALLCAPS-->
            <from>&#x0427;</from>   <!-- CCL CHE  -->
            <to>&#x0043;&#x0048;</to>       <!-- LCL C LCL H -->
            <context>
                <before>[\p{IsUpper}\p{IsSpace}]</before>
                <after>[\p{IsUpper}\p{IsSpace}]</after>



( run in 0.316 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )