Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

21 Mapping text formats to HTML/XML > 21.6 Mapping special characters > 21.6.6 Mapping characters in a special font


21.6.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.7.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.6.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-6, 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.6.5 Mapping individual special characters.



21 Mapping text formats to HTML/XML > 21.6 Mapping special characters > 21.6.6 Mapping characters in a special font