LangCards is a command-line tool for generating flashcards from a list of words and translations.
pip install -r requirements.txt
python flashcard_generator.py input_files/words.csv --output_file flashcards.pdf --font_size 12
input_files/words.csv
: Path to the input file containing words and translations.flashcards.pdf
: Path to the output PDF file.12
: Font size for the flashcards.The command-line interface supports the following arguments:
input_file
): Path to the input file containing words and translations.output_file
): Path to the output PDF file (default: flashcards.pdf).font_size
): Font size for the flashcards (default: 12).layout
): Layout for the flashcards, either “Classic”, “Boxes”, or “Subdiv” (default: Classic).color
): Color for text in the flashcards, in the HEX format provided as a string (with brackets) (default: #000000).Example:
python flashcard_generator.py input_files/test.csv --output_file flashcards.pdf --font_size 12
Contributions are welcome! If you’d like to contribute to the project, please follow the guidelines in CONTRIBUTING.md.
This project is licensed under the MIT License.