Skip to content

Poster of 2200 jōyō and WaniKani kanji

Notifications You must be signed in to change notification settings

khyox/kanji_poster

 
 

Repository files navigation

Kanji Poster

screenshot

A simple python script to generate the LaTeX source for a poster to show all jōyō kanji as well as the extra kanji included in WaniKani.

In total the poster includes 2200 kanji. The script supports varies ways of sorting and coloring the kanji; in the screenshot above they are sorted according to the order they occur in Remembering the Kanji by James Heisig and colored according to the log of their frequency in some common texts.

I've also checked in example versions of the poster with different fonts that you can download. Note that this is still a work in progress, I have not checked the poster for correctness.

Usage

# Generate the LaTeX files.
python3 generate_tex.py

# Compile everything into a pdf.
lualatex main.tex

To convert the pdf to a png image for easy sharing online, use

NAME=main ; pdftoppm $NAME.pdf $NAME -png -f 1 -singlefile -rx 50 -ry 50

Dependencies

The script uses colour to interpolate colors and jaconv to convert between hiragana and katakana for readings; you can install both from pip.

To compile the pdf, you'll need the LuaLaTeX package; on Ubuntu you can install this with:

sudo apt install texlive-full texlive-luatex

Depending on the fonts you want to use, you might have to install some more packages:

# IPAexMincho and IPAexGothic
sudo apt install fonts-ipaexfont

About

Poster of 2200 jōyō and WaniKani kanji

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TeX 50.7%
  • HTML 47.8%
  • Python 1.5%