diff --git a/backgrounds/Blume.jpg b/backgrounds/Blume.jpg new file mode 100644 index 0000000..dc8181c Binary files /dev/null and b/backgrounds/Blume.jpg differ diff --git a/backgrounds/Blume.png b/backgrounds/Blume.png new file mode 100644 index 0000000..11b57de Binary files /dev/null and b/backgrounds/Blume.png differ diff --git a/backgrounds/test.png b/backgrounds/test.png new file mode 100644 index 0000000..90ae0be Binary files /dev/null and b/backgrounds/test.png differ diff --git a/backgrounds/test.svg b/backgrounds/test.svg new file mode 100644 index 0000000..dfa0fd8 --- /dev/null +++ b/backgrounds/test.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + diff --git a/backgrounds/wiese.jpg b/backgrounds/wiese.jpg new file mode 100644 index 0000000..1a8cc2b Binary files /dev/null and b/backgrounds/wiese.jpg differ diff --git a/backgrounds/wiese.png b/backgrounds/wiese.png new file mode 100644 index 0000000..e923d3f Binary files /dev/null and b/backgrounds/wiese.png differ diff --git a/bin/extract-glyph.sh b/bin/extract-glyph.sh new file mode 100755 index 0000000..601d9ef --- /dev/null +++ b/bin/extract-glyph.sh @@ -0,0 +1,35 @@ +#!/bin/bash +. setenv.sh + + +if [ -z "$1" ]; then + echo "please give a .svg file of a glyph as input" + exit 1 +fi +if [ -s "$1" ]; then + export BASE=`basename $1 .svg` + export TARGET=$PICCREATE_OUT/$BASE.svg +else + echo "input file does not exist" + exit 1 +fi + +# extrahiere die wichtigen Zeilen aus dem Font +cat $1 | egrep '<\|x1|x2|y1|y2|/>|style' | egrep -v '\|id=|http:' > line-$BASE.svg +cat $1 | egrep 'circle|translate|\' > circles-$BASE.svg +cat $1 | egrep '<\>|\=|\=|tspan' | egrep -v '\|\=' > text-$BASE.svg + +# reduziere einige Zeilen um bestimmte Muster +cat line-$BASE.svg | sed -e 's/inkscape:transform-center-x=".*"//g' > $$; mv $$ line-$BASE.svg +cat text-$BASE.svg | sed -e 's/inkscape:transform-center-y=".*"//g' > $$; mv $$ text-$BASE.svg + +# schreib einen neuen Buchstaben + echo '' > $TARGET +cat text-$BASE.svg >> $TARGET +cat circles-$BASE.svg >> $TARGET +cat line-$BASE.svg >> $TARGET + echo '' >> $TARGET + +rm line-$BASE.svg +rm circles-$BASE.svg +rm text-$BASE.svg diff --git a/bin/fontgen.sh b/bin/fontgen.sh new file mode 100755 index 0000000..341a2ff --- /dev/null +++ b/bin/fontgen.sh @@ -0,0 +1,24 @@ +#!/bin/bash +. setenv.sh + +if [ -z "$1" ]; then + echo "please give a directory in the templates folder with .svg glyphs as input" + exit 1 +fi +if [ -d "$PICCREATE_TEMPLATES/$1" ]; then + export SOURCE="$PICCREATE_TEMPLATES/$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 +done + diff --git a/bin/setenv.sh b/bin/setenv.sh index f3b05d4..25a827d 100755 --- a/bin/setenv.sh +++ b/bin/setenv.sh @@ -1,6 +1,9 @@ #!/bin/bash # ------------------ # Wo ist das Programm hinkopiert +if [ ! -z $PICCREATE ];then + exit 0 +fi export PICCREATE=~/develop/python/piccreate echo setting environment to $PICCREATE # ------------------ diff --git a/templates/ausgangsschrift/A.svg b/templates/ausgangsschrift/A.svg old mode 100644 new mode 100755 diff --git a/templates/ausgangsschrift/a-mit-strichen-gruppe.svg b/templates/ausgangsschrift/a-mit-strichen-gruppe.svg new file mode 100755 index 0000000..1baef95 --- /dev/null +++ b/templates/ausgangsschrift/a-mit-strichen-gruppe.svg @@ -0,0 +1,356 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + x7 + x5 + x4 + x1 + x6 + x11 + x2 + x3 + x10 + x9 + x8 + + + + + + + + + + + + + + + + + diff --git a/templates/ausgangsschrift/a-mit-strichen.svg b/templates/ausgangsschrift/a-mit-strichen.svg new file mode 100755 index 0000000..bde7390 --- /dev/null +++ b/templates/ausgangsschrift/a-mit-strichen.svg @@ -0,0 +1,353 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x7 + x5 + x4 + x1 + x6 + x11 + x2 + x3 + x10 + x9 + x8 + + + + + + + + + + + + + + + + diff --git a/templates/ausgangsschrift/a.svg b/templates/ausgangsschrift/a.svg new file mode 100755 index 0000000..e28e7ac --- /dev/null +++ b/templates/ausgangsschrift/a.svg @@ -0,0 +1,308 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x7 + + x5 + x4 + x1 + x6 + x11 + x2 + x3 + x10 + x9 + x8 + + + + + + + + + + + diff --git a/templates/ausgangsschrift/b.svg b/templates/ausgangsschrift/b.svg old mode 100644 new mode 100755 diff --git a/templates/ausgangsschrift/c.svg b/templates/ausgangsschrift/c.svg old mode 100644 new mode 100755 diff --git a/templates/ausgangsschrift/d.svg b/templates/ausgangsschrift/d.svg new file mode 100755 index 0000000..00baab2 --- /dev/null +++ b/templates/ausgangsschrift/d.svg @@ -0,0 +1,269 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x6 + x8 + x9 + x5 + x4 + x2 + x3 + + + + + + + + x7 + + diff --git a/templates/ausgangsschrift/e.svg b/templates/ausgangsschrift/e.svg new file mode 100755 index 0000000..a15a849 --- /dev/null +++ b/templates/ausgangsschrift/e.svg @@ -0,0 +1,246 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x8 + x2 + x7 + x3 + x6 + + + + + + + x5 + x4 + + diff --git a/templates/ausgangsschrift/f.svg b/templates/ausgangsschrift/f.svg new file mode 100755 index 0000000..ed6d5b4 --- /dev/null +++ b/templates/ausgangsschrift/f.svg @@ -0,0 +1,233 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x2 + x3 + x7 + x6 + + + + + + + x5 + x4 + + diff --git a/templates/ausgangsschrift/g.svg b/templates/ausgangsschrift/g.svg new file mode 100755 index 0000000..35f00c8 --- /dev/null +++ b/templates/ausgangsschrift/g.svg @@ -0,0 +1,292 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x3 + x6 + x7 + x5 + + + + + + + x4 + x2 + + + x9 + x10 + x8 + + diff --git a/templates/ausgangsschrift/h.svg b/templates/ausgangsschrift/h.svg new file mode 100755 index 0000000..ffbd1d1 --- /dev/null +++ b/templates/ausgangsschrift/h.svg @@ -0,0 +1,266 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x3 + x6 + x7 + x5 + + + + + + + x4 + x2 + + + x8 + + diff --git a/templates/ausgangsschrift/i.svg b/templates/ausgangsschrift/i.svg new file mode 100755 index 0000000..faa9de9 --- /dev/null +++ b/templates/ausgangsschrift/i.svg @@ -0,0 +1,161 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x3 + + + + x2 + + + diff --git a/templates/ausgangsschrift/j.svg b/templates/ausgangsschrift/j.svg new file mode 100755 index 0000000..6e320cc --- /dev/null +++ b/templates/ausgangsschrift/j.svg @@ -0,0 +1,184 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x3 + + + + x4 + + + x2 + + diff --git a/templates/ausgangsschrift/k.svg b/templates/ausgangsschrift/k.svg new file mode 100755 index 0000000..4c3bb5b --- /dev/null +++ b/templates/ausgangsschrift/k.svg @@ -0,0 +1,289 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x3 + x6 + x7 + x5 + + + + + + + x4 + x2 + + + x9 + x8 + + + diff --git a/templates/ausgangsschrift/l.svg b/templates/ausgangsschrift/l.svg new file mode 100755 index 0000000..4fb7102 --- /dev/null +++ b/templates/ausgangsschrift/l.svg @@ -0,0 +1,197 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x3 + + + + + x4 + x2 + + x5 + + diff --git a/templates/ausgangsschrift/m.svg b/templates/ausgangsschrift/m.svg new file mode 100755 index 0000000..fd19eb4 --- /dev/null +++ b/templates/ausgangsschrift/m.svg @@ -0,0 +1,220 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x5 + + + + + x2 + x3 + + x4 + + x6 + + diff --git a/templates/ausgangsschrift/n.svg b/templates/ausgangsschrift/n.svg new file mode 100755 index 0000000..60c1c3d --- /dev/null +++ b/templates/ausgangsschrift/n.svg @@ -0,0 +1,174 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + + + + x2 + x3 + + x4 + + diff --git a/templates/ausgangsschrift/o.svg b/templates/ausgangsschrift/o.svg new file mode 100755 index 0000000..3d9ea49 --- /dev/null +++ b/templates/ausgangsschrift/o.svg @@ -0,0 +1,223 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + + + + x5 + x2 + + x3 + x4 + + x6 + x7 + + diff --git a/templates/ausgangsschrift/p.svg b/templates/ausgangsschrift/p.svg new file mode 100755 index 0000000..604e86f --- /dev/null +++ b/templates/ausgangsschrift/p.svg @@ -0,0 +1,220 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + x6 + x4 + + x3 + x2 + + x1 + x5 + + + diff --git a/templates/ausgangsschrift/punkt.svg b/templates/ausgangsschrift/punkt.svg old mode 100644 new mode 100755 diff --git a/templates/ausgangsschrift/q.svg b/templates/ausgangsschrift/q.svg new file mode 100755 index 0000000..738910b --- /dev/null +++ b/templates/ausgangsschrift/q.svg @@ -0,0 +1,269 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x3 + x6 + x7 + x5 + + + + + + + x4 + x2 + + x9 + x8 + + diff --git a/templates/ausgangsschrift/r.svg b/templates/ausgangsschrift/r.svg new file mode 100755 index 0000000..8673af4 --- /dev/null +++ b/templates/ausgangsschrift/r.svg @@ -0,0 +1,197 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + x4 + + x3 + x2 + + x1 + x5 + + diff --git a/templates/ausgangsschrift/s.svg b/templates/ausgangsschrift/s.svg new file mode 100755 index 0000000..de76e49 --- /dev/null +++ b/templates/ausgangsschrift/s.svg @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + x2 + + x3 + x7 + + x1 + x5 + + x4 + x8 + x6 + x9 + + diff --git a/templates/ausgangsschrift/t.svg b/templates/ausgangsschrift/t.svg new file mode 100755 index 0000000..c291c95 --- /dev/null +++ b/templates/ausgangsschrift/t.svg @@ -0,0 +1,220 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x3 + x2 + x5 + + + + + + x6 + x4 + + + diff --git a/templates/ausgangsschrift/u.svg b/templates/ausgangsschrift/u.svg new file mode 100755 index 0000000..f691a8a --- /dev/null +++ b/templates/ausgangsschrift/u.svg @@ -0,0 +1,220 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x3 + x6 + x2 + + + + + + x4 + x5 + + + diff --git a/templates/ausgangsschrift/v.svg b/templates/ausgangsschrift/v.svg new file mode 100755 index 0000000..8fbaec1 --- /dev/null +++ b/templates/ausgangsschrift/v.svg @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x2 + + + + x3 + + diff --git a/templates/ausgangsschrift/vorlage.svg b/templates/ausgangsschrift/vorlage.svg new file mode 100755 index 0000000..4511d79 --- /dev/null +++ b/templates/ausgangsschrift/vorlage.svg @@ -0,0 +1,246 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + f x1 + x2 + x3 + x7 + x6 + + + + + + + x5 + x4 + + diff --git a/templates/ausgangsschrift/w.svg b/templates/ausgangsschrift/w.svg new file mode 100755 index 0000000..7824fc5 --- /dev/null +++ b/templates/ausgangsschrift/w.svg @@ -0,0 +1,197 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x2 + + + + x3 + x4 + + + x5 + + diff --git a/templates/ausgangsschrift/x.svg b/templates/ausgangsschrift/x.svg new file mode 100755 index 0000000..250d960 --- /dev/null +++ b/templates/ausgangsschrift/x.svg @@ -0,0 +1,197 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x4 + + + + x5 + x2 + + + x3 + + diff --git a/templates/ausgangsschrift/y.svg b/templates/ausgangsschrift/y.svg new file mode 100755 index 0000000..8ae3917 --- /dev/null +++ b/templates/ausgangsschrift/y.svg @@ -0,0 +1,268 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x2 + + + + x5 + x3 + + + x4 + + + + x6 + x7 + x8 + + diff --git a/templates/ausgangsschrift/z.svg b/templates/ausgangsschrift/z.svg new file mode 100755 index 0000000..f7ac496 --- /dev/null +++ b/templates/ausgangsschrift/z.svg @@ -0,0 +1,174 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x3 + + + + x2 + + x4 + + diff --git a/templates/ausgangsschrift/ä.svg b/templates/ausgangsschrift/ä.svg new file mode 100755 index 0000000..f6089e3 --- /dev/null +++ b/templates/ausgangsschrift/ä.svg @@ -0,0 +1,325 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x5 + x4 + x1 + x6 + x11 + x2 + x3 + x10 + x9 + x7 + x8 + + + + + + + + + + + + diff --git a/templates/ausgangsschrift/ö.svg b/templates/ausgangsschrift/ö.svg new file mode 100755 index 0000000..ce32338 --- /dev/null +++ b/templates/ausgangsschrift/ö.svg @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + + + + x5 + x2 + + x3 + x4 + + x6 + x7 + + + + diff --git a/templates/ausgangsschrift/ü.svg b/templates/ausgangsschrift/ü.svg new file mode 100755 index 0000000..262ab65 --- /dev/null +++ b/templates/ausgangsschrift/ü.svg @@ -0,0 +1,240 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + x1 + x3 + x6 + x2 + + + + + + x4 + x5 + + + + +