From f3c1b568ac28e211d218f0b33ccb85cf782ce248 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 18 Jul 2025 20:18:48 +0300 Subject: docs: update README with batch file translation format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added documentation for 'bulgarian = english' batch file format - Included examples of all three supported formats - Added note about API quota savings when providing translations - Updated Quick Start section with example batch file πŸ€– Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- README.md | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 583de85..beb8a75 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,14 @@ export OPENAI_API_KEY="sk-..." ```bash totalrecall --batch words.txt ``` + + Example `words.txt` with translations: + ``` + ΠΊΠ½ΠΈΠ³Π° = book + стол = table + ΠΊΠΎΠΌΠΏΡŽΡ‚ΡŠΡ€ + ΠΌΠΎΠ»ΠΈΠ² = pencil + ``` 4. Generate with Anki package: ```bash @@ -137,7 +145,9 @@ totalrecall --gui ### Batch file format -Create a text file with one Bulgarian word per line: +Create a text file with Bulgarian words, optionally with English translations: + +**Format 1: Bulgarian words only** ``` ябълка ΠΊΠΎΡ‚ΠΊΠ° @@ -146,6 +156,26 @@ Create a text file with one Bulgarian word per line: Π²ΠΎΠ΄Π° ``` +**Format 2: Bulgarian words with translations** +``` +ΠΊΠ½ΠΈΠ³Π° = book +стол = table +ΠΏΡ€ΠΎΠ·ΠΎΡ€Π΅Ρ† = window +ΠΊΠΎΠΌΠΏΡŽΡ‚ΡŠΡ€ = computer +ΠΌΠΎΠ»ΠΈΠ² = pencil +``` + +**Format 3: Mixed format** +``` +ΠΊΠ½ΠΈΠ³Π° = book +ΠΊΠΎΡ‚ΠΊΠ° +стол = table +ΠΊΡƒΡ‡Π΅ +ΠΌΠΎΠ»ΠΈΠ² = pencil +``` + +When translations are provided, they are used directly without calling the translation API, saving time and API quota. Spaces around the words and translations are automatically trimmed. + ### Output Files For each word, the tool generates: -- cgit v1.2.3