Skip to content

Convert the Qazaq cyrillic script to one of the proposed latin scripts

Notifications You must be signed in to change notification settings

Qazaq-Genius/Qazaq-Cyrillic-to-Latin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qazaq Cyrillic to Latin

The official latin proposal from 2021 is implemented.

Quick Start

You can install the package using Composer. Simply require the version you need:

$ composer require qazaq_genius/qazaq_cyrillic_to_latin

Or just add it to your composer.json by hand

{
  "require": {
    "qazaq_genius/qazaq_cyrillic_to_latin": "dev-master"
  }
}

Example Usage

<?php

use QazaqGenius\Transliterator as Qazaq;

const ANTHEM_CYRILLIC = "Алтын күн аспаны,".
                        "Алтын дән даласы,".
                        "Ерліктің дастаны –".
                        "Еліме қарашы!".
                        "Ежелден ер деген,".
                        "Даңқымыз шықты ғой,".
                        "Намысын бермеген,".
                        "Қазағым мықты ғой!";

echo Qazaq::toLatin(ANTHEM_CYRILLIC);
/*  
    Output:

    Altyn kün aspany,
    Altyn dän dalasy,
    Erlıktıñ dastany –
    Elıme qaraşy!
    Ejelden er degen,
    Dañqymyz şyqty ğoi,
    Namysyn bermegen,
    Qazağym myqty ğoi!
*/

If you want to use the official proposed version of 2021 for example, instead of the most current version, you can just use the according constant.

Qazaq::toLatin("Алтын күн аспаны", Qazaq::OFFICIAL_LATIN_2021);
//Output: Altyn kün aspany

About

Convert the Qazaq cyrillic script to one of the proposed latin scripts

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published