Skip to content

imac01/cwg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chinese Worksheet Generator

Allows one to generate Chinese practice worksheets.

Features

  • Simplified and traditional Chinese
  • Stroke order
  • Radicals
  • Customizable pinyin and translation
  • Customizable title and grid style

Dependencies

  • makemeahanzi dataset
  • cairosvg
  • reportlab
  • flask

Command line worksheet generation

Show usage

gen.py

Generate worksheet

gen.py --dataset=$DATASET_PATH --characters='你好' --title='Vocabulary' --guide='star'

Customize pinyin and translation

gen.py --dataset=$DATASET_PATH --characters='你好' --info # Generate character_infos.json

# You may edit the 'character_infos.json' to customize pinyin and translation

gen.py --dataset=$DATASET_PATH --title='Vocabulary' --guide='star' --sheet # Generate worksheet

License

This project is released under the GPLv3 license, for more details, take a look at the LICENSE.txt file in the source code.

Releases

No releases published

Packages

No packages published

Languages

  • Python 71.8%
  • JavaScript 18.5%
  • HTML 7.6%
  • CSS 2.1%