Skip to content

Utf8

Handling unicode characters

from tamilstring.utf8 import *
utf8 modules provide some common methods

extract letters from str

from tamilstring.utf8 import get_letters
letter = get_letters("பூ")
print(letter)
string = get_letters("பன்மொழி")
print(string)
Output:
['பூ']
['ப', 'ன்', 'மொ', 'ழி']
get_letters helps to extract letters from string

splitting letters

from tamilstring.utf8 import split_compound
letter = split_compound("பூ")
print(letter)
Output:
('ப்', 'ஊ')
split_compound method split compound letter and return as possible constant and voule

make compound

from tamilstring.utf8 import make_compound
letter = make_compound('ப்','ஊ')
print(letter)
Output:
'பூ'
make_compound method compain constant and voule letter into compound letter