The mp program, when called without the -D or -P option, reads each filename in sequence and generates a prettified version of the contents in PostScript(TM) format, sent to standard output. If no filename argument is provided, mp reads the standard input. If the standard input is a terminal, input is terminated by an
EOF signal, usually Control-d.
The -D and -P options require the target printer name as an argument and produce the Printer Description Language (PDL) of the target printer. The -D option causes the PDL to output to stdout and the -P option causes the PDL to be directly spooled to the printer. In the absence of these options, mp will product default PostScript(TM) output.
The mp program accepts international text files of various Solaris locales and produces output which is proper for the specified locale. The output will also contain proper text layout. For instance, the output will contain bidirectional text rendering, and also shaping, since the complex text layout (CTL) is supported in mp.
Mail items, news articles, ordinary ASCII files, complete mail folders, and digests are all acceptable input formats for mp. The output format includes grayscale lozenges, or the outline of the same dimensions as the lozenges, containing banner information at the top and bottom of every page.
The following options are supported:
Formats the file as a news article. The top banner contains the text: "Article from newsgroup", where newsgroup is the first news group found on the "Newsgroups:" line.
Uses A4 paper size (8.26 x 11.69 inches).
The maximum number of characters to extract from the gecos field of the user's /etc/passwd entry. The default is 18.
Instead of using "\nFrom" to denote the start of new mail messages, mp will look for (and use) the value of the Content-Length: mail header. If the Content-Length doesn't take you to the next "\nFrom", then it is wrong, and mp falls back to looking for the next "\nFrom" in the mail folder.
Formats the file as a digest.
Produces the PDL for the target printer. Requires X Print Server connection.
Assumes the ELM mail frontend intermediate file format. Used when printing messages from within ELM (using the "p" command), especially for printing tagged messages. This option must be specified in your ELM option setup.
Formats the file for use with a Filofax personal organizer.
Formats the file for use with a Franklin Planner personal organizer.
Instead of printing who the mail article is for, the top header will contain who the mail article is from. A useful option for people with their own personal printer.
Formats output in landscape mode. Two pages of text will be printed per sheet of paper.
Formats output in landscape mode. One page of text will be printed per sheet of paper. This is useful for printing files with longer than normal lines.
Provides the locale of the file to be printed. If this command line option is not present, then mp looks for the MP_LANG environment variable. If that is not present, then the LANG environment variable is used. If none of these options are present, then mp tries to determine the locale it is running in, and if it cannot, then it assumes it is running in the C locale.
Formats the file as a mail folder, printing multiple messages.
Forces mp to use the mp.conf file for printing output even if a prolog.ps file exists for that locale. Useful when printing to non-native PostScript(TM) printers.
Turns off the gray bars and associated information from header and footer. Used to get output similar to output of 'lp filename'.
Formats the file as an ordinary ASCII file.
Employs the file prologue as the PostScript/Xprt prologue file, overriding any previously defined file names. This file specifies the format of the print output. For PostScript output, the prologue file will have a .ps extension. For Xprt clients (when the -D option is specified), this file will have an .xpr extension. These files are defined in the SUPPLIED PROLOGUE FILES section below.
Spools the PDL to the target printer. No output is sent to stdout. Requires X Print Server connection.
If the mail or digest message just has PostScript as the text of the message, this is normally just passed straight through. Specifying this option causes PostScript to be printed as text.
Uses subject as the new subject for the printout. If you are printing ordinary ASCII files that have been specified on the command line, the subject will default to the name of each of these files.
Formats the file for use with the Time Manager personal organizer.
Formats the file for use with the Time/System International personal organizer.
Uses US paper size (8.5 x 11 inches). This is the default paper size.
Specifies an alternate configuration file to the default file /usr/lib/lp/locale/locale_name/mp/mp.conf. The absolute file path name must be used.
Prints the version number of this release of mp.
The maximum number of words to extract from the gecos field of the user's /etc/passwd entry. The default is 3.
Prints the output text in the point size specified by point_size. The internal default is 12 points for portrait printing and 9 points for landscape printing.
Prints the usage line for mp (notice that the ? character must be escaped if using csh(1)).
If either the -D or -P option is specified in the command line and there is no XPDISPLAY variable set in the environment, the print server startup script will start an Xprt server at port 2100 in the machine in which the client is running. The script will terminate the print server once the job is over. If XPDISPLAY is set, the mp client will try to contact the print server running at XPDISPLAY. In this case, no attempt will be made to start the server if it is not running.
Used to determine the directory where the page formatting files (.xpr or .ps) are kept. These files determine page decorations, number of logical pages per physical page, landscape or portrait format, and so forth. In the absence of MP_PROLOGUE, the default location of the directory is /usr/lib/lp/locale/C/mp.
If neither of the -D or -P options is specified, a prologue file is prepended to the output to be printed. The prologue file is called /usr/openwin/lib/locale/localename/print/prolog.ps or /usr/lib/lp/locale/localename/mp/prolog.ps, where localename is the value of the MP_LANG or LANG environment variable, if present. If both variables are present, the file /usr/openwin/lib/locale/localename/print/prolog.ps is given preference due to backward compatibility reasons. If either of these files are not present, and the -D option is not specified, a configuration file of the locale called /usr/lib/lp/locale/localename/mp/mp.conf is used as the source of the configuration information that substitutes the prologue information for printing. The presence of prolog.ps disables mp.conf for backward compatibility.
The following prologue files are provided. Files with .ps extensions are for the PostScript output. Files with .xpr extensions are for the Print Server client. .xpr files are created for 300dpi printers and will scale to other resolution values.
Common prologue file for all other .ps files in this directory.
Used by default.
Used if the -ff option is in effect.
Used if the -fp option is in effect.
Used if the -tm option is in effect.
Used if the -ts option is in effect.
An alternative modification of the default prologue file which outputs the page number in the right corner of the bottom banner.
Prologue file used for landscape outputs.
Prologue file used for landscape outputs, when printing files with longer than normal lines.
Alternate prologue file used for landscape outputs.
Initialization file for csh(1).
Initialization file for mail(1).
Default configuration file.
Common prologue file for all other .ps files in this directory. Not for .xpr files.
Default prologue files for mail printing.
Default prologue files for landscape format.
Default prologue files for landscape format with one column per page. Useful when printing files with long lines.
Alternate prologue files for landscape format.
Alternative "default" prologue files. Insert page numbers in the bottom right corner of each page.
Default prologue files for Filofax format.
Default prologue files for Franklin Planner format.
Default prologue files for Time Manager format.
Default prologue files for Time/System International format.
Default locale-specific prologued file as an alternative to the mp.conf file. See ENVIRONMENT VARIABLES for more detail on the relationship.
The structure and format for mp.conf and .xpr files are documented in the International Language Environments Guide. Refer to this document if you need to use alternate fonts, including Printer Resident Fonts, or if you want to make changes to output format.
See attributes(5) for descriptions of the following attributes:
|ATTRIBUTE TYPE||ATTRIBUTE VALUE|