Understanding and Customizing the Dynamic HTML Standard Edition Template |
The Default paragraph style analyzes the FrameMaker paragraph tag, then inserts code into the HTML output to match the FrameMaker tag's formatting. The Default paragraph style looks like this:
<div $BPDefaultBlockAttributes;> <a name="$AUTOTAG;"> </a>\ $BPNumberAndData;<br>\ </div>
This style is identical to the Body style except for BPDefaultBlockAttributes, which contains the code that checks the FrameMaker formatting. It looks like this:
style="\ color: $DATA(color);\; \ $IF_EQUAL($DATA(font-family);,,, font-family: $DATA(font- family);\; );\ $IF_EQUAL($DATA(font-size);,0,, font-size: $DATA(font-size);pt\; );\ font-style: $DATA(font-style);\; \ font-weight: $DATA(font-weight);\; \ margin-bottom: $DATA(margin-bottom);pt\; \ margin-left: $DATA(margin-left);pt\; \ margin-right: $DATA(margin-right);pt\; \ margin-top: $DATA(margin-top);pt\; \ text-align: $DATA(text-align);\; \ text-decoration: $DATA(text-decoration);\; \ text-indent: $DATA(text-indent);pt\; \ text-transform: $DATA(text-transform);\; \ vertical-align: $DATA(vertical-align);"
The $DATA; macros check for different properties. For example, $DATA(text-align); returns the alignment of the paragraph: left, right, or center. When this style is translated into HTML, you get something similar to these results:
<div style= "color: #990000; font-family: Helvetica; font-size: 14pt; font-style: normal; font-weight: bold; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 17pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline" > <a name="1003581"> </a> Paragraph Text<br> </div>
For example, if your text in the FrameMaker file is red and bold, the HTML output will be red and bold.In the HTML, several properties are set for the style, which means that this paragraph is going to look very similar to the original FrameMaker paragraph.
![]() Quadralay Corporation http://www.webworks.com Voice: (512) 719-3399 Fax: (512) 719-3606 sales@webworks.com |