Physical files required for a printer parameter fileΒΆ

Each printer parameter file requires two actual files, the source file (which has a .s extension) and the compiled file (which has a .p extension). The source is a text file which may be amended or created by means of a text editor. Sculptor does not use the information in this form. It must first be compiled into a binary form. The comprint utility is used for this purpose. It creates from the source file a compiled printer parameter file which is used by Sculptor at run time.

All source code printer parameter files must have a .s extension. The name of the file generally indicates the type of printer for which it is intended.

Here are some examples of printer parameter files which are provided with the Sculptor system:

hplaser4.s

Hewlett Packard Laser Jet 4 or compatible

pterm.s

File without printer control codes, intended for output to screen

html.s

Example file to generate an HTML output file

latex.s

To generate a LaTeX file which can then be treated with the LaTeX tools

When a source file is successfully compiled with comprint, the compiled form is output to a file which bears the same name as the source, but with a .p extension replacing the .s. Therefore, the compiled forms of the example source files above are hplaser4.p, and pterm.p. These are provided along with the source files. A source file must be recompiled if any changes to it are to be reflected.

If no printer file is specified in the command line, the ultimate default for a program run by srepwc is the file called printer. To set a printer parameter file as the default, therefore, copy the compiled file (e.g. winpm.p) to printer.p.


RELATED TOPICS

Parameter files supplied by Sculptor

Printer parameter files