indic-transliteration / indic_transliteration_py

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

Please Tell How i can Print ऑ (Half Moon) Words #66

Closed mukeshbadgujar closed 3 years ago

mukeshbadgujar commented 3 years ago

कॉफी <expected< kofI स्टॉप <expected< staimp ऑस्कर <expected< Oskar

Above Marathi/Hindi Words are Expected but Below is Output

ओस्कर् << kofI स्तैम्प् << staimp कोफ़ी << Oskar

Please tell any available Solution I saw below links, But I Can't Find Solution for (अर्धचंद्राकार) , { I found Solution for (Half Moon Dot)(ChandraBindu)}

https://github.com/sanskrit-coders/indic_transliteration/blob/7ee621bff40486056d05c0ec25474b8a66ee65a7/indic_transliteration/sanscript/schemes/brahmic/northern.py#L10 & https://github.com/sanskrit-coders/indic_transliteration/blob/7ee621bff40486056d05c0ec25474b8a66ee65a7/indic_transliteration/sanscript/schemes/roman.py#L87

vvasuki commented 3 years ago

Upgrade to latest version and use 'oascar'

mukeshbadgujar commented 3 years ago

Thank You For the Changes. I am Sorry, but it is Not Working. I Upgrade the Package also Tried on Different Env. then also not working.

the Updates by you are shown in the file as 'vowels': str.split("""अ आ इ ई उ ऊ ऋ ॠ ऌ ॡ ए ऐ ओ औ ऎ ऒ ऍ ऑ"""), 'marks': str.split("""ा ि ी ु ू ृ ॄ ॢ ॣ े ै ो ौ ॆ ॊ ॅ ॉ"""),

but while transliteration I debug that and I saw, in "non_marks_viraama" variable there is no "ऍ & ऑ" , and i think that because of this, it is not translating.

or Problem Should be Different please see.

eg. Edit: I am trying: data = 'oa' print(transliterate(data, sanscript.ITRANS, sanscript.DEVANAGARI))

oa >> ओअ

Please See the Problem

vvasuki commented 3 years ago

ITRANS has not changed. Use Optitrans.

mukeshbadgujar commented 3 years ago

Ok, Sorry My Mistake..