https://github.com/eshrh/anki-kunren
Interactive japanese kanji writing drill practice for anki with stroke order
https://github.com/eshrh/anki-kunren
anki japanese japanese-study kanji kanjivg
Last synced: 14 days ago
JSON representation
Interactive japanese kanji writing drill practice for anki with stroke order
- Host: GitHub
- URL: https://github.com/eshrh/anki-kunren
- Owner: eshrh
- License: gpl-3.0
- Created: 2020-06-08T02:49:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-22T17:18:48.000Z (almost 5 years ago)
- Last Synced: 2025-03-26T06:24:14.858Z (about 1 month ago)
- Topics: anki, japanese, japanese-study, kanji, kanjivg
- Language: Python
- Homepage:
- Size: 10.9 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Development of this project has moved to [gitlab](https://gitlab.com/esrh/anki-kunren)
# Anki Kunren (暗記 訓練)
Anki Kunren is a program to drill japanese kanji stroke order and practice writing in sync with an Anki study session.
## Installation
1. install via pip: `pip install anki-kunren`
2. install [anki-connect](https://ankiweb.net/shared/info/2055492159) 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`: **h**int the current stroke
+ `a`: **a**nimate the current stroke
+ `d`: **d**raw all strokes
+ `n`: **n**ext 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](https://creativecommons.org/licenses/by-sa/3.0/) license.The KanjiVG ascii filename code is taken from [Kanji Colorizer](https://github.com/cayennes/kanji-colorize) which was also the source of my initial inspiration.
## TODO
+ different coloring for different parts of stroke based on how wrong it is.