Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

8 Generating WinHelp > 8.3 Converting text > 8.3.5 Replacing paragraph or character content


8.3.5 Replacing paragraph or character content

You can direct Mif2Go 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 Mif2Go User's Guide, to replace page numbers in keyword indexes with bitmap graphics; see §8.7.2 Converting indexes and lists of marker references.



8 Generating WinHelp > 8.3 Converting text > 8.3.5 Replacing paragraph or character content