Closed mthewissen closed 9 years ago
@mthewissen Thanks for this bug report. I appreciate you pointing out this issue.
In the 3rd party package zhon
, pinyin syllables are defined in regular expression patterns as lowercase letters. So, Dragon Mapper uses the re.IGNORECASE
constant to match the pinyin syllables that might include uppercase letters. In Python 3, the re
library handles Unicode well, and this works fine. But, in Python 2, we need to add the re.UNICODE
constant as well so that it will correctly catch the uppercase pinyin letters with diacritics.
I'll commit a fix that uses the re.UNICODE
constant for transcription conversion shortly.
I just released version 0.2.4 to PyPI, which includes the fix for this issue. Thanks again for your help.
It works fine now. Thanks for the speedy update!
Outputs:
(using the developer branch)