Editing the code page definition file

You might have to edit the code page definition file if you created a new code page.
The code page definition file maps the IBM AFP code page name to its code page global identifier (CPGID) and to a Web browser character set. Each line in the file is a separate mapping. The lines use this syntax:
codepage=cpgid,wincp
codepage
The AFP code page name.
cpgid
The code page global identifier for this code page.
wincp
The Windows character set to use for this code page. Valid values are ANSI and SYMBOL. This value is optional.

For example, the code page definition file might contain these entries:

T1DCDCFS=1003,ANSI
T1GPI363=2066,SYMBOL
DEFAULT=361,ANSI
To edit the code page definition file:
  1. For Linux and AIX, log in to the primary computer using a user ID that is a member of the Ricoh ProcessDirector group (aiwgrp1 is the default).
  2. Navigate to /opt/infoprint/ippd/afpviewer/font (AIX and Linux) or C:\Program Files\Ricoh\ProcessDirector\afpviewer\font (Windows) and find the file cpdef.fnt.
  3. Copy the file cpdef.fnt and save it as a backup.
    For example, you can save the copy as cpdef.fnt.bak.
  4. Open cpdef.fnt in a file editor.
  5. Insert new lines for the code pages that your files require, using the syntax above.

    • The DEFAULT line must be the last one in the list. Add your lines above it.
    • If you create your own code page, you must assign it a unique code page identifier. In that identifier, you cannot use leading zeros.
    • A semicolon (;) in the first column causes that line to be treated as a comment.
    • Section headers within files are enclosed in square brackets ([]) and must not be removed or changed.
    • All values are case-sensitive.
    • If a parameter value is not valid and a default value exists, the default value is used.
    • All parameters are positional.
    • Blanks are allowed between parameters.
  6. Save and close the file.
  7. Because the viewer uses International Components for Unicode (ICU) to display text, you must create the files that ICU needs to interpret and apply your code page.
    For information about completing these steps, see the ICU User Guide (http://userguide.icu-project.org/intro). To find this information, search in the PDF version of the ICU User Guide for ucm.
    1. Create a Unicode character map (.ucm file) that describes your code page and provides a mapping table that links Unicode code points, code page character byte sequences, and optional precision or fallback indicators.
    2. Run the makeconv utility to convert the .ucm file to a .cnv file.
    3. On the primary computer, copy the .cnv file into this directory: /opt/infoprint/ippd/ProcessDirector/afpviewer/cnv (AIX and Linux) or C:\Program Files\Ricoh\ProcessDirector\afpviewer\cnv (Windows)
 
Copyright © 2006, 2018