harish2704 / payyans

This library helps to convert ascii texts to unicode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LibIndic Payyans

Build Status Coverage Status

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

  1. Clone the repository git clone https://github.com/libindic/payyans.git
  2. Change to the cloned directory cd payyans
  3. Run setup.py to create installable source python setup.py sdist
  4. Install using pip pip install dist/libindic-payyans*.tar.gz

Usage

>>> from libindic.payyans import Payyans
>>> instance = Payyans()
>>> result = instance.ASCII2Unicode("aebmfw", "ambili")
>>> print(result)
മലയാളം
>>> result2 = instance.Unicode2ASCII(u"കേരളം", "ambili")
>>> print(result2)
tIcfw

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

Ask a question about this library

About

This library helps to convert ascii texts to unicode.


Languages

Language:Python 80.3%Language:HTML 18.2%Language:Makefile 1.5%