stultus / 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

For more details read the docs

About

This library helps to convert ascii texts to unicode.


Languages

Language:Python 79.8%Language:HTML 18.7%Language:Makefile 1.6%