This script generates printable pdf with flashcards for learning languages. Learn vocabulary with physical aids and minimal effort.
You just need to run a command similar to the following:
python lfc_generator.py --target_language it --source_language en --rows 6 --cols 4 --word_count 2500Unfortunately, you have to cut them yourself ✂️😊. You can set how many cards you want to fit onto a single page base on your needs. You can change the following variables using the command line parameters:
-tor--target_language: Language you are going to learn. Any language supported by google translate is supported. however, I cannot guarantee the quality of the translation, as it is done by a robot. To learn available codes go to https://developers.google.com/admin-sdk/directory/v1/languages- Example:
-t fr - Default:
--target_language en
- Example:
-sor--source_language: Language you know, file \lemmas\lemmas_<lang_code>.txt is expected. You can create the file manually if you have certain words you wanna learn in mind or you can use/edit the lemmas provided for "cs" or "en" languages. They contain the most used words in both provided languages.- Example:
-s en - Default:
--source_language cs
- Example:
-ror--rows: Number of rows on one page. 6 is recommended to have a card about 5cm or 2 inches in height.- Example:
-r 4 - Default:
--rows 6
- Example:
-cor--cols: Number of columns on one page. 4 is recommended to have a card about 5cm or 2 inches in height.- Example:
-c 3 - Default:
--cols 4
- Example:
-wor--word_count: Number of words to be generated. To not waste paper, the number of words will be rounded up to fully cover all pages.- Example:
-w 2000 - Default:
--word_count 250
- Example:
- Functionality for custom fonts.
- Provide lemma corpus in additional languages.
- Executable files for various platforms.
