Closed BLKSerene closed 5 years ago
It is unlikely these problems will be fixed. Please read this document (specifically sections When you don't like what Unidecode does and Caveats) for some reasons why this is a hard problem to solve with the approach Unidecode takes to transliteration:
http://search.cpan.org/~sburke/Text-Unidecode-1.30/lib/Text/Unidecode.pm
You might want to use https://github.com/miurahr/unihandecode instead.
OK, I got it. Thanks anyway!
呆 Ai -> Dai (Pronunciation in Chinese)
I found that unidecode will transform all characters to its pronunciation in Chinese even those the text is actually written in Japanese Kanji.
While transforming Chinese characters to their pronunciations, a trailing whitespace is always added to the end of the text. 阿傍 -> A Bang (There's is a trailing whitespace at the end)
While transforming text composed of Chinese characters and Japanese katakana/hiragana, the whitespace is left out. 阿呆の足下使い -> A Ai noZu Xia Shi i -> A Ai no Zu Xia Shi i (And, these are Japanese characters, not Chinese characters)