1
0
Fork
You've already forked german-writings
0
No description
  • C++ 98.4%
  • Makefile 1%
  • C 0.6%
Find a file
2026年07月05日 20:54:12 -03:00
.dictionaries Dok: Anweisungen für dei Einrichtung von Wörterbüchern hinzufügen 2025年07月21日 21:05:58 -03:00
.keybinds Dok: Neue Tastenkombination hinzufügen 2025年09月28日 12:21:58 -03:00
.states Funk: Hinzufügen eines Mechanismus zum Speichern/Laden des Status. 2025年07月16日 23:45:28 -03:00
.translations Funk: Übersetzungsmodus zur Schreibsitzung hinzufügen 2026年02月04日 11:02:54 -03:00
data Funk: Dateien bewegen 2025年07月05日 13:52:45 -03:00
docs Dok: Dokumentation aktualisieren 2026年02月19日 14:07:53 -03:00
src Dok: Dokumentation im Code aktualisieren 2026年07月05日 20:53:49 -03:00
tests Funk: Sync-Test hinzufügen 2026年07月05日 20:54:12 -03:00
.gitignore Funk: Integration mit Breader hinzufügen 2026年05月29日 08:46:49 -03:00
LICENSE Dok: Lizenzdatei hinzufügen 2026年02月05日 20:08:00 -03:00
Makefile Funk: Wort parallel zur Hauptausführung herunterladen 2026年07月05日 19:58:12 -03:00
README Dok: Dokumentation im Code aktualisieren 2026年07月05日 20:53:49 -03:00

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.