WIP 02: style adjustments to match eh22 styleguide

This commit is contained in:
kritzl 2025-02-20 22:03:16 +01:00
commit 0501598d41
Signed by: kritzl
SSH key fingerprint: SHA256:5BmINP9VjZWaUk5Z+2CTut1KFhwLtd0ZynMekKbtViM
75 changed files with 957 additions and 317 deletions

31
img/export.sh Executable file
View file

@ -0,0 +1,31 @@
#!/bin/sh
# This script can be used to automatically export all project files
# to ensure, they are a single path without any modifiers or other
# inkscape-dependent things. It will also remove unnecessary things
# from the SVGs. For this the script requires both inkscape and svgo
# to be installed.
for infile in ./project_files/*.svg
do
outfile="./$(basename "$infile")"
inkscape --actions="select-by-element: svg;
object-set-attribute: id, svg;
select-clear;
select-all: layers;
selection-ungroup;
select-clear;
select-all: no-groups;
object-stroke-to-path;
path-union;
object-set-attribute: id,path;
object-set-attribute: style,;
selection-group;
selection-ungroup;
export-plain-svg;" \
--export-filename "$outfile" \
--vacuum-defs "$infile"
svgo --pretty "$outfile"
done