SampleCodePointMap.cp file

The SampleCodePointMap.cp file maps code points in a custom AFP code page to Unicode code points. You can use this file to create a code point map file for each AFP code page that does not use standard Unicode code points.

The name of the file must contain the name of the code page. For example, if the code page name is T1000259, name the file T1000259.cp. The sample file that you can edit and rename is (AIX and Linux) or (Windows)SampleCodePointMap.cp.

Purpose

The SampleCodePointMap.cp file lets you map code points in a custom AFP code page to Unicode code points so that AFP Visual Environment can display the text correctly. For example, the Unicode code point for a space is hexadecimal 0020. If the AFP code page uses a code point for a space, such as hexadecimal 0040, map code point 0040 to code point 0020.

For charts showing Unicode code points, see http://unicode.org/charts/.

Format

Each line in the file has this format:
AFPcodepoint=Unicodecodepoint
For example:
 0040 0020
AFPcodepoint
The hexadecimal code point in the custom AFP font.
Unicodecodepoint
The corresponding hexadecimal Unicode code point.

Syntax rules

  • Start each line in column one.
  • A pound sign (#) in column one indicates the line is a comment.
  • Blanks are allowed.