Open MolotovCherry opened 8 years ago
Even if there's not supposed to be any support for characters such as this, due to them not being standard or something, it's still very bad that the plugin is failing with various kinds of errors because of it.
I'm getting a similar error with some letters (e.g. 㣽, 㚢). Actually I was just trying to figure out how to type the u umlaut (ü) character to write the letter 女.
After several tries with those erroneous characters Anki gave errors as well when I tried to enter 女. Only restart of the program made it work again.
Traceback: Traceback (most recent call last): File "/usr/share/anki/aqt/progress.py", line 69, in handler func() File "/usr/share/anki/aqt/editor.py", line 466, in onUpdate self.loadNote() File "/usr/share/anki/anki/hooks.py", line 55, in repl old(_args, *_kwargs) File "/usr/share/anki/aqt/editor.py", line 538, in loadNote data.append((fld, self.mw.col.media.escapeImages(val))) File "/usr/share/anki/anki/media.py", line 237, in escapeImages string = re.sub(reg, repl, string) File "/usr/lib/python2.7/re.py", line 155, in sub return _compile(pattern, flags).sub(repl, string, count) TypeError: expected string or buffer
Note: I got these characters from a course on memrise. I suspect that there's something different with these characters which are causing these strange problems. Consequently, I also cannot use the fill in missing fields feature, probably because of this.
A certain character, ⺌, ⺍ (not sure why this one is a box, try putting it in Google Translator and the character will show up. English->Chinese), is causing the plugin to fail for me.
The error happens when I am in the browser and viewing all my cards. I enable the plugin by clicking the button, click the Hanzi field, then click the next field, and this error pops up.
Another character (龵) (yes, the character looks blank for some reason; paste it into Google translate) causes it to fail with a different error: