You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
644 B

#!/usr/bin/env python
from libindic.payyans import Payyans
instance = Payyans()
from libindic.normalizer import Normalizer
normalizer = Normalizer()
test_words = [
'തിങ്കളാഴ്ച ',
# 'ചെണ്ടമേളം ',
# ' കുഞ്ചൻ നമ്പ്യാർ ',
]
def test_normalizer():
for txt in test_words:
out = normalizer.normalize(txt)
print(list(txt), list(out))
def test_u2a():
for txt in test_words:
out = instance.Unicode2ASCII(txt, 'karthika')
print(list(txt), list(out))
def main():
test_normalizer()
test_u2a()
main()