ttempe / chinese-support-addon

Addon for Anki2 that makes easier to input Chinese, in the spirit of batterseapower’s pinyin-toolkit for Anki1
https://github.com/ttempe/chinese-support-addon/wiki
47 stars 19 forks source link

fixed bopomofo conversion #40

Closed ghost closed 10 years ago

ghost commented 10 years ago

I'm not much of a Python programmer, so this code is probably unpythonic. I wrote this code in Go and then ported it (you can see the Go code in my chineseutils-go repo). I also included some unit tests of a few of the trickiest cases, so if you decide to refactor it will be harder to introduce new issues. Resolves issue #39.