Windows-Unterstützung: .bat-Skripte, Font-Werkzeuge in Python

- libs/glyphextract.py ersetzt die grep/sed/bc-Logik von extract-glyph.sh,
  extract-font.sh und fonttest.sh (die .sh rufen es nur noch auf);
  schreibt FONTNAME= und <font>.cfg nach $PICCREATE_OUT
- bin/*.bat: setenv, piccreate, svgconvert, webscan, extract-glyph,
  extract-font, fonttest, setup-venv; .gitattributes für CRLF
- piccreate.py: Hintergrund als file:// URL (Windows-Pfade)
- svgconvert.py: magick statt convert, Configs/CSV als UTF-8
- webscan.py: Installationshinweise für Windows
- doc/README.md: Abschnitt Windows, Font-Werkzeuge aktualisiert

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Michael Stangl
2026-10-09 09:29:02 +02:00
co-authored by Claude Opus 5.5
parent 4897883938
commit 29c066b45a
18 changed files with 471 additions and 209 deletions
+3 -18
View File
@@ -2,23 +2,8 @@
. setenv.sh
if [ -z "$1" ]; then
echo "please give a directory in the templates folder with .svg glyphs as input"
echo "please give a directory in the in folder with .svg glyphs as input"
exit 1
fi
if [ -d "$PICCREATE_IN/$1" ]; then
export SOURCE="$PICCREATE_IN/$1"
elif [ ! -d "$1" ]; then
export SOURCE="$1"
else
echo "directory does not exist"
echo "please give a directory with .svg files as input"
exit 1
fi
export TARGET=$PICCREATE_OUT
for i in `ls $SOURCE/*.svg`
do
echo `basename $i .svg`
$PICCREATE_BIN/extract-glyph.sh -i $i
done
# Testbilder aller Glyphen eines Fonts nach $PICCREATE_OUT schreiben
python3 $PICCREATE_LIBS/glyphextract.py -t "$1"