avian2 / unidecode

ASCII transliterations of Unicode text - GitHub mirror
https://pypi.python.org/pypi/Unidecode
GNU General Public License v2.0
516 stars 62 forks source link

issues on Transliteration of Japanese Kanji and Chinese Kanji #55

Closed zjFFFFFF closed 4 years ago

zjFFFFFF commented 4 years ago

Thank you for your work.

>>> unidecode("人生は難しいですね。") 'Ren Sheng haNan shiidesune. '

This is a Japanese sentence with Kanji. Although the kana(like は and しいですね。) is correctly transliterated, Kanji is not correctly transliterated.

In Chinese, 人生 = Ren Sheng , 難 = Nan. But it should be 人生=jinsei, 難 = muzuka here, since it is a sentence in japanese. Can this problem be solved?

avian2 commented 4 years ago

Yes. Please use Unihandecode instead.