libindic / payyans

This library helps to convert ascii texts to unicode.
10 stars 15 forks source link

Unicode2ASCII doesn't correctly place pre-base characters before the base #21

Closed VishnuSanal closed 1 month ago

VishnuSanal commented 8 months ago
from libindic.payyans import Payyans

instance = Payyans()

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

print(instance.ASCII2Unicode("Itcfw", "ambili"))  # കരേളം
asdofindia commented 8 months ago

It is unicode2ASCII that's at fault. It should be tIcfw. Pre-base post-base thing is not working correctly. We should implement the same three-pass logic in reverse for ASCII.

mujeebcpy commented 1 month ago

#22 fixed this