Saturday, October 29, 2011

Calculating Offsets

To work with text you need to understand how FrameMaker uses offset. While your scripts can work with text in flows or even documents, offset is always from either the start of a paragraph of text line.

Counting offset
Use the following rules in calculating the offset of a location in text:
• The start of a paragraph or text line has offset 0.
• Each character adds offset of 1.
• Anchors of any type have an offset of 1.
• Element boundaries have offset of 1.

The following have no offset:
• Paragraph begins.
• Line begins and ends.

But, paragraph ends have offset and must be selected to
change paragraph defaults. The end of flow marker cannot be selected either by an end user or by a script. It has no offset.

No comments:

Post a Comment