indic-transliteration / indic_transliteration_py

Python package for indic script transliteration
MIT License
166 stars 33 forks source link

Hindi and Bengali transliteration contains English characters. #21

Closed mithun-dhali-cookifi closed 6 years ago

mithun-dhali-cookifi commented 6 years ago

def transliterate_hi(data: str) -> str: return sanscript.transliterate(data, sanscript.ITRANS, sanscript.DEVANAGARI)

print(transliterate_hi("Chicken")) print(transliterate_hi("Egg")) print(transliterate_hi("Rice")) print(transliterate_hi("Basmati")) print(transliterate_hi("Mutton"))

छिcकेन् Eग्ग् Rइcए Bअस्मति ंउत्तोन्

I am getting the feeling that I am not going something right.

My end goal is to write Chiken in hindi, bengali, kannada for our app.

vvasuki commented 6 years ago

Please familiarize yourself with the ITRANS transliteration scheme .

You should transliterate the following strings: chikan, egg, raisam, baasmati, maTTan etc

mithun-dhali-cookifi commented 6 years ago

Thanks, got it. If i want to convert "Chiken", "Mutton" to hindi, would you have any recommended solution

vvasuki commented 6 years ago

No