Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.02 KB

README.md

File metadata and controls

30 lines (19 loc) · 1.02 KB

LibIndic Payyans

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.

Installation

python -m pip install -e 'git+https://github.com/libindic/payyans.git#egg=libindic-payyans'

Usage

from libindic.payyans import Payyans

instance = Payyans()

result = instance.ASCII2Unicode("aebmfw", "ambili")
print(result)  # മലയാളം

result2 = instance.Unicode2ASCII(u"കേരളം", "ambili")
print(result2)  # tIcfw

instance.listAvailableMaps()  # Haritha, ML-TTAmbili, ML-TTKarthika, ML-TTNandini, ML-TTRevathi, MLB-TTIndulekha, Manorama, Matweb, TM-TTValluvar, banglapedia, charaka, panchari, revathi, uma

instance.printMap('Haritha')  # prints the whole mapping file

Watch this video to know more about what ASCII and Unicode encodings are

Ask a question about this library