Next Previous Up Top Contents Index

WebMaker User Guide

12.8.1 Character rule syntax

Every character tag to be translated must be declared and associated with one of the highlights supported in HTML or to None. Remember that it is the browsing software that determines how each HTML highlight is interpreted. For example, if you are reading this document with a World Wide Web browser, the browser that you are presently using displays these highlights as follows:

Big - Bold - Cite - Code - Definition - Emphasise - Italic - Keyboard - None - Sample - Small - Strikethrough - Strong - Subscript - Superscript - Teletype - Underline - Variable

The basic syntax of character rules is:

CHARACTER { TAG "FMchartag" MAP HTML-highlight> )

Here is an example:

CHARACTER { TAG "Substitute" MAP Sample }

You can optionally provide a class name, as in this syntax:

CHARACTER { TAG "FMchartag" MAP HTML-highlight>            CLASS:"class-name" }

The syntax elements of character rules are:

"FMchartag"

is the tag name of the FrameMaker character tag. Because FrameMaker character tags are case-sensitive, this name must match the case of the character tag.

HTML-highlight

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

This string is the name of the class of all HTML tags written by this character rule. If you do not provide the Class attribute, the default class name is the name of the FrameMaker character tag that was mapped to this character rule. See Section 12.4, "WML support for CSS".