Omni Systems, Inc. Mif2Go User's Guide, Version 55
> 21 Mapping text formats to HTML/XML > 21.6 Mapping special characters > 21.6.5 Mapping individual special characters
To force a mapping different from the Mif2Go mapping of a particular character, or to map any arbitrary Unicode character (for example):
; Unicode char num = HTML numeric value or string replacement
; nonbreaking hyphen is decimal 8209, becomes entity –
; em space is x2003, becomes three nonbreaking spaces
To the left of the equals sign, specify any of the following for the character you want to replace:
Character_Sets.pdf
,
in the OnlineManuals
directory
u+
or U+
followed by the hexadecimal code for the character
*
) or question mark (?
),
both of which Mif2Go treats as wildcards unless you disable this
feature; see §5.1.7 Specifying how to treat cases, spaces, and wildcards
The easiest way to specify a character to be
replaced (except asterisk or question mark) is to copy and paste the
character from your FrameMaker document into section [CharConvert]
.
This works for most symbols, but not for variant spaces, which turn into
plain spaces, nor for hard or soft hyphens, which turn into plain hyphens.
For these characters, and for a few others, Table 21
Table 21
To the right of the equals sign, specify any of the following:
When you supply a string rather than a character
code, Mif2Go expands any macros referenced, but includes
the rest of the string in the output as is.
Therefore you must escape any literal characters such as <
by providing an entity reference instead; in this case, <
.
To map the bullet to a middle dot:
To map the bullet to a bold middle dot:
To map the bullet to an image:
149 = <img src="mybullet.gif">
To map the ohm symbol from Unicode to the Symbol font for HTML Help:
U+2126 = <span class="Symbol">W</span>
and add the class to your CSS:
.Symbol {font-family: Symbol; }
In code-page encoding, as for HTML Help output, the only valid solution for handling out-of-range characters is to use a font that has the desired glyph within the code page. In this case, the glyph for ohm is in Symbol, which will work in all single-byte code pages (but not in Asian code pages, where an Asian symbol font is needed instead).
To prevent Mif2Go from mapping the curly right single quote to its corresponding HTML entity, and replace it instead with a straight apostrophe (which is in the printable set):
Use only to map non-printable characters
Although you can specify any decimal integer
to the left of the equals sign, this mapping option is intended only
for characters that are not in the regular printable set. Using [CharConvert]
to map a character in the printable set can result in surprises. You
can try mapping other integers, but the odds are poor for values not
in the range 128 through 255. There are a few exceptions. For example, Mif2Go automatically converts a solidus to a forward
slash, which is in the printable set. You can prevent this conversion
by mapping the solidus to itself, specifying the Unicode value to the
left of the equals sign and again on the right, as a numeric entity reference:
See §21.6.1 Understanding how Mif2Go represents characters.
Character mapping via [CharConvert]
takes no notice of font. For example, if you map a character that appears
as a check mark in WingDings 2 to the Unicode radical sign, any instance
of capital “P” in your document that occurs by itself (away
from other letters, or with a character format applied to it alone) will
appear as a radical sign in HTML output. This is because in the WingDings
2 character set, the check mark has ASCII decimal code 80, the same code
as a capital “P” in the standard character set:
; WingDings 2 check marks (and individual text Ps) become radicals:
To get around this problem, see §21.6.6 Mapping characters in a special font.