From aadf086b6903c5685bf6a58572b3c710c9aa1059 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 2 Jan 2009 13:34:06 +0000 Subject: Makefile so angepasst, dass kleinere pngs erstellt werden (nur 256 Farben) und mehr pngs aus tastatur_neo_alle_Ebenen.svg erzeugt werden git-svn-id: https://svn.neo-layout.org@1364 b9310e46-f624-0410-8ea1-cfbb3a30dc96 --- grafik/Makefile | 40 +- grafik/tastatur3d/tastatur_neo_alle_Ebenen.svg | 1358 ++++++++++++------------ 2 files changed, 711 insertions(+), 687 deletions(-) (limited to 'grafik') diff --git a/grafik/Makefile b/grafik/Makefile index 60ad0fc..dab19dc 100644 --- a/grafik/Makefile +++ b/grafik/Makefile @@ -1,36 +1,56 @@ +ALL=$(filter-out ./tastatur3d/tastatur_neo_alle_Ebenen.svg, $(shell find -name "*.svg")) EBENENSVG=$(foreach i, 1 2 3 4 5 6, tastatur_neo_Ebene${i}.svg) -SVGFILES=$(filter-out ./tastatur3d/tastatur_neo_alle_Ebenen.svg, $(shell find -name "*.svg")) $(foreach file, ${EBENENSVG}, tastatur3d/${file}) +EBENEN=$(foreach file, ${EBENENSVG}, tastatur3d/${file}) +SVGFILES=${ALL} ${EBENEN} PDFFILES=$(addsuffix .pdf,$(basename ${SVGFILES})) -PNGFILES=$(addsuffix .png,$(basename ${SVGFILES})) -default: pdf png www +HAUPT=$(foreach file, ${EBENENSVG}, tastatur3d/hauptfeld/${file}) +ZIFFERN=$(foreach file, ${EBENENSVG}, tastatur3d/ziffernfeld/${file}) +HAUPTZIFFERN=$(foreach file, ${EBENENSVG}, tastatur3d/haupt_ziffern_feld/${file}) +PNGFILES=$(addsuffix .png,$(basename ${SVGFILES} ${HAUPT} ${ZIFFERN} ${HAUPTZIFFERN})) + +default: pdf png pdf: ${PDFFILES} png: ${PNGFILES} -clean: cleanpng cleanpdf cleanwww +clean: cleanpng cleanpdf + rm -f $(EBENEN) cleanpng: rm -f ${PNGFILES} + $(foreach dir, hauptfeld ziffernfeld haupt_ziffern_feld, if [ -d tastatur3d/${dir} ];then rmdir tastatur3d/${dir}; fi;) cleanpdf: rm -f ${PDFFILES} +.SECONDARY: + tastatur3d/tastatur_neo_Ebene%.svg: tastatur3d/tastatur_neo_alle_Ebenen.svg /bin/echo -e '/inkscape:label="Ebene $*"\n.+1\ns/none/inline/g\nw $@'|ed $< -WWWPIC=$(addsuffix .png, $(basename $(foreach file, ${EBENENSVG}, ../www/${file}))) -www: ${WWWPIC} -../www/%.png: tastatur3d/%.svg - inkscape --without-gui --export-id="Haupttastaturfeld" --export-png=$@ -w650 $< +tastatur3d/hauptfeld/%.png: tastatur3d/%.svg + mkdir -p tastatur3d/hauptfeld + inkscape --without-gui --export-id="Haupttastaturfeld" --export-png=$@ -h200 tastatur3d/$*.svg + mogrify -colors 256 -depth 8 -quality 100 +dither $@ + +tastatur3d/ziffernfeld/%.png: tastatur3d/%.svg + mkdir -p tastatur3d/ziffernfeld + inkscape --without-gui --export-id="Ziffernblock" --export-png=$@ -h200 tastatur3d/$*.svg + mogrify -colors 256 -depth 8 -quality 100 +dither $@ -cleanwww: - rm -f ${WWWPIC} +tastatur3d/haupt_ziffern_feld/%.png: tastatur3d/%.svg tastatur3d/hauptfeld/%.png tastatur3d/ziffernfeld/%.png + mkdir -p tastatur3d/haupt_ziffern_feld + convert -splice 20x0 -background transparent tastatur3d/ziffernfeld/$*.png /tmp/$*_tmp.png + convert +append tastatur3d/hauptfeld/$*.png /tmp/$*_tmp.png $@ + rm /tmp/$*_tmp.png + mogrify -colors 256 -depth 8 -quality 100 +dither $@ %.pdf: %.svg inkscape --without-gui --export-pdf=$@ $< %.png: %.svg inkscape --without-gui --export-png=$@ -w1000 $< + mogrify -colors 256 -depth 8 -quality 100 +dither $@ .PHONY: clean cleanpng cleanpdf default pdf png diff --git a/grafik/tastatur3d/tastatur_neo_alle_Ebenen.svg b/grafik/tastatur3d/tastatur_neo_alle_Ebenen.svg index 3c061d5..1e43267 100644 --- a/grafik/tastatur3d/tastatur_neo_alle_Ebenen.svg +++ b/grafik/tastatur3d/tastatur_neo_alle_Ebenen.svg @@ -46,11 +46,11 @@ pagecolor="#ffffff" id="base" inkscape:zoom="0.62394494" - inkscape:cx="816.18698" + inkscape:cx="1316.6007" inkscape:cy="159.44753" inkscape:window-x="0" inkscape:window-y="24" - inkscape:current-layer="layer3" + inkscape:current-layer="layer5" showgrid="true" showguides="true" inkscape:guide-bbox="true" @@ -7124,681 +7124,685 @@ width="62.857147" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + id="Ziffernblock" + inkscape:label=""> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +