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:
co-authored by
Claude Opus 5.5
parent
28f2bcdb32
commit
6bdaa62a7d
@@ -6,5 +6,5 @@ if "%~1"=="" (
|
||||
echo please give a directory in the in folder with .svg glyphs as input
|
||||
exit /b 1
|
||||
)
|
||||
"%PICCREATE_PYTHON%" "%PICCREATE_LIBS%\glyphextract.py" -f %1
|
||||
"%PICCREATE_PYTHON%" "%PICCREATE_LIBS%\glyphextract.py" -i %1 -e %2 %3 %4 %5 %6 %7 %8 %9
|
||||
exit /b %errorlevel%
|
||||
|
||||
+2
-2
@@ -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
|
||||
# Glyphen und <font>.cfg eines Fonts nach $PICCREATE_OUT schreiben
|
||||
python3 $PICCREATE_LIBS/glyphextract.py -f "$1"
|
||||
python3 $PICCREATE_LIBS/glyphextract.py -i "$1" -e "${@:2}"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
. setenv.sh
|
||||
. "$(dirname "${BASH_SOURCE[0]}")/setenv.sh"
|
||||
|
||||
# Einen Buchstaben extrahieren
|
||||
# extract-glyph.sh -i ../in/ausgangsschrift/a.svg Testbild fuer Inkscape
|
||||
|
||||
+1
-1
@@ -6,5 +6,5 @@ if "%~1"=="" (
|
||||
echo please give a directory in the in folder with .svg glyphs as input
|
||||
exit /b 1
|
||||
)
|
||||
"%PICCREATE_PYTHON%" "%PICCREATE_LIBS%\glyphextract.py" -t %1
|
||||
"%PICCREATE_PYTHON%" "%PICCREATE_LIBS%\glyphextract.py" -i %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
exit /b %errorlevel%
|
||||
|
||||
+2
-2
@@ -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}"
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
. setenv.sh
|
||||
. "$(dirname "${BASH_SOURCE[0]}")/setenv.sh"
|
||||
|
||||
# Startet das Programm
|
||||
python3 $PICCREATE_LIBS/piccreate.py "$@"
|
||||
|
||||
+2
-1
@@ -4,7 +4,8 @@
|
||||
if [ ! -z $PICCREATE ];then
|
||||
return 0
|
||||
fi
|
||||
export PICCREATE=~/develop/python/piccreate
|
||||
# das Verzeichnis ueber bin/
|
||||
export PICCREATE=$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")/.." && pwd)
|
||||
echo setting environment to $PICCREATE
|
||||
# ------------------
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
. setenv.sh
|
||||
. "$(dirname "${BASH_SOURCE[0]}")/setenv.sh"
|
||||
|
||||
# SVG Bilder mit ImageMagick in JPG/PNG umwandeln
|
||||
# svgconvert.sh -c punkteraetsel --format png -p
|
||||
# svgconvert.sh -c punkteraetsel -p
|
||||
python3 $PICCREATE_LIBS/svgconvert.py "$@"
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
. setenv.sh
|
||||
. "$(dirname "${BASH_SOURCE[0]}")/setenv.sh"
|
||||
|
||||
# Vorschaubilder von Webseiten erzeugen (Playwright, Python-venv im Projekt)
|
||||
PYTHON=python3
|
||||
|
||||
Reference in New Issue
Block a user