Next Previous Up Top Contents Index

WebMaker User Guide

12.8.2 Syntax of format override rules

WebMaker recognizes the ANGLE, FAMILY, VAR and WEIGHT parameters of FrameMaker characters. WML character conversion rules may specify different combinations of these parameters to match characters with no tags but with formatting applied to them and map them to HTML highlights.

The syntax is:

CHARACTER
{
  ANGLE  "name-of-angle"     
  FAMILY "name-of-font-family"
  VAR    "name-of-variation" 
  WEIGHT "name-of-weight"    
    MAP HTML-highlight-name>
}

where:

ANGLE, FAMILY, VAR, WEIGHT

are keywords. At least one of these must appear. The order is not important. Any one may not appear more than once.
name-of-angle, name-of-font-family, name-of-variation, name-of-weight

are case-sensitive strings that specify the value of the corresponding formatting parameter.
HTML-highlight-name

may be one of: Big, Bold, Cite, Code, Definition, Emphasise, Italic, Keyboard, None, Sample, Small, Strong, Strikethrough, Subscript, Superscript, Teletype, Underline, Variable.

You can map a character tag to None to give those characters no HTML highlight.

Characters can match more than one format override rule. For example, consider characters whose angle is Oblique and family is Courier. Those characters match both these rules:

CHARACTER { ANGLE  "Oblique" MAP Italic }
CHARACTER { ANGLE  "Oblique"
            FAMILY "Courier"
            MAP     Variable}

In cases where characters match more than one format override rule, the most detailed rule takes precedence. In the preceding example, the second rule is more detailed than the first rule because it specifies more aspects of the characters. Thus, the second rule is used for those characters.