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
-
You need to have Perl interpreter installed.
-
Please make changes in
run.plwhat converter routine you want to use. It'szawgyi2uni5for 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.
Python script burmeseunicode.py will convert Zawgyi encoding to Unicode.
```
python3 burmeseunicode.py input/*.txt
```
Output files will be in the same folder with the extensions .out