Adding Format Rules That Use Cals Attributes (Cals Only) - Adobe 65030365 - FrameMaker - PC Developer's Manual

Structure application developer's guide
Hide thumbs Also See for 65030365 - FrameMaker - PC:
Table of Contents

Advertisement

18
M o d i f i c a t i o n s t o t h e d e f a u l t t r a n s l a t i o n
For example, you may have a markup element tab2 that represents tables with a 1-inch
column followed by a 2-inch column. The tab2 element does not use an attribute for this
information but you can translate tab2 to a FrameMaker table element as follows:
element "tab2" {
is fm table element "Two Table";
fm property columns value is "2";
fm property column widths value is "1in 2in";
}
In this case, when the software encounters a start-tag for a tab2 element on import, it
creates a table element named Two Table. The associated table has two columns, 1 and
2 inches wide. When it encounters a Two Table table element on export, it writes a
start-tag for a tab2 element. It does not write attributes for the number or widths of its
columns.
Important: If your markup table declarations do not include an attribute that
corresponds to the columns property and you plan to open an associated markup
document in FrameMaker, you must use this rule to supply a value for the number
of columns in the table.
For information on the rules used in this example, see "element" on page 376, "is fm table
element" on page 435, and "fm property" on page 399.

Adding format rules that use CALS attributes (CALS only)

Four attributes of the CALS table model remain attributes when a markup document is read
into FrameMaker. These attributes, align, valign, char, and charoff, provide
information on the formatting of text within table cells. In FrameMaker, this formatting is
controlled by format rules in the EDD. Keeping the attributes in the FrameMaker
representation allows you to control this information explicitly.
For example, if you wanted to make use of values of the valign attribute, you could have
this definition for a table cell:
Element (Table Cell): Entry
General rule: <TEXT>
Text format rules
1. If context is: [Valign = "Top"]
Else, if context is: [Valign = "Middle"]
Translating Tables
Table cell properties
Vertical alignment: Top
Table cell properties
Vertical alignment: Middle
Else
Table cell properties
Vertical alignment: Bottom
282

Advertisement

Table of Contents
loading

This manual is also suitable for:

Framemaker 7.1

Table of Contents