home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
184.lha
/
LaserWriterFilter
/
lwf_1.man
< prev
next >
Wrap
Text File
|
1988-04-28
|
8KB
|
265 lines
LWF(1-LOCAL) UNKNOWN SECTION OF THE MANUAL LWF(1-LOCAL)
NAME
lwf - ASCII to PostScript filter
SYNOPSIS
lwf [-c#] [-d] [-i#] [-l] [-m] [-n] [-olist] [-p[str]]
[-P filename] [-r] [-s#] [-S] [-t#] [-v] [file ...]
DESCRIPTION
_L_w_f takes one or more ASCII text files as input and produces
PostScript instructions that may be sent (see lpr(1)) to a
PostScript printer (e.g., an Apple LaserWriter) for print-
ing. If no files are given on the command line, the stan-
dard input is read. The program correctly handles the form
feed character and tabs and understands backspacing; under-
scores followed by backspaces may be used to underline.
Courier font is used. The output conforms to the Adobe 2.0
file structuring conventions.
Note that flag arguments apply to all of the files in the
argument list. For example, using ``-s8'' prints each of
the files in 8 point type.
Multiple copies of each page can be printed by immediately
following the -c flag with the number of copies to make.
The pages are not collated.
Lines may be indented (shifted to the right) using the -i
flag. This flag is immediately followed by the distance in
inches to shift all text from the left edge of the paper
instead of the default amount (about 1/3 of an inch); the
resolution is approximately 1/72 of an inch.
The -l flag indicates that landscape format is to be used
instead of the default portrait format.
Margins suitable for use with a three hole punch can be
obtained using the -m flag. This flag may be used with
either portrait or landscape mode. In portrait mode the -m
flag and any indentation specified by a -i flag are addi-
tive.
To get top and bottom margins suitable for printing 66 lines
per page (with the default 10 point size), use the -n flag.
This option works good when printing manual pages.
The -o flag is immediately followed by a range specification
that indicates which pages are to be printed. A range
specification is a comma-separated list of numbers and
ranges. A number N selects the Nth page; a range N:M
selects the Nth through Mth pages, inclusive; an initial :N
selects from the beginning up to and including the Nth page;
and a final N: selects from the Nth page to the end. The
Sun Release 3.2 Last change: 21 February 1988 1
LWF(1-LOCAL) UNKNOWN SECTION OF THE MANUAL LWF(1-LOCAL)
default, ``:'', is to print all pages.
The -p flag indicates that pr(1) is to be used to perform
pagination and print page headers. An argument string to be
passed on to pr(1) can immediately follow the flag. The
usual way of producing multicolumn output is to pass a -n
flag to pr(1), where n is the number of columns to generate.
Note that this string must be properly quoted if it contains
whitespace, metacharacters, backslashes, etc. _L_w_f passes on
the number of lines and columns to pr(1) so that multicolumn
output is handled correctly. When specifying multicolumns
you are responsible for selecting an appropriate point size
and/or landscape format. The formfeed character is handled
incorrectly by some versions of pr(1) when multiple columns
have been specified. Instead of starting a new column or
page it simply passes formfeeds through. Lwf filters out
these formfeeds.
_L_w_f normally includes a standard internal PostScript prolo-
gue in its output. Optionally, a compile time option is not
to include it in _l_w_f. In this case _l_w_f will look for the
file lwf.prologue in a standard place (usually
/usr/local/lib/lwf.prologue). The argument following a -P
flag specifies a prologue file to be substituted for the
standard system file.
The default is to perform page reversal, which is correct
for printers like the Apple LaserWriter. The -r flag dis-
ables page reversal so that the pages appear in the correct
sequence in the output tray of printers like the NEC Silent-
writer LC-890.
The -s flag, immediately followed by a 7, 8, 9, 10, 11, or
12 causes the corresponding point size to be used. The
default point size is 10.
By default, the output of _l_w_f is intended to go through a
spooler that monitors the status of the printer and
separates jobs. The -S flag indicates that such a monitor
is not being used and that a header page should be printed
to separate jobs and end-of-file characters should be
inserted in the output.
The -t flag is immediately followed by a number indicating
the distance between tab stops. The default value is 8
characters.
The -d and -v flags are used for debugging.
EXAMPLES
The command
Sun Release 3.2 Last change: 21 February 1988 2
LWF(1-LOCAL) UNKNOWN SECTION OF THE MANUAL LWF(1-LOCAL)
lwf -p-2 -i0.5 -s12 file1.c file2.c | lpr -Plw
would print the two files on printer 'lw' in portrait format
with page headings, indenting 0.5 inches from the left edge,
using 12 point type. Each file would be printed in two
columns.
The command
lwf -l -s7 -p'-h foo' | lpr -Plw
would print the standard input with page headings in
landscape format using 7 point type. The filename for the
header line would be 'foo'.
The command
lwf -p'-h foo .login -h bar .cshrc' | lpr -Plw
would print the file ``.login'' with a header title ``foo''
and ``.cshrc'' with the header title ``bar''.
A useful csh alias is:
alias prlw 'lwf -s7 -t4 -l -p-2 \!* | lpr -Plw'
which, when invoked as
prlw foo1 foo2
prints foo1 and foo2, two columns per page, on printer 'lw'.
FILES
/tmp/lwfXXXXXX - temporary file used for page reversal
SEE ALSO
pr(1), lpr(1)
LIMITATIONS
The maximum input line length is 1024 characters. This
should not present a problem since the corresponding output
line length would be too long to be printed. The program
quits and prints a message if an input line is too long.
Sun Release 3.2 Last change: 21 February 1988 3
LWF(1-LOCAL) UNKNOWN SECTION OF THE MANUAL LWF(1-LOCAL)
Output lines that are too long are normally silently trun-
cated by the printer.
_L_w_f can be compiled such that there is a limit on the number
of pages it can produce.
BUGS
It might be argued that flags should be allowed to be inter-
spersed between file arguments.
The character '\001' (SOH) should not appear in the input as
it is used within the program to delimit columns. The first
time the program reads this character it determines the
number of columns being printed; all subsequent lines are
expected to have this number of columns or be ``single
column''.
A -s flag should not be passed on to pr(1) since _l_w_f uses
it.
The program can only handle the 6 different point sizes and
the single font.
So much for metric.
AUTHOR
Barry Brachman
Dept. of Computer Science
University of British Columbia
With additions/revisions and Amiga port by:
Dr. Samuel Paolucci
1351 Roselli Dr.
Livermore, CA 94550
(415)294-2018
ARPA: paolucci@snll-arpagw.llnl.gov
Sun Release 3.2 Last change: 21 February 1988 4