packages icon



 NPR(1)                                                               NPR(1)




 NAME
      npr - news pretty printer (and pipe script)

 SYNTAX
      npr [-{pP} prolog] [-i ident] [-h title] [-H hlist] [-f font] [-s
      size] [file ...]

      nprpipe [file] | npr [-{pP} prolog] [-i ident] [-h title] [-H hlist]
      [-f font] [-s size]  > [file].ps

 DESCRIPTION
      Nprpipe formats Xrn and tin News Articles for npr. The script pipes
      only the Header Lines that npr can handle by dropping Article, Xref
      (and extra From) lines.  The body is unchanged.

 DESCRIPTION
      Npr produces PostScript output which can be used to print news
      articles on appropriate laser printers.  Npr reads the named files and
      looks for header lines found in news articles.  There may be one or
      more files and each file may contain one or more articles.  The
      headers will be printed separated from the text.  The text itself may
      be printed in any font and size you like.  Npr only starts printing
      articles, if it recognizes correct headers.  Currently the formats of
      articles saved from a rn(1) session will be understood by npr as well
      as articles directly feeded into npr via stdin.  You may supress
      printing of individual headers by giving the option -H and a header
      list.

 PARAMETER
      -p prolog   Use the file prolog instead of the standard PostScript
                  prologue file.  Normally, the location for the standard
                  prologue file is /usr/local/lib/npr.prologue (Your system
                  manager may have changed this default).  Specifying -p
                  will cause npr to look in the current directory, while -P
                  will cause npr to look in both the current directory and
                  in the directory where the standard prologue file resides.

      -i ident    Specifies the indentation from the left margin in inches.
                  The default indentation is set in the prologue file.

      -h title    Print the string title instead of the "Subject" line from
                  the article at the top of each page.  If the article does
                  not contain a "Subject" line and this option is not given,
                  then your login name and the current date will be printed.

      -H hlist    Supress or print headers from the headerlist. The format
                  of the headerlist may be -field to supress the given
                  field, and +field to print the given field (e.g. if it is
                  suppressed by default).  Be sure to quote blanks between
                  two or more fields.  An example for supressing the Path-,
                  Message-ID-, and Approved-fields:



                                    - 1 -         Formatted:  March 29, 2024






 NPR(1)                                                               NPR(1)




                          -H '-Path: -Message-ID: -Approved:'

      -f font     Use font instead of the standard font for printing text.
                  Normally, the standard font (as defined in the prologue
                  file) is the monospaced Courier font.  You can specify
                  almost all fonts which are supplied by your laser printer.

      -s size     Print text in size size instead of in the standard size
                  defined in the prologue file.  Because npr does not do any
                  formatting, you can use all available font sizes.

      file        One or more names of the files to be processed.  If a file
                  does not contain valid headers (or npr does not realize
                  this headers :-) a warning will be given and the
                  processing of the remaining files will be continued.  If
                  no file is given, npr reads the standard input.

                  All the parameters listet above may be given in the
                  environment variable NPROPT. However, the parameters given
                  in the command line have higher preceedence than the
                  parameters set in this variable.

 FILES
      /usr/local/lib/npr.prologue
           PostScript prologue to define required vocabulary for news
           printing.

 AUTHOR
      Stefan Stapelberg <stefan@mikros.uucp>

 NOTES
      In the current (preliminary) version npr will silently supress unknown
      headers.  This may be subject of change in the future.

 BUGS
      Sure.  Use nprpipe for Xrn and tin format articles.


















                                    - 2 -         Formatted:  March 29, 2024