Optionsschalter vereinheitlicht, .sh-Skripte von überall aufrufbar

- gleiche Aufgabe = gleicher Schalter in allen Programmen:
  -c/--config (Alias --cfg), -i, -o/--outdir, --section, --format,
  -f/--force, -j, -t/--test, -y/--dry, -v
- svgconvert: -o statt -s (Alias --svgfolder), --section statt --format
  für die Sektion (Standard png), --format überschreibt das Bildformat
- webscan: --timeout und --browser nur noch lang (kollidierten mit -t/-b)
- glyphextract: -i nimmt Glyph oder Font, -e extrahiert (statt -f/-t)
- setenv.sh ermittelt das Projektverzeichnis selbst, alle .sh laden es
  relativ zum Skript; extract-font/fonttest reichen weitere Optionen durch
- Hilfetexte korrigiert, doc/README.md: Abschnitt "Gemeinsame Optionen"

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Michael Stangl
2026-10-09 09:37:20 +02:00
co-authored by Claude Opus 5.5
parent 28f2bcdb32
commit 6bdaa62a7d
14 changed files with 113 additions and 70 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
#!/bin/bash
. setenv.sh
. "$(dirname "${BASH_SOURCE[0]}")/setenv.sh"
if [ -z "$1" ]; then
echo "please give a directory in the in folder with .svg glyphs as input"
exit 1
fi
# Testbilder aller Glyphen eines Fonts nach $PICCREATE_OUT schreiben
python3 $PICCREATE_LIBS/glyphextract.py -t "$1"
python3 $PICCREATE_LIBS/glyphextract.py -i "$1" "${@:2}"