Skip to content

Home

Using Tamil unicode strings efficiently in python

string = "தமிழ்"
print(list(string))

Output:

['த', 'ம', 'ி', 'ழ', '்']

Normally, how python reads the unicode strings, this seems like python did not recoganize properly and let we see how tamilstring helps to handle this

1
2
3
from tamilString import String
string = "தமிழ்"
string = String(string)

Output:

['த', 'மி', 'ழ்']

output shows that using tamilstring helps to handle tamilstring unicodes more effectively.

Alternatives,

pip install Open-Tamil

Advantages

why you have to choose tamilstring, it gives more feture comparing to alternatives, it will handle sanskrit better

DisAdvantages

time consuming

To explore what more tamilstring provides

alternatives

python

https://github.com/Ezhil-Language-Foundation/open-tamil

php

https://github.com/HariharanUmapathi/open-tamil-php

go

https://github.com/ThamizhLearner/Thamizh