Files
Michael StanglandClaude Opus 5.5 29c066b45a 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>
2026-10-09 09:29:02 +02:00

39 lines
1.5 KiB
Batchfile

@echo off
rem ------------------
rem Umgebung fuer piccreate unter Windows setzen
rem (Gegenstueck zu setenv.sh, wird von den anderen .bat Dateien aufgerufen)
rem ------------------
rem Wo ist das Programm hinkopiert: das Verzeichnis ueber bin\
if not defined PICCREATE for %%I in ("%~dp0..") do set "PICCREATE=%%~fI"
echo setting environment to %PICCREATE%
set "PICCREATE_BIN=%PICCREATE%\bin"
set "PICCREATE_CFG=%PICCREATE%\cfg"
set "PICCREATE_LIBS=%PICCREATE%\libs"
set "PICCREATE_FONTS=%PICCREATE%\fonts"
set "PICCREATE_IN=%PICCREATE%\in"
set "PICCREATE_OUT=%PICCREATE%\out"
set "PICCREATE_BACKGROUNDS=%PICCREATE%\backgrounds"
set "PICCREATE_LOG=%PICCREATE%\log"
rem Wo sind die Pythonskripte ?
set "PYTHONPATH=%PICCREATE_LIBS%;%PYTHONPATH%"
rem Dateien und Ausgaben immer als UTF-8
set "PYTHONUTF8=1"
rem Welches Python: zuerst das aus .venv, dann der Python Launcher "py",
rem dann "python" aus dem PATH
if defined PICCREATE_PYTHON exit /b 0
if exist "%PICCREATE%\.venv\Scripts\python.exe" (
set "PICCREATE_PYTHON=%PICCREATE%\.venv\Scripts\python.exe"
exit /b 0
)
for /f "delims=" %%P in ('py -3 -c "import sys; print(sys.executable)" 2^>nul') do set "PICCREATE_PYTHON=%%P"
if defined PICCREATE_PYTHON exit /b 0
for /f "delims=" %%P in ('python -c "import sys; print(sys.executable)" 2^>nul') do set "PICCREATE_PYTHON=%%P"
if defined PICCREATE_PYTHON exit /b 0
echo Python 3 not found. Please install it from https://www.python.org
echo or with: winget install Python.Python.3.13
exit /b 1