#### 24.4.5 Assigning multiple typographic elements to a format

DITA2Go suppresses overrides that are not part of a paragraph or character format, and uses only the single element mapped from the format name in [DITAParaTags] or in [DITACharTags]. This can be problematic if, for example, a character format should map to both <b> and <i>. In that case, you have to map the format to one of the elements in [DITACharTags], and assign the other(s) as follows:

    [DITACharTypographics]
    ; character format (wildcards OK) = DITA typographic elements
    CharFmtName = typelem1 typelem2 ...

Likewise for paragraph formats:

    [DITAParaTypographics]
    ; paragraph format (wildcards OK) = DITA typographic elements
    ParaFmtName = typelem1 typelem2 ...

You can assign any or all of b, i, u, tt, sup, or sub, in addition to the element to which the format is mapped in [DITAParaTags] or in [DITACharTags]. You must map the format to an element (not to No) in [DITAParaTags] or in [DITACharTags], then add the rest of the elements (but not the one already mapped) here. For example:

    [DITACharTags]
    CodeBoldItal = tt

List the elements separated by spaces:

    [DITACharTypographics]
    CodeBoldItal = b i

The tags are applied in the order listed. For example, with these settings a CodeBoldItal text fragment would be enclosed in <tt><b><i>...</i></b></tt>.

We advise minimal use of this feature. Typographic presentation markup is best left to later processing, such as with a CSS rule based on the outputclass attribute of the DITA semantic element. For example, map character format CodeBoldItal to <ph>, and expect the HTML output to produce <span class="codeboldital">, which can be handled by CSS for selector span.codeboldital.

See §24.4.6.6 Providing outputclass attributes for all elements.

Previous Topic: 24.4.4.5 Using alternate character formats for menu cascades

Next Topic: 24.4.6 Assigning attributes to DITA elements

Parent Topic: 24.4 Configuring DITA elements

Sibling Topics:

24.4.1 Understanding how DITA2Go delimits DITA elements

24.4.2 Treating format names as DITA element names

24.4.3 Mapping paragraph formats to DITA block elements

24.4.4 Mapping character formats to DITA inline elements

24.4.6 Assigning attributes to DITA elements

24.4.7 Preserving whitespace in block elements

Table of Contents • Index