Git Product home page Git Product logo

Comments (2)

MolotovCherry avatar MolotovCherry commented on July 17, 2024

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.

from chinese-support-addon.

leezu avatar leezu commented on July 17, 2024

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

from chinese-support-addon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.