labels.icn: Program to format mailing labels

December 30, 1991; Ralph E. Griswold
See also: address.doc, adllist.icn, adlfiltr.icn, adlcount.icn, adlcheck.icn, zipsort.icn
This file is in the public domain.
   This program produces labels using coded information taken
from the input file.  In the input file, a line beginning with #
is a label header.  Subsequent lines up to the next header or
end-of-file are accumulated and output so as to be centered hor-
izontally and vertically on label forms.  Lines beginning with *
are treated as comments and are ignored.

Options: The following options are available:

     -c n Print n copies of each label.

     -s s Select only those labels whose headers contain a char-
          acter in s.

     -t   Format for curved tape labels (the default is to format
          for rectangular mailing labels).

     -w n Limit line width to n characters. The default width is
          40.

     -l n Limit the number of printed lines per label to n. The
          default is 8.

     -d n Limit the depth of the label to n. The default is 9 for
          rectangular labels and 12 for tape labels (-t).

   Options are processed from left to right.  If the number of
printed lines is set to a value that exceeds the depth of the
label, the depth is set to the number of lines.  If the depth is
set to a value that is less than the number of printed lines, the
number of printed lines is set to the depth. Note that the order
in which these options are specified may affect the results.

Printing Labels: Label forms should be used with a pin-feed pla-
ten.  For mailing labels, the carriage should be adjusted so that
the first character is printed at the leftmost position on the
label and so that the first line of the output is printed on the
topmost line of the label.  For curved tape labels, some experi-
mentation may be required to get the text positioned properly.

Diagnostics: If the limits on line width or the number of lines
per label are exceeded, a label with an error message is written
to standard error output.

Source code | Program Library Page | Icon Home Page