Skip to main content

Anki Kunren (暗記 訓練)

Anki Kunren is a program to drill japanese kanji stroke order and practice writing in sync with an Anki study session.

screenshot

Installation

  1. install via pip: pip install anki-kunren
  2. install anki-connect with code 2055492159

Usage

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 stroke
  • a: animate the current stroke
  • n: next kanji in the expression
  • esc: quit
  • c: 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.

Notes

  • When the size parameter is changed, all tolerances get multiplied by the ratio of size/109.

Other

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.

TODO

  • catch all indexoutofbounds
  • smoother kanji lines
  • different coloring for different parts of stroke based on how wrong it is.

Metadata

Release files for anki-kunren 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anki-kunren 1.4.0
File Size Uploaded
anki-kunren-1.4.0.tar.gz 4.6 MB Details

Release files / anki-kunren-1.4.0.tar.gz

Download URL anki-kunren-1.4.0.tar.gz
Size 4.6 MB
Tags Source
SHA-256 checksum
How to use checksums
5878b21ccf75bc810092c295569e661e6e33dd10311cdfa2e9662789e2ea9193
BLAKE2b-256 checksum
How to use checksums
9b429b0bf148a15416eaabfab935d2dd61d9a20add048b2e801800207e82bc08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

1.4.0 This release

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page