summaryrefslogtreecommitdiffstats
path: root/payyans/tests/test.py
blob: 3791df5ec463cf70dcd98c2b43c5f4b9bf1d4419 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/python
# -*- coding: utf-8 -*-
from payyans import Payyan
p=Payyan()
p.mapping_filename="/usr/share/payyans/maps/karthika.map"
print p.word2Unicode(u"hmÀjnI").encode('utf-8')
print p.word2ASCII(u"വാര്‍ഷിക").encode('utf-8')
print p.word2ASCII(u"ആന വായിലമ്പാഴങ്ങ?").encode('utf-8')
print p.word2Unicode(u"B\ hmbne¼mg§?").encode('utf-8')
print p.word2ASCII(u"മോരു തരുമോ!").encode('utf-8')
print p.word2Unicode(u"tamcp Xcptam!").encode('utf-8')