17.3.3 Replacing paragraph or character content

You can direct DITA2Go to replace the content of a paragraph, or of a character-formatted span of text, with arbitrary RTF code. For example, to replace page numbers with graphics in a generated file to be included in WinHelp output:

[HelpStyles]
; Replace deletes, and also puts out the RTF in [HelpReplacements]
IOMpgnum=Replace

You specify the replacement RTF code as a property of the format in question, in the following section. For example:

[HelpReplacements]
; Replace causes the insertion of the corresponding raw RTF code below
; in place of the original content of the named para or char format
IOMpgnum=\ .{bm c document.bmp\.}

This feature is used in the WinHelp version of the DITA2Go User's Guide, to replace page numbers in keyword indexes with bitmap graphics.

Previous Topic:  17.3.2 Converting autonumbers

Next Topic:  17.3.4 Converting footnotes

Parent Topic:  17.3 Converting text

Sibling Topics:

17.3.1 Suppressing unwanted paragraphs

17.3.2 Converting autonumbers

17.3.4 Converting footnotes

Table of ContentsIndex