All Projects → kerrickstaley → Chinese-Prestudy

kerrickstaley / Chinese-Prestudy

Licence: other
Anki plugin to generate Chinese flashcards for a given text (e.g. an article)

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Chinese-Prestudy

Chinese-Prestudy is an Anki 2.1 plugin that helps you generate flashcards for a body of text so that you can learn the text's vocabulary before you read it.

There is more information, including usage instructions, in this blog post.

Travis Build Status Appveyor Build Status

Developing

If you want to contribute back to this project, follow these instructions:

Setup

  1. You'll want a computer running Linux. macOS may work too. Windows will not.
  2. You need Anki 2.1 installed.
  3. Install Python dependencies:
pip3 install --user chinesevocablist chineseflashcards genanki jieba cached_property pystache pyyaml

Running

To try out your code, run

make install

and restart Anki to see the effects. You may need to uninstall your existing copy of the plugin if you got it from AnkiWeb, otherwise you'll have two copies of the plugin installed.

There are also some (currently, not very many) unit tests. You can run those with

make test

Some changes may belong in chinesevocablist, chineseflashcards, or genanki. If you want to change one of these packages, check it out from GitHub, make your change, and then run make install in the package's directory followed by make install in this directory and restart Anki.

Publishing

If your name is Kerrick, you can publish new versions to AnkiWeb by following these steps:

  1. Run ./package.py to generate package.ankiaddon.
  2. Install package.ankiaddon in Anki, and restart. Test thoroughly.
  3. Go to https://ankiweb.net/shared/upload?id=882364911 and upload the new version of the package.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].