22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7.2 <strong>DLI</strong> <strong>Implementation</strong> <strong>and</strong> <strong>Reference</strong> <strong>Guide</strong><br />

What are Containers?<br />

Concepts <strong>and</strong> Facilities: <strong>Guide</strong> to the DL Pager Composition System<br />

Container may be a misleading name. These structures “contain” text <strong>and</strong> drawing<br />

comm<strong>and</strong>s in the meaning of structure or hierarchy, but they do not have a limited<br />

geometry in the sense of edges or boundaries. They “contain” text in data processing<br />

terms, but are not visual constructs like lines <strong>and</strong> columns, <strong>and</strong> hence are not<br />

containers in the typographic sense.<br />

The best way to think of these structures is as a boundless plane. This plane may be<br />

positioned, rotated, or scaled relative to the media on which the text will eventually be<br />

imaged. There is no restriction on the order or placement of things within a container.<br />

That is, within the container you are not constrained to move from left to right, or top<br />

to bottom. Nor are you limited to the quadrant that is the range of positive values.<br />

Negative positions within the plane may be used as well as positive positions.<br />

You may use as many containers within a page as you wish, <strong>and</strong> they may be<br />

positioned in any way. There is an overhead for the use of a container, however, <strong>and</strong><br />

keeping the number small is desirable.<br />

The simplest use of containers is to create one for each page, <strong>and</strong> leave it positioned at<br />

its default location <strong>and</strong> rotation. In this case, drawing on the plane <strong>and</strong> drawing on<br />

the page are identical operations. The default configuration of a plane is<br />

• positioned with its origin at the lower left h<strong>and</strong> corner of the media<br />

• scaled 1.0 in both horizontal <strong>and</strong> vertical directions<br />

• oriented with positive values of X proceeding to the right<br />

• oriented with positive values of Y proceeding upward<br />

Often, an existing composition engine will use other positioning. For instance, if your<br />

engine assumes that (0, 0) is the upper left h<strong>and</strong> corner of the page <strong>and</strong> positive values<br />

of leading proceed down the page, then repositioning the container will allow you to<br />

use the X/Y values you have already calculated without changing them.<br />

<strong>DLI</strong> contains three calls that will permit you to modify the location, scaling or<br />

rotation of a container (<strong>and</strong> its content) relative to a page. These may be used at any<br />

time before a container is committed to a page. Other transformations (mirroring,<br />

shearing, etc.) may be accomplished by directly modifying the field AreaXform

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!