makemeunsee / ichimiginikarasu

tool for generating printable Kanji flashcards
Other
68 stars 10 forks source link
flashcards jmdict kanji kanji-stroke-diagrams kanjidic2 kanjivg

一右二烏

Purpose

This is a tool to generate printable kanji flashcards, because the free existing sets I found were not satisfying to me. The goal is to have the flashcards:

Multilingual support was an early goal, but the current state of dictionaries for language other than English makes it less promising. French is supported, with results not on par with the English version (fewer compounds, more 'things bigger than their boxes' cases, etc.).

Example

Generated decks

Samples

Flashcard sample

Annotated flashcard sample

Requirements

Usage

Build

stack build

Create .tex flashcard file for the kanji of a text file

stack exec ichimiginikarasu-exe -- -f resources/jpn_words_girardi_kelly -j resources/JMdict -k resources/kanjidic2.xml -n mydeck -i inputfile > mydeck.tex

where 'inputfile' is the text file to get kanjis from, and 'mydeck' is the name of the deck (appears top right of the flashcards front).

Other parameters can be changed to load custom resources.

Generate .pdf from .tex

xelatex mydeck.tex

Advanced

Launch options are available using:

stack exec ichimiginikarasu-exe -- -h

Grepping 'error' from the latex compilation can help identify potential typesetting problems (content too large and overlapping typically):

xelatex mydeck.tex | grep 'error'

Issues

Acknowledgements

Lots of existing resources were necessary to create this tool and flashcards. In no particular order:

See the LICENSE file for details, and these sites for similar resources:

http://ftp.monash.edu.au/pub/nihongo/00INDEX.html

http://lars.yencken.org/datasets/phd/

Future features