Units of Measurement

Numbers used to specify dimensions in form definitions and page definitions can be in any of five units of measurement. They are specified in a command stream as follows:

IN
Inches.
MM
Millimeters.
CM
Centimeters.
POINTS
Points are a common measurement in printing used to measure character height, as in 20-point type. A point is approximately 1/72 inch.
PELS
Pels are equivalent to L-units. The number of pels per inch is a user-specified parameter. The default is 240 pels per inch.

Two additional measurement units can be used in the SETUNITS command; the measurement units are:

LPI
Lines per inch
CPI
Characters per inch

The parameters in PPFA that define a measurement can include any of the first five units of measurement shown in the previous list. For example:

POSITION  1 IN  1 IN ;
or
POSITION  1 MM  1 MM ;

However, PPFA converts all measurements to logical units (L-units) as the common measurement. (Normally, one inch equals 240 L-units, but this number can be changed by the user.) If a fraction exists, the first decimal point is truncated. A SETUNITS command defines a unit of measurement that is to be used as the default for any parameter that does not specify a given dimension. This default is in effect until another SETUNITS command is encountered. This example shows part of a PPFA command stream in which a SETUNITS command sets the units of measurement to one inch for a subsequent POSITION (or OFFSET or LINEONE) subcommand.:

SETUNITS  1 IN 1 IN ;
⋮
POSITION (or OFFSET or LINEONE) 1 1 ;

SETUNITS can be used as a multiplier:

SETUNITS 2 IN 2 IN ;
⋮
POSITION 2 2 ;

In this example, the SETUNITS command sets two-inch x and y default values. The POSITION subcommand values are multiplied by the default values creating a position four inches horizontally and four inches vertically from a given reference point. See SETUNITS Command for a more detailed explanation.