A Hanzi learning suite, with levels based on Hanzi Level Project, aka. another attempt to clone WaniKani.com for Chinese.
- Speak sentences and vocabularies when clicked on. (Tested on Mac OSX)
- May need to be modified to google_speech if you want it spoken on non-mac.
- Show Hanzi decomposition and super-decomposition (powered by CJKhyperradicals).
- 60 major Hanzi levels -- learn or review in each levels, based on Hanzi Level Project.
- Breakdown sentences into vocab, for learning, with audio -- powered by jieba.
- Export to Excel file.
- SRS (Spaced-repetition system) is now possible via Jupyter Notebook.
- Install Python first, if you don't have one.
- Clone the project from GitHub.
- Change the directory to the project folder, in the terminal and create a virtual environment.
- Install poetry, and run
poetry install
. - Run
app.py
. - Go to
https://localhost:8080
on your browser.
The app server has to be running first. In Jupyter Notebook:
>>> from webapp.databases import Vocab
>>> from webapp import db
>>> iter_quiz = Vocab.iter_quiz(tag='col1', is_due=True)
>>> card = next(iter_quiz)
>>> card.hide()
An HTML-rendered front of the card is shown.
>>> card.show()
An HTML-rendered back of the card is shown.
>>> card.get_more_sentences()
Add more sentences to the card, if the number of example sentences is too few.
>>> card.wrong()
Mark the card as wrong.
>>> card.right()
Mark the card as right.
>>> card.mark()
Add the tag "marked" to the card.
>>> card.unmark()
Remove the tag "marked" from the card.
>>> db.session.commit()
Commit changes.