Anki Kunren (暗記 訓練)
Anki Kunren is a program to drill japanese kanji stroke order and practice writing in sync with an Anki study session.
Installation
- install via pip:
pip install anki-kunren - 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, --helpShow help message-s SStart point size in px. defaults to 5px-d DStroke forgiveness in average px from actual. defaults to 25px--field FIELDname of anki card field containing kanji. defaults to "Vocabulary-Kanji"--size SIZELength 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 stroken: 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.
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| anki-kunren-1.4.0.tar.gz | 4.6 MB | Without provenance | Details for anki-kunren-1.4.0.tar.gz |
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
|
Security for anki-kunren 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.