home *** CD-ROM | disk | FTP | other *** search
- GENERAL REMARKS (by Axel Mahler, axel@coma.uucp)
-
- This is 'tpscript', a free ditroff to PostScript filter package.
- Tpscript was originally written by Stephen Frede who was with the
- University of New South Wales, Australia, when he wrote the programs.
-
- Stephen posted the whole package to net.sources about two years ago.
- A while ago, I made a first attempt to repost the 'tpscript' package
- (and some local improvements), but failed due to mail problems.
- However, I asked Stephen for permission, and this is what he answered:
-
- >Date: 26 Nov 86 12:24:44 +1100 (Wed)
- >From: tub!unido!gris.oz!stephenf (Stephen Frede)
- >To: coma!axel
- >Subject: Re: posting of tpscript modifications
- >
- >By all means, post the modified sources. Since I posted the original
- >version, I have moved from university to private industry, and the
- >company I work for (Softway) now sells a much enhanced version of the
- >original package, which incidentally allows external graphics objects
- >to be incorporated, as well as many more features not present in the
- >original version. Needless to say, the latest version is very much
- >protected and will not be distributed over the net. But the first
- >version was developed under an educational UNIX license, and under
- >the terms of that license, any software developed must be made freely
- >available (NOT public domain - no-one else can sell it). So go ahead
- >and post.
- >
- >Thanks for checking with me - I look forward to seeing your
- >modifications.
- >
- >By the way, if you are ever looking for UNIX software such as an
- >enhanced PostScript driver or whatever, consider the advantages of
- >buying from Australia - the exchange rate makes us quite cheap
- >compared to European and US vendors. In fact if you send me your
- >real mail address, I'll mail you some samples from the latest
- >version.
- >
- > Stephen Frede
- >
- > ...!seismo!softway.oz!stephenf
- >
- > Softway Pty Ltd
- > P.O. Box 305
- > Strawberry Hills NSW 2012
- > AUSTRALIA
- >
- > Phone +61 2 698 2322
- >
- >
- >
-
- (Sorry that it took so long to really repost the stuff.)
-
-
- ABOUT THIS DISTRIBUTION
-
- There's a main Makefile (I never used it), a shell script that facilitates
- the invocation of ditroff (I never used it either) and three directories:
-
- - opscript: contains a plain ascii to PostScript conversion program
- (lpscript), and a bitmap to PostScript conversion program (ipscript).
- 'lpscript' is suitable for use as an output filter for the
- lineprinter spooler system. 'ipscript' has seldomly been used
- and (if I recall it right) caused some trouble.
-
- - tpscript: contains the ditroff to PostScript conversion program,
- 'tpscript'. We use 'tpscript' extensively, literally every day.
- The operating environment we have is a MicroVAX II, running
- 4.3BSD with DWB 1.0 (or 1.2, I'm not certain) (di)troff, and
- an Apple LaserWriter Plus. However, there's nothing BSD specific
- that would keep 'tpscript' from running on any sensible Unix
- system.
- The subdirectory tpscript/devalw contains the font width tables
- for the standard-fonts.
-
- - pscript: contains a collection of PostScript source files. These
- files are either demos/samples or little utilities for producing
- font descriptions or page setups.
-
-
- IMPRESSION / REVIEW OF TPSCRIPT
-
- 'tpscript' is a great piece of software, and we are most gratefull to
- Stephen Frede for writing and publishing it. We have used it on a daily
- basis for about two years now, and are nothing but satisfied. (In fact,
- some colleagues at our department, who distrusted 'netware', and kept
- faith in 'supported products', had a lot more trouble with a major
- product in the field on a SUN 3 network.)
-
- I have a vague memory of a problem with our troff, not being able
- to hold enough font slots. This imposed a hard limit on the number
- of different types accessible from within a troff source file. We
- fixed that in our troff version (DWB 1.0 or so). I hope this gotcha
- is fixed with more recent releases of ditroff.
-
-
- FEATURES
-
- Features of 'ipscript' and 'lpscript' are described in corresponding
- manual entries. 'tpscript' is used as a filter, i.e. it reads its input
- from stdin and sends its output to stdout. The fonts used are the most
- commonly available on PostScript devices: Times, Helvetica and Courier.
- With some fiddling around it is possible to add support for other fonts
- (we did that for the Bookman family of fonts).
-
- Besides some minor fixes to the program, the most notable enhancement
- we added with respect to the original 'tpscript' version is the
- 'E' directive. This directive allows to specify a unix command (with
- arguments) to be invoked by 'tpscript', and insert the output of
- that command into the output stream of 'tpscript'. The 'E' directive
- facilitates inclusion, and appropriate scaling of externally created
- PostScript images (e.g. MacDraw or GemDraw) in troff-formatted documents.
- _______________________________________________________________________________
- | The typical use of this feature is illustrated by a macro that we |
- | wrote for this purpose (to be used with ms): |
- | |
- | .nr Ph 1 \" Initialize picture-numbering- |
- | .nr Pn 0 \" registers |
- | .if '\\*(Fg'' .ds Fg Abb. |
- | .de Pc \" Insert Picture --- .Pc title height filename alignment |
- | .KS \" ms dependent keep |
- | .sp \\$2+2v \" vertical space for picture (2 lines frame) |
- | .if !\\n(Ph=\\n(H1 \{ .nr Ph \\n(H1 \" if new chapter - save chapter number |
- | .nr Pn 0 \} \" - initialize Picture-number |
- | .nr Pn \\n(Pn+1 \" increase picture-number |
- | .ce |
- | \f3\*(Fg \\n(Ph.\\n(Pn.\f1 \\$1 \" write picture Title |
- | .KE \" release keep |
- | .if !'\\$3'' \{ \" if a filename is given |
- | .if \\n(.P \{ \" and if page should be printed |
- | .nr Vp \\n(nl-\\$2-2v \" In,Vp upper left corner of picture |
- | .nr In \\n(.o-32+\\n(.i \" 32 is a LW+-correction |
- | .nr He \\$2 \" Picture height given by caller |
- | .nr Wi \\n(.l-\\n(.i \" Picture width (line len. - cur. indent) |
- | \!E /usr/local/lib/gem2ps -V\\n(Vp -I\\n(In -H\\n(He -W\\n(Wi -A\\$4 \\$3 |
- | .rr Vp |
- | .rr In |
- | .rr He |
- | .rr Wi |
- | \} |
- | \} |
- | .br |
- | .. |
- |_____________________________________________________________________________|
-
-
- INSTALLATION AND CONFIGURATION
-
- There are two important entries in 'tpscript's Makefile: 'tpscript' and
- 'tpsgem'. "make tpscript" will produce the default tpscript version, just
- a ditroff to PostScript filter. It includes full support for PIC but no
- explicit support for any kind of externally generated PostScript code.
- If you "make tpsgem", you'll obtain a slightly different version of
- 'tpscript', including a specially modified PostScript prolog supporting
- PostScript images produced by 'gem2ps', our local GEM metafile to
- PostScript conversion utility (this is a variant of the program 'mfps'
- which has been posted to comp.sys.atari.st). 'tpsgem' has no support
- for PIC graphics !
-
- > In case you want to include images produced on a Mac, you'll have to
- > modify 'tpscript.c' (contains most of the prolog). Basically, you'll have
- > to swap 'Gem2PsDict' with an equivalent 'LaserPrep'.
-
- This situation is kind of unsatisfying, but for me, there has always
- been some other task that had to be accomplished. It would clearly be
- desirable to have some sort of library for various PostScript prologs
- that would be selected depending on an option. Maybe somebody finds
- the time to add this to the program.
-
-