Adobe 65030365 Developer's Guide - Page 388
character map, Arguments, Details
UPC - 883919170923
View all Adobe 65030365 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 388 highlights
26 c h a r a c t e r m a p Arguments cmapi A mapping between the character set used in the markup document and the FrameMaker character set. Each cmapi has one of the following forms: sgmlch = fmch; sgmlch = trap; trap = fmch; sgmlch is either a 1-character string or a character code representing a character in the markup character set. sgmlch can be a single character only if that character has the same character code in both the FrameMaker and markup character sets. Otherwise, you must use the integer character code. fmch is either a 1-character string or a character code representing a character in the FrameMaker character set. For information on how to represent character codes and special characters in strings, see "Strings and constants" on page 212. Details • Some characters might be defined in only one of the two character sets. The keyword trap is provided for this situation. By default, FrameMaker discards trapped characters. • The character map need not be a one-to-one mapping. If a character in the input document is mapped to multiple characters in the output character set, FrameMaker uses the output character from the last mapping to appear in the character map rule. • If you use the character map rule at the highest level, do not also use it inside either a reader rule or a writer rule. If you use this rule inside a reader rule or a writer rule and also use it at the highest level, FrameMaker ignores the highest-level character map rule. You can only have one occurrence of this rule at the highest level. Similarly, the character map rule can appear in one reader rule and one writer rule at most. The software ignores any subsequent uses of the character map rule. • If you use the character map rule at the highest level, its behavior is bidirectional. For example, you could have this rule: character map is 0x20 = 0x12; This rule specifies that the ISO Latin-1 space character (character code 0x20) maps to the FrameMaker thin space character (character code 0x12). With this rule, FrameMaker translates a thin space to a standard space when it writes a markup document. However, this rule translates all spaces in a markup document to thin spaces in a corresponding FrameMaker document. This is unlikely to be the desired behavior. For this reason, instead you should use this rule: reader character map is 0x20 = 0x12; Read/Write Rules Reference 370