Date:2010-08-29 20:08:03 (8 years 10 months ago)
Author:Werner Almesberger
Commit:a1c5386236f766aef2592bdb6bc5a5904f1c9331
Message:Schematics sheets are now scaled and shifted (may still need some tuning)

- scripts/gitsch2ppm (ps2ppm): shift A4 sheets northwest
- scripts/gitsch2ppm (ps2ppm): shift and scale A3 and A2 sheets
- scripts/gitsch2ppm (ps2ppm): remove "%%Orientation: Landscape" (for later
development)
Files: scripts/gitsch2ppm (1 diff)

Change Details

scripts/gitsch2ppm
2828/setlinewidth { $LINEWIDTH 2 copy lt { exch } if pop setlinewidth } bind def
2929/rectfill { rectstroke } bind def
3030EOF
31    sed 1d <"$1"; ) |
31    sed <"$1" '1d
32/%%DocumentMedia: A4.*/a-20 -10 translate
33/%%DocumentMedia: A3.*/{s/A3/A4/;a-20 -10 translate 0.70 dup scale
34}
35/%%DocumentMedia: A2.*/{s/A2/A4/;a-18 -12 translate 0.49 dup scale
36}
37/%%Orientation: Landscape/d'; ) |
3238    gs -sDEVICE=ppmraw -sOutputFile=- -g$IRES -r$res \
3339      -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -q - |
3440      pnmflip -r270 |

Archive Download the corresponding diff file



interactive