![]() |
There has been some discussion on how to make fax cover pages. I make them using xfig. Wherever I want a piece of data to appear, I type the keyword preceeded by 'ZZ'. I then use the following Makefile and script. This technique will likely work with anything that produces PostScript that leaves the strings alone. It's simple, and you can make nice cover pages. # # Select which depths we want based on which form we're making. # We're using target specific macro definitions here. # cover.ps: DEPTHS=+50 TARGETS=cover.hylafax DEST=/usr/local/hylafax/lib/fax/ all: $(TARGETS) cover.hylafax: cover.ps cover.ps: cover.fig # # Make PostScript from the xfig file. # %.ps: cover.fig fig2dev -L ps -D $(DEPTHS) $< $@ # %.hylafax: %.ps ./mod.pl < $< > $@ install: cp cover.hylafax ${DEST}/faxcover.ps chmod 664 ${DEST}/faxcover.ps clean: rm -f $(TARGETS) *.ps # # End. mod.pl: #!/usr/bin/perl # # If the xfig form, all HylaFAX cover keywords are to # placed where the strig ZZ<keyword> appears. So, # this simple script changes (ZZkeyword) to just keyword. # # Could be a sed script. # # Used to be more complex because I listened to someone # else and didn't think! # use strict; while( <> ) { if ( m/^.*\(ZZ.*$/ ) { s/\(ZZ([^\)]+)\)/\1/g; print; } else { print; } } - Mike Porter PGP Fingerprint: F4 AE E1 9F 67 F7 DA EA 2F D2 37 F3 99 ED D1 C2 ____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*