### 21.5.6 Mapping characters in a special font

Characters in special fonts such as Wingdings or Webdings might not be rendered correctly by non-Microsoft browsers; see §21.6.7 Accommodating browser font-rendering differences. However, you can direct Mif2Go to replace a character in any font with its Unicode equivalent, or with an image, or with any HTML code, by providing a macro section for that font in your configuration file.

The following Web site suggests mappings from Symbol and Wingdings characters to the closest Unicode code points:

http://www.alanwood.net

With the kind permission of Alan Wood, we have incorporated these mappings as defaults for all Mif2Go HTML conversions. The defaults should handle all Symbol characters (except for one, the radical extender) and the majority of Wingdings characters. You can override the defaults, or set mappings for any characters that have no equivalent Unicode representation.

To specify a macro section for Wingdings (for example):

[MacroFonts]

; Frame font name = section to use for mapping chars in that font

Wingdings = WingChars

In the macro section, you can represent an individual character as itself, as its decimal value, or (prefixed with x) as its hexadecimal value; and you can map it to its Unicode equivalent, to a string, to HTML code, or to a Mif2Go macro. The rules are the same as for mapping individual characters in section [CharConvert]; see §21.5.5 Mapping individual special characters.

For example:

[WingChars]

; char n maps to a square bullet, char p to a graphic:

n = x25a0

p = <img src="emptybox.gif">

To produce the Unicode equivalent of Ž and ž (Z caron and z caron) listed in Table 13-5, for example:

[MacroFonts]

Courier New = ZCaron

[ZCaron]

142 = U+017D

158 = U+017E

To map characters that are not in the printable set, see §21.5.5 Mapping individual special characters.

| 21.5.5 Mapping individual special characters |  | 21.5.7 Avoiding use of special characters in URIs |