Endstand Hackathon

This commit is contained in:
Romedius Weiss 2019-07-15 14:11:18 +02:00
parent 874535e1e1
commit 6d91e6d0c8
3 changed files with 37 additions and 6 deletions

View File

@ -274,8 +274,8 @@
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="2.2113095"
inkscape:cx="28.199191"
inkscape:cy="167.09556"
inkscape:cx="-65.18439"
inkscape:cy="166.19112"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
@ -292,7 +292,7 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
@ -798,5 +798,12 @@
x="-10.120999"
y="-283.8945"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:OCRABold;-inkscape-font-specification:OCRABold;text-align:center;text-anchor:middle;fill:#dddddd;stroke:#000000;stroke-width:0.26458332px;fill-opacity:1;">13</tspan></text>
<rect
style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.229;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect107"
width="63.5"
height="88.900002"
x="3.7470027e-16"
y="208.10001" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -1,4 +1,4 @@
rot #ee0000
gruen #00aa00
blau #0022ff
gelb #ffee00
gruen #119900
blau #0011cc
gelb #eedd00

View File

@ -25,8 +25,32 @@ while read p; do
sed -i 's/>13</>'$value'</' $file
sed -i 's/>XL</>'$opt'</' $file
echo "processing " $p " with value= " $value " and opt= " $opt
rsvg-convert -f pdf -o pdf/$name-$colorname.pdf $file
fi
fi
done < values.txt
done < colors.txt
while read p; do
if [[ "$p" =~ \#.* ]];
then
echo $p
else
name=$(echo $p | cut -f 1 -d ' ')
value=$(echo $p | cut -f 2 -d ' ')
pdfjam pdf/$name-rot.pdf pdf/$name-gruen.pdf pdf/$name-blau.pdf pdf/$name-gelb.pdf --nup 2x2 --landscape --outfile pdfo/$name.pdf
fi
done < values.txt
rsvg-convert -f pdf -o pdf/1Karte-mc.pdf Karte-mc.svg
rsvg-convert -f pdf -o pdf/1Karte-mc+4.pdf Karte-mc+4.svg
rsvg-convert -f pdf -o pdf/2Karte-mc.pdf Karte-mc.svg
rsvg-convert -f pdf -o pdf/2Karte-mc+4.pdf Karte-mc+4.svg
rsvg-convert -f pdf -o pdf/3Karte-mc.pdf Karte-mc.svg
rsvg-convert -f pdf -o pdf/3Karte-mc+4.pdf Karte-mc+4.svg
rsvg-convert -f pdf -o pdf/4Karte-mc.pdf Karte-mc.svg
rsvg-convert -f pdf -o pdf/4Karte-mc+4.pdf Karte-mc+4.svg
pdfunite pdf/*.pdf cards.pdf
pdfjam pdf/1Karte-mc.pdf pdf/1Karte-mc.pdf pdf/1Karte-mc.pdf pdf/1Karte-mc.pdf --nup 2x2 --landscape --outfile pdfo/mc.pdf
pdfjam pdf/1Karte-mc+4.pdf pdf/1Karte-mc+4.pdf pdf/1Karte-mc+4.pdf pdf/1Karte-mc+4.pdf --nup 2x2 --landscape --outfile pdfo/mc+4.pdf
pdfunite pdfo/*.pdf cards-o.pdf