tools: Schriften plattformunabhängig finden, Setup für macOS dokumentieren

- tools/fontpicker.py sucht DejaVu über WESTREICHE_FONT_DIR, Linux-Pfade und
  ~/Library/Fonts statt festem /usr/share/fonts/truetype/dejavu
- PDF-Skripte (Almanach, Liturgie, SL-Tabellen, SL-Schirm) nutzen den Finder
- tools/requirements.txt (reportlab, markdown, pillow) + Setup-Abschnitt in
  AGENTS.md inkl. ghostscript, pandoc und font-dejavu für macOS
This commit is contained in:
torsten 2026-11-20 17:30:35 +01:00
parent 2dd6295caf
commit 7ab88b6d73
6 changed files with 91 additions and 3 deletions

View file

@ -91,6 +91,21 @@ Wichtige Einstiege: `RPG/2-Spieler/` (je ein Ordner pro Spieler),
## Tooling
**Setup (einmalig, gilt für Linux und macOS):**
```bash
python3 -m venv .venv
.venv/bin/pip install -r tools/requirements.txt # reportlab, markdown, pillow
```
Systemwerkzeuge: `ghostscript` (A4-Skalierung in den PDF-Builds), `pandoc`
(ODT-Konvertierung), DejaVu-Schriften. Auf macOS per Homebrew:
`brew install ghostscript pandoc && brew install --cask font-dejavu`. Die
Schriften suchen die Skripte über `tools/fontpicker.py` (Linux-Pfade,
`~/Library/Fonts`, Override `WESTREICHE_FONT_DIR`). Alle PDF-Skripte und
`build_site.py` mit `.venv/bin/python` starten – das System-Python bringt weder
`reportlab` noch `markdown` mit.
- `tools/md2odt.sh`, `tools/make_reference_odt.py`, `tools/autowidth.lua`:
Markdown → ODT-Konvertierung für Druckmaterial.
- `tools/build_zauber_almanach.py`: erzeugt das PDF-Handout