jdlorimer / chinese-support-redux

Anki add-on providing support for Chinese study
https://ankiweb.net/shared/info/1128979221
GNU General Public License v3.0
101 stars 50 forks source link

fix: display tones in newer anki #209

Open psii opened 2 years ago

psii commented 2 years ago

fixes #201

supersedes #204

I tested this with Anki 2.1.54 and Anki 2.1.49. See comments in the code for how it was implemented. I hope that this solution is stable for the next releases of Anki :crossed_fingers: Unfortunately, this method requires 2.1.54, so this will not work for Anki 2.1.50-2.1.53.

chambm commented 2 years ago

It's kind of disturbing that this change is so hacky just to get CSS styles working in the editor. I feel like this is more of an Anki bug that needs to get fixed.

chambm commented 2 years ago

Here's an Anki PR to add this capability to the main app: https://github.com/ankitects/anki/pull/1049