Development of this project has moved to gitlab
Anki Kunren is a program to drill japanese kanji stroke order and practice writing in sync with an Anki study session.
- install via pip:
pip install anki-kunren
- install anki-connect with code
2055492159
Open Anki and begin a review. You can then use kunren
as follows:
usage: kunren [-h] [-s S] [-d D] [--field FIELD] [--size SIZE]
optional arguments:
-h, --help
Show help message-s S
Start point size in px. defaults to 5px-d D
Stroke forgiveness in average px from actual. defaults to 25px--field FIELD
name of anki card field containing kanji. defaults to "Vocabulary-Kanji"--size SIZE
Length of a size of the square canvas in pixels. Defaults to 300.
While running, you can use the following controls:
h
: hint the current strokea
: animate the current stroked
: draw all strokesn
: next kanji in the expressionesc
: quitc
: refresh the current card shown. This is done automatically when all characters have been drawn, but would slow the program to a crawl if checked for every frame.
- When the size parameter is changed, all tolerances get multiplied by the ratio of
size/109
.
This project uses KanjiVG stroke order data. It is licensed by Ulrich Apel under the Creative Commons Attribution Share-Alike 3.0 license.
The KanjiVG ascii filename code is taken from Kanji Colorizer which was also the source of my initial inspiration.
- different coloring for different parts of stroke based on how wrong it is.