Adobe 65030365 Developer's Guide - Page 389
character map, Examples, Structure Application Developer's Guide
UPC - 883919170923
View all Adobe 65030365 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 389 highlights
26 c h a r a c t e r m a p • By default, FrameMaker assumes that the character set your SGML documents use is ISO Latin-1. It provides a default mapping between those character sets. For details, see Appendix E, "Character Set Mapping." For information on other character sets you can use, see Appendix F, "ISO Public Entities." • By default, on export FrameMaker produces a character in the SGML document for most printing characters in the corresponding FrameMaker document. FrameMaker documents occasionally include unusual characters that serve no purpose outside FrameMaker. For example, the codes 0x01 and 0x03 are nonprinting characters that represent information about the insertion point movement. On export FrameMaker traps such characters, so that they don't appear in an exported SGML document. Similarly, on import FrameMaker produces a character in the FrameMaker document for most printing characters. It traps all control characters other than a tab or newline character. • FrameMaker has an 8-bit character set. The SGML declaration can specify any character set that the SGML parser can handle. Because part of the character set description in the SGML declaration is not human-readable and may not be interpretable automatically, any differences between the native FrameMaker character set and the character set in the SGML document must be specified with the character map rule. • By default, FrameMaker discards trapped characters. You can provide an structure API client to change the processing of trapped characters. For information on creating an structure API client, see the Structure Import/Export API Programmer's Guide. Examples • Both the FrameMaker and default SGML character sets have a character code for the character ó (lowercase o with an acute accent). In FrameMaker, the character code is 0x97; in the default SGML character set, the character code is 0xF3. If you want to trap the SGML character that looks like ó, you might try using this rule: character map is "ó" = trap; Because you enter your read/write rules in a FrameMaker document, however, FrameMaker interprets that rule as: character map is 0x97 = trap; which is not the behavior you want. Instead, you should use this rule: character map is 0xF3 = trap; • By default, FrameMaker maps the SGML broken bar character to the FrameMaker solid bar character |. The rule for doing so could be written in the following equivalent ways: character map is 0xA6 = "|"; character map is 0xA6 = 0x7C; character map is "\xA6" = "\x7C"; • To trap the SGML broken bar character, use this rule: character map is 0xA6 = trap; Structure Application Developer's Guide 371