Skip to main content

Anki practice tool to drill japanese kanji stroke order and practice writing.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anki-kunren-1.4.0.tar.gz (4.6 MB view details)

Uploaded Source

File details

Details for the file anki-kunren-1.4.0.tar.gz.

File metadata

  • Download URL: anki-kunren-1.4.0.tar.gz
  • Upload date:
  • Size: 4.6 MB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for anki-kunren-1.4.0.tar.gz
Algorithm Hash digest
SHA256 5878b21ccf75bc810092c295569e661e6e33dd10311cdfa2e9662789e2ea9193
MD5 24b73032b618137b98db2fa7570dedd1
BLAKE2b-256 9b429b0bf148a15416eaabfab935d2dd61d9a20add048b2e801800207e82bc08

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page