diff --git a/make-includes/build_content_rules.make b/make-includes/build_content_rules.make index 798256b..72b9304 100755 --- a/make-includes/build_content_rules.make +++ b/make-includes/build_content_rules.make @@ -108,6 +108,10 @@ # is just plain impossible). The help suggests using this if # "BoundingBox in output seems to be wrong". I think this counts :) # +# ps2eps seems to have a problem with determining the bounding box of one +# of the graphics files (the St Germain ERD), which is solved by passing the +# --gsbbox option. +# # Notes on gs options: # # -dEPSCrop forces gs to crop the EPS image to its bounding box. If not @@ -121,12 +125,12 @@ # %-print.pdf: %.eps @announce "Generating $@ (print)" - @ps2eps --ignoreBB --nohires --loose < $< | ps2pdf -dEPSCrop - $@ + @ps2eps --ignoreBB --nohires --loose --gsbbox < $< | ps2pdf -dEPSCrop - $@ @mv $@ $(BUILD_DIR) %-print.pdf: %.ps @announce "Generating $@ (print)" - @ps2eps --ignoreBB --nohires --loose < $< | ps2pdf -dEPSCrop - $@ + @ps2eps --ignoreBB --nohires --loose --gsbbox < $< | ps2pdf -dEPSCrop - $@ @mv $@ $(BUILD_DIR) @@ -149,14 +153,14 @@ # %-web.png: %.eps @announce "Generating $@ (web)" - @ps2eps --ignoreBB --nohires --loose < $< | \ + @ps2eps --ignoreBB --nohires --loose --gsbbox < $< | \ gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -dEPSCrop -r96 \ -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=$@ - @mv $@ $(BUILD_DIR) %-web.png: %.ps @announce "Generating $@ (web)" - @ps2eps --ignoreBB --nohires --loose < $< | \ + @ps2eps --ignoreBB --nohires --loose --gsbbox < $< | \ gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -dEPSCrop -r96 \ -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=$@ - @mv $@ $(BUILD_DIR) @@ -165,14 +169,14 @@ # %-web-zoom.png: %.eps @announce "Generating $@ (zoomed web)" - @ps2eps --ignoreBB --nohires --loose < $< | \ + @ps2eps --ignoreBB --nohires --loose --gsbbox < $< | \ gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -dEPSCrop -r144 \ -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=$@ - @mv $@ $(BUILD_DIR) %-web-zoom.png: %.ps @announce "Generating $@ (zoomed web)" - @ps2eps --ignoreBB --nohires --loose < $< | \ + @ps2eps --ignoreBB --nohires --loose --gsbbox < $< | \ gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -dEPSCrop -r144 \ -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=$@ - @mv $@ $(BUILD_DIR)