No description
- C++ 98.4%
- Makefile 1%
- C 0.6%
| .dictionaries | Dok: Anweisungen für dei Einrichtung von Wörterbüchern hinzufügen | |
| .keybinds | Dok: Neue Tastenkombination hinzufügen | |
| .states | Funk: Hinzufügen eines Mechanismus zum Speichern/Laden des Status. | |
| .translations | Funk: Übersetzungsmodus zur Schreibsitzung hinzufügen | |
| data | Funk: Dateien bewegen | |
| docs | Dok: Dokumentation aktualisieren | |
| src | Dok: Dokumentation im Code aktualisieren | |
| tests | Funk: Sync-Test hinzufügen | |
| .gitignore | Funk: Integration mit Breader hinzufügen | |
| LICENSE | Dok: Lizenzdatei hinzufügen | |
| Makefile | Funk: Wort parallel zur Hauptausführung herunterladen | |
| README | Dok: Dokumentation im Code aktualisieren | |
German-Writings ------------- C++ typerace game with real-time dictionary and translation support. ---- Prerequisites ------------ - **libcurl**: Required for downloading word definitions and translations. - On Ubuntu/Debian: `sudo apt install libcurl4-openssl-dev` - On Fedora: `sudo dnf install libcurl-devel` - On Arch: `sudo pacman -S curl` - **POSIX threads (pthread)**: Required so Ctrl+D downloads run on a background thread instead of blocking typing. Included by default with any standard Linux C++ toolchain (e.g. `build-essential` on Debian/Ubuntu), so no extra package is usually needed. Build ----- ``` make ``` Test ---- ``` make test ``` Run ----- Usage: ./typerace <input_file> [options] Typeracer CLI game. Options: -h, --help Display this help message -l, --lines=<lines> Number of lines to display (default: 7 or terminal height) -w, --words=<words> Limit the text to the first <words> words -d, --dictionary=<lang> Enable real-time dictionary lookup for <lang> (e.g. 'en') -t, --translate=<l1/l2> Enable translation back to English (e.g. 'es/en', 'de/en') -u, --unicode Show Unicode code point hints (e.g. U+00E4) below cursor -p, --no-progress-bar Hide the progress bar next to the completion percentage -b, --blinking-cursor Show a blinking cursor at the bottom to help typing Unicode (useful for terminals with IBus misconfig) -r, --resume-breader Search and prompt for breader progress files Shortcuts during game: Ctrl+C Quit/Save Ctrl+D Download definition (runs in the background; typing is never blocked) Ctrl+N Scroll dictionary down Ctrl+P Scroll dictionary up Ctrl+S Toggle dictionary window Ctrl+U (with -b) Enter a Unicode hex code point, e.g. u1e40, then Enter/Space to commit or Esc to cancel Examples: ./typerace text.txt -l 10 -w 500 -d en ./typerace text.txt -l 20 -t de/en Observation: You can either use dictionary or translate mode once at the time. The dictionary mode will hint word definitions in english, and the translate will parse meanings from other languages to the english language which is the reference. Real-time lookup requires an active internet connection if the word hasn't been downloaded yet.