Skip to content

lucivpav/cwg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dd706eb · May 8, 2022

History

89 Commits
Sep 28, 2020
May 14, 2020
May 8, 2022
May 8, 2022
Sep 24, 2019
May 28, 2020
Sep 24, 2019
Sep 9, 2017
Sep 24, 2019
Sep 24, 2019
Sep 24, 2019
May 28, 2020
May 14, 2020

Repository files navigation

Chinese Worksheet Generator

Allows one to generate Chinese practice worksheets.

Build Status

Features

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

Dependencies

Installation notes

Words

  • Use parentheses to group multiple characters together. This will add definition of such words into the sheet.

Command line worksheet generation

Show usage

gen.py

Generate worksheet

gen.py --makemeahanzi=$MAKEMEAHANZI_PATH --cedict=$CEDICT_PATH --characters='你好' --title='Vocabulary' --guide='star' --stroke-order-color='red'

Customize pinyin, translation and words

gen.py --makemeahanzi=$MAKEMEAHANZI_PATH --cedict=$CEDICT_PATH --characters='(你好)' --info # Generate character_infos.json

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

gen.py --makemeahanzi=$MAKEMEAHANZI_PATH --title='Vocabulary' --guide='star' --sheet # Generate worksheet

Running tests

pipenv install
cd backend
pipenv run pytest test

License

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