Editing the code page definition file
You might have to edit the code page definition file if you created a new code page.
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,ANSITo edit the code page definition file:
- 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).
- Navigate to
/opt/infoprint/ippd/afpviewer/font
(AIX and Linux) orC:\Program Files\Ricoh\ProcessDirector\afpviewer\font
(Windows) and find the filecpdef.fnt
. - Copy the file
cpdef.fnt
and save it as a backup.For example, you can save the copy as cpdef.fnt.bak. - Open
cpdef.fnt
in a file editor. - Insert new lines for the code pages that your files require, using the syntax above.
- Note:
- 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.
- Save and close the file.
- 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.
- 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. - Run the makeconv utility to convert the
.ucm
file to a.cnv
file. - On the primary computer, copy the
.cnv
file into this directory:/opt/infoprint/ippd/ProcessDirector/afpviewer/cnv
(AIX and Linux) orC:\Program Files\Ricoh\ProcessDirector\afpviewer\cnv
(Windows)
- Create a Unicode character map (