Skip to content

lwinmoe/burmeseunicode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage example

use Encode;
use burmeseunicode;
$foo = "text in some font encoding";  # the text we want to convert
$foo = Encode::decode_utf8($foo);     # from bytes to UTF8 encoding
$foo = zawgyi2uni5($foo);             # from Zawgyi to Uni 5.1
$foo = soas2uni5($foo);               # from SOAS Myanmar to Uni 5.1
$foo = uni4touni5($foo);              # from Burmese Unicode 4.1 to 5.1
$foo = myazedi2uni5($foo);            # from Myazedi to Uni 5.1
$foo = ava2uni5($foo);                # from AvaLaser to Uni 5.1
$foo = Encode::encode_utf8($foo);     # back to byte

How to run the supplied run.pl file

  • You need to have Perl interpreter installed.

  • Please make changes in run.pl what converter routine you want to use. It's zawgyi2uni5 for now.

  • Input files in plain text format have to be put in input/ folder.

  • Then, just run

    perl run.pl
    
  • Output files will be in output/ folder.

How to run the Python script (Zawgyi only for now)

Python script burmeseunicode.py will convert Zawgyi encoding to Unicode.

How to run

```
python3 burmeseunicode.py input/*.txt
```

Output files will be in the same folder with the extensions .out

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published