32 1
Sign in to rate

Kanji Colorizer (stroke order diagrams)

51.86MB. Updated 2014-10-12. Only supports Anki 2.0.x.

This item is large, and may take some time to download.

Description

The Kanji Colorizer addon automatically adds colored stroke order diagrams to your kanji cards. They are stored as media, so they continue to work even when you're reviewing on a platform such as ankiweb where you don't have the addon installed. Usage: Add a "Diagram" field to a model with "Japanese" in the name and a field named "Kanji". When you finish editing the kanji field, a colored stroke order diagram will be added to the Diagram field in the same way that the Japanese support plugin adds readings. If the Kanji field contains multiple characters, the add-on will only generate diagrams for the kanji; if it is a single character it will generate a diagram if it is kana as well. To add diagrams to all such fields, or regenerate them with new settings, use the "Kanji Colorizer: (re)generate all" option in the tools menu. The development site for this addon is at https://github.com/cayennes/kanji-colorize . If you have any bug reports or feature requests, use the issue tracker there or email me at cayennes@gmail.com. UPDATES: 10/11/14: Kana support added 10/11/14: Newer kanjivg version, fix from LucasEasedUp for an exception when closing an empty add card form 4/15/14: Latest kanjivg version 12/7/13: Ignore invalid characters (such as Chinese characters that don't exist in Japanese) instead of throwing error. 10/27/13: Fix for issue where diagrams were no longer generated after upgrading anki 5/9/13: Contribution from shufps: option to create colored groups instead of colored/numbered strokes (that was a while ago but I broke it before uploading it; now I've fixed it) 4/9/13: updated stroke order information from kanjivg 3/31/13: Fix for the "No module named colorsys" errors that some people were seeing; also ospalh's fix for number coloring (no longer inappropriately bolded)

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

To download this add-on, please copy and paste the following code into the desktop program:

1964372878

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

Other Anki 2.0.x Add-Ons Ask a Question

Reviews

on 2017-07-20
Still great but bug from 2014 is still there

The bug reported below in 2014 that causes error messages and "Waiting for editing to finish/Resume Now" over and over, is still there. Here is the full error message. The way to cause this error is to start studying your card deck, and get to a card containing a colorized kanji, then clicking Edit and then Done and it will happen.

An error occurred. It may have been caused by a harmless bug,
or your deck may have a problem.
To confirm it's not a problem with your deck, please run Tools > Check Database.
If that doesn't fix the problem, please copy the following
into a bug report:
Traceback (most recent call last):
File "aqt/progress.pyc", line 69, in handler
File "aqt/editor.pyc", line 468, in onUpdate
File "aqt/editor.pyc", line 540, in loadNote
AttributeError: 'NoneType' object has no attribute 'media'
on 2017-07-07
I love it!

It's the best addon for kanji learners! Thank you sooooo much!
on 2017-05-30
Stroke direction, solution to diagrams not showing up

It took me a long time to realize that the stroke numbers are located at the start of the stroke, NOT where they fit, allowing you to figure out the stroke direction. I bet I'm not the only one.

Diagrams don't show up in the browser? This worked for me:
Go to addons>kanji_colorizer>edit
find <img src="%s"> in the code near the bottom
add &nbsp; right in front of it so it becomes &nbsp;<img src="%s">
leave rest untouched
re-generate diagrams
on 2017-03-06
How to update the KanjiVG dataset

It's been almost 2.5 years since this plugin's KanjiVG dataset was updated, so here's how to easily update it.

1. Download https://github.com/KanjiVG/kanjivg/archive/master.zip
2. Replace your installation's [User]/Documents/Anki/addons/kanjicolorizer/data/kanjivg with the archive's kanjivg-master/kanji (while Anki is closed ofc)
3. Regenerate your diagrams as necessary.

That last step caused the plugin to generate thousands of new '* (1).svg' files for me rather than just overwrite the old ones, so if you have a separate field for the diagrams, it's probably better to wipe it (using a regular expression like (?s).* in S&R explained below) before regenerating.

If it still happens and you want it clean:
1. Use a renamer like krename ("overwrite existing" toggled in its 2nd tab, and just " (1)" in a Search&Replace entry on the 4th one) on the affected files in Anki/Main/collection.media
2. Select all cards with diagrams on them in Anki's card browser
3. Open Search&Replace (C-Alt-F), search for eg. " (1).svg" to be replaced with ".svg" and select the appropriate field(s).

Anyway, it's worthwhile to use Anki's "Tools → Check media" afterward.
on 2015-06-27
The best Heisig companion out there

The best supply to a Heisig TRK deck I've ever stumbled upon. A must-have for anyone who plans on studying the kanji seriously. Aids the whole of the mnemonic process greatly.
on 2014-12-25
Bug?

I have been having some strange behavior with this addon - see below:-

I get this repeatedly when editing especially the Expression field.

The screen goes to the "Wait for editing to finish" page but clicking on
Resume Now takes me back to the same page in a loop. If I sync I get
this message:-

Traceback (most recent call last):
File "aqt/progress.pyc", line 69, in handler
File "aqt/editor.pyc", line 466, in onUpdate
File "aqt/editor.pyc", line 538, in loadNote
AttributeError: 'NoneType' object has no attribute 'media'

If I then run Check Database I get:-

Traceback (most recent call last):
File "aqt/main.pyc", line 924, in onCheckDB
AttributeError: 'NoneType' object has no attribute 'fixIntegrity'

If I Check Database without prior sync I just stay in the loop.

If I Quit I get this message:-

Traceback (most recent call last):
File "aqt/progress.pyc", line 69, in handler
File "aqt/editor.pyc", line 466, in onUpdate
File "aqt/editor.pyc", line 538, in loadNote
AttributeError: 'NoneType' object has no attribute 'media'
on 2014-12-03
Works great for Chinese too!

I generated diagrams for my HSK Chinese deck with it, and out of 5001 cards, 4366 now have a diagram! Admittedly, I'm not sure what percentage of two character words have both diagrams, but still, this is awesome!

Thanks a lot!
on 2014-08-27
Quick user guide

Someone made a visual guide on how to use this here:
http://maestoso.org/2014/06/study-japanese-with-anki-part-5/
on 2014-07-25
This way is quicker to check the correct stroke order

I knew this addon for a long time but I didn't installed it becouse of KanjiStrokeOrder font.
Now that I have seen the new functionality to colorize by blocks and I gave it a try. It is awesome, specially if studing the kanji following the heisig's method. Thank you very much. This way is quicker to check the correct stroke order.

I thouht this addon only generates diagrams from the kanji jis x 208 character set. But funny stats are that it also generates 28 from jis x 212 and 8 more from jis x 213 only character set.
on 2014-07-02
Kanji Diagrams Not Showing Anymore

All of a sudden the diagrams are no longer regenerated.

I had a "Diagram" field with a value of "Japanese" (without) the quotes, in my model.
I also had a "Kanji" field with the Kanji characters.

After clicking the "Kanji Colorizer: re(generate) all" from the Tools menu,
the diagrams/Kanji stroke orders are not showing still.

It worked after adding some, but has stopped working since.

Any help?
on 2014-01-26
perfect

Wanted to complain about the program returning errors for unknown unicode characters but it was already fixed in the meantime... Works like a charm, thank you!
on 2013-12-20
It's pretty slow to download and install

But we are warned it's a big file. I tried to install it several times and I thought Anki crashed, but I gave it a little more time and it worked eventually.
on 2013-12-08
Super Add on, great developer

It works perfect and has been made chinese compatible (as much as possible) on request.
The colorized Kanjis are so good to remember. Thank you.
on 2012-11-03
A double saving time

This plugin obviously save time when entering a new kanji, but it also saves time during revisions: before that I used animations to learn the stroke order of a kanji, but I lost a lot of time to wait for the animation gets to the stroke that I wanted to check.

Attention, there is a small error in the manual: the field must be called diagram without the letter s.