From d78138a067a2d5aee7564a60aad2f28433cf660d Mon Sep 17 00:00:00 2001 From: Philipp Kramer Date: Wed, 18 Jun 2025 13:46:14 +0200 Subject: [PATCH] copy files from other repo --- flaschenring_template.svg | 112 ++++++++++++++++++++++++++++++++++++++ generate_flaschenring.sh | 12 ++++ 2 files changed, 124 insertions(+) create mode 100644 flaschenring_template.svg create mode 100644 generate_flaschenring.sh diff --git a/flaschenring_template.svg b/flaschenring_template.svg new file mode 100644 index 0000000..929ccb6 --- /dev/null +++ b/flaschenring_template.svg @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + 123456789 + 123456789 + + diff --git a/generate_flaschenring.sh b/generate_flaschenring.sh new file mode 100644 index 0000000..421f67b --- /dev/null +++ b/generate_flaschenring.sh @@ -0,0 +1,12 @@ +#!/bin/bash +#Getestet mit inkscape --version +#Inkscape 1.2.2 (732a01da63, 2022-12-09) + +sed "s/123456789/"$1"/g" flaschenring_template.svg > flaschenring_$1_temp.svg +sleep 3 +inkscape --export-text-to-path -o flaschenring_$1_temp2.svg flaschenring_$1_temp.svg +sleep 3 +inkscape --batch-process --actions="select-by-id:textbasepath;delete" -o flaschenring_$1.svg --with-gui flaschenring_$1_temp2.svg +sleep 3 +rm flaschenring_$1_temp.svg +rm flaschenring_$1_temp2.svg