Jump to Navigation

Text Layout Section

Text Layout Section

This section descibes how the text of a Text Section is formatted.

There are a couple of levels on which the layout can be expressed. Most global are the styles. If available, they are described in the Word Styles Section, and referenced here. But not each Text Layout Section uses styles.

One down is the Text Layout Paragraph Type List; it contains a sort of unnamed styles. They are generated automatically.

Each paragraph is mentioned in the Text Layout Paragraph Element List. It either contains a reference to a Text Layout Paragraph Type or it contains the Paragraph Layout Codes and the number of Character Layout Codes for this paragraph.

The whole list of Character Layout Codes is found at the end in the Text Layout Inline List. These are the only way in which in-paragraph layouts can be expressed.

 Data      Description

W Section with (01 00) or without (00 00) style indicators
Text Layout Paragraph Type List
Text Layout Paragraph Element List
Text Layout Inline List

If the first word indicates that this is style-less section, the Text Layout Paragraph Type List and the Text Layout Paragraph Element List contain no style references.

Paragraph Type List

These are a sort of unnamed styles. They are referenced in the Text Layout Paragraph Element List. They are only used for paragraphs whose characters all have the same layout.

This is a BListE of the following Paragraph Type elements:

 Data      Description

L Type number
Paragraph Layout List Layout codes
(*) Word Style ID Style indicator
Character Layout List Layout codes

All Paragraph Type elements have a unique number, as expressed in the Type number. Normally, they are simply numbered from 01 00 00 00 upwards.

The Style indicator is only present if this list is part of a Text Layout Section with styles. If so, it expresses a style on which this Paragraph Type is based. Anything not overruled here is taken from that style.

Paragraph Element List

This is a LListE. Each paragraph has an entry here.

   Data  Description

L Number of text characters in paragraph
B Paragraph type, as in the Text Layout Paragraph Type List
(**) Paragraph Layout List
(*) (**) Word Style ID Style indicator
(**) L Number of Text Layout Inline List elements for this paragraph

Each paragraph of the Text Section is mentioned here in order.

The number of text characters for a paragraph should concur with the number of characters as found in the Text Section

The entries marked (**) are only present if the paragraph type is set to 00, meaning it is not based on a Text Layout Paragraph Type.

The Style indicator is only present if this list is part of a Text Layout Section with styles. If so, it expresses a style on which this Paragraph Element is based. Anything not overruled here is taken from that style.

It is forbidden for a paragraph to have exactly one inline element.

Inline List

This is a LListE of the following elements:

 Data      Description

B Type: 01 for objects, 00 for normal layout
L Number of characters this layout element applies to
Character Layout List
(*) ID Always 51 00 00 10 ?
(*) Offset Offset of Embedded Object Section
(*) Length Object size horizontal
(*) Length Object size vertical

(*) Only for type 01 (objects)

For each paragraph that has inline elements at all, it should have enough elements that each character in the paragraph belongs to exactly one element.

For the layout list, not specified means back to the default for this paragraph, for italic, bold, super/subscript, strike-out and underline (and probably all other layouts too).

The sizes are the size the object will be displayed with. If the object is displayed as an icon, for example, the size of the icon is put here; if it is cropped and/or scaled, the resulting size is found.

The sizes found here are the same as those in the Object Display Section.



Psifiles | by Dr. Radut