Flashcard is a simple program written in Python to review Chinese/English Flashcards. Please note that this has been developed on Mac, so the TKinter label's may need re-positioning to run smoothly on Windows.
- Chinese Character (Simplified)
- Romanised Pinyin
- Word Type (verb, noun, interjection, etc ..)
- English Translation(s)
- Flashcard ID number
- Press 1 to toggle between Chinese and English Audio
- Press 2 to toggle TTS Voices
- Press space to play audio
- Press r to go to random card in deck
There are two ways of Navigating through the Flashcards:
- Clicking on 'arrow' buttons in the bottom-corners of the window.
- Use the left and right arrows on your keyboard.
You can close the window using 'Esc' key on your keyboard.
You can search for a Flashcard by typing the Flashcard ID number in the search box (top-right).
This feature is a planned future development.
However, you can manually add custom decks by creating a new directory in 'assets/decks/'
with your desired deck name. You can then create a 'db.json' file within this new directory and
follow the file structure from another deck. To add audio to the deck, you can create two subdirectories in your
deck folder. One named 'zh' (for Chinese audio), and one named 'en' (for English audio). The naming convention
for the audio files are:
X.mp3 - audio voice 1
X_alt.mp3 - audio voice 2
X_alt2.mp3 - audio voice 3
...where 'X' is the card's ID number.
I welcome contributions to the Flashcards mini project!
Some ideas for development are:
- Toggle sliders to adjust audio playback speed
- Deck filtering
- Dynamic CRUD of Flashcards/Decks
- Study mode - hide English meanings with reveal button to help user test knowledge
- Ability to add images to Flashcards to help user recall English meaning in Study mode