LibIndic's Payyans module may be used to convert texts encoded in ASCII format
to Unicode and vice-versa. More fonts can be added by placing their maps in
libindic/payyans/maps
folder.
- Clone the repository
git clone https://github.com/libindic/payyans.git
- Change to the cloned directory
cd payyans
- Run setup.py to create installable source
python setup.py sdist
- Install using pip
pip install dist/libindic-payyans*.tar.gz
>>> from libindic.payyans import Payyans
>>> instance = Payyans()
>>> result = instance.ASCII2Unicode("aebmfw", "ambili")
>>> print(result)
മലയാളം
>>> result2 = instance.Unicode2ASCII(u"കേരളം", "ambili")
>>> print(result2)
tIcfw
For more details read the docs