30.6.2 Choosing how to treat typographic elements

To specify how typographic elements should be treated:

[Typographics]
; UseTypographicElements = Yes (HTML default) or No (XML default,
; suppress b, i, u, tt, sub, and sup even when specified in a format)
; UseFormatTypographics = Yes (default, use b, i, u, strike, sub
;  and sup when set in paragraph or character formats), or No
;  (suppress in both para and char formats)
; UseParagraphTypographics = Yes (default, use above when set in
;  paragraph formats), or No (suppress in para formats)
; UseCharacterTypographics = Yes (default, use above when set in
;  character formats), or No (suppress in char formats)
; UseTypographicStyles = No (default) or Yes (use tags below if set)
; typographic tag (b, i, u, strike, sub, sup) = tag to use instead,
; possibly followed by attributes.  Replaces overrides if used
; while [HTMLOptions]AllowOverrides=Yes, UseTypographicElements=Yes, 
; and UseFormatTypographics=No.  Both "over" for overline and "chbar"
; for change bar also are usable as pseudotags here.
[HtmlOptions]
; AllowOverrides = Yes (default) or No (ignore untagged char props,
;  default for XML and DITA)

You can choose to:

Suppress all typographics

Replace typographics with other tags.

Suppress all typographics

To eliminate all typographic elements:

[Typographics]
UseTypographicElements = No

When UseTypographicElements=No, all settings of character properties are eliminated, including font size, font color, and font name in addition to bold, italic, underline, strike, subscript, and superscript; regardless of whether those properties are intrinsic to a character or paragraph format or were applied as an override. This setting, UseTypographicElements=No, cannot be overridden by any other settings in section [Typographics], nor by [HtmlOptions]AllowOverrides. This is the appropriate value for DITA XML output; see §24.4.4 Mapping character formats to DITA inline elements.

Replace typographics with other tags

To specify tags to use for individual typographic elements:

[Typographics]
UseTypographicElements = Yes
UseTypographicStyles = Yes
typographic = tag

When UseTypographicStyles=Yes, you can specify other tags to use in place of typographic elements. The typographic elements you can replace are b, i, u, strike, sub, and sup. You can specify attributes as well. For example:

[Typographics]
UseTypographicStyles = Yes
i = emphasis
b = emphasis role="bold"

If UseFormatTypographics=Yes, the tags you specify replace any named typographics intrinsic to formats.

If [HtmlOptions]AllowOverrides=Yes, the tags you specify replace any named typographics used as overrides.

Previous Topic:  30.6.1 Deciding whether to suppress typographic elements

Next Topic:  30.7 Specifying text colors

Parent Topic:  30.6 Managing typographic elements for HTML or XML

Sibling Topics:

30.6.1 Deciding whether to suppress typographic elements