Back

yomichan: a tool for reading books with Anki vocab deck integration

I've been using the Yomichan addon for years! However I recently reformatted my laptop and had to reinstall everything. Yesterday I tried reinstalling Anki and Yomichan. I also grabbed my Japanese fonts from my backup hard drive. However, in the Yomichan reader, it will not let me use these fonts and I get this error:

Traceback (most recent call last):
File "C:\Users\******\Documents\Anki\addons\yomi_base\preferences.py", line 178, in onFontFamilyChanged
self.preferences['fontFamily'] = str(font.family())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)

It's not always "0-1", sometimes it's "0-5" or a different number.

For example I have a bunch of Japanese Epson fonts (EPSON 太丸ゴシック体Bfor example). Basically none of the Japanese fonts I installed work. Could it be a problem with my system? I haven't encountered this issue anywhere else....

Maybe I have to re-download the fonts, instead of pulling them off my external hard drive?

If anybody could answer this I would be super grateful! I lurked through the entire thread and didn't see anything similar... and thank you so much for the awesome addon!

Edit:
I am starting to suspect this might be a bug in the addon itself-- I tried running Anki + Yomichan on a different computer and I had the same font issues as well.

THEN I dusted off my old XP and got an older version of Anki + Yomichan off there, and I am no longer having issues getting these certain fonts to work.

So I really do think that it's a problem with a recent update to either Anki or Yomichan, and not just my computer. It's just a hunch and I could be wrong, but it seems to be the logical conclusion.
Edited: 2014-11-09, 11:23 pm
Reply

Messages In This Thread