HP-UX 11i v3 International Printing Features
13
PCL Printing
A number of model files are available for printing to an HP PCL5 printer. For printing Asian (CJK)
characters in text or PCL data, the PCL5.asian model file can be used. For just printing single-byte
European characters, the PCL5 model file can be used.
When printing Asian characters using the PCL5.asian model file, the recommended way to select
the desired character set is to supply the right locale-name option to the model file. For example, the
following command prints a GB18030 encoded text file:
# lp –dprinter –ozh_CN.gb18030 gb18030-text-file
In contrast, printing single-byte European characters requires the use of the correct PCL symbol set ID
with the cs option. For example, the following command prints a file containing Latin 1 (ISO/IEC
8859-1) characters:
# lp –dprinter –ocs0N latin1-file
In a homogeneous printing environment where files of only one European character set are printed,
the printers should be configured to use that character set as the default. Setting the default symbol set
ID can usually be done via the control panel. It can also be done via the administrative web page of
the embedded web server for network printers. In that case, you do not need to specify the cs option
when printing text files. Table 4 lists some of the PCL symbol set IDs that can be used to print
characters with different European character-set encodings.
Table 4: PCL Symbol Set ID to Character-Set Mapping
PCL Symbol Set ID Character Set
8U Roman-8
0N ISO 8859-1 Latin 1
2N ISO 8859-2 Latin 2
5N ISO 8859-9 Latin 5
9N ISO 8859-15 Latin-9
i
12N ISO 8859-7 Greek with Euro
ii
18N UTF-8 (Unicode)
iii
i
Only newer LaserJet printers support the ISO 8859-15 character set.
ii
Only some LaserJet printers, such as the LaserJet 1220 and LaserJet 2200, support the Greek fonts.
iii
On selected LaserJet printers released in 2004 or later with UTF-8 firmware, such as the LaserJet 2400, 4250, and 4350 series.
Note that not all PCL printers support all the character sets listed in Table 4. Also, PCL printers
typically support more character sets than are shown in the table. For a full list of character or symbol
sets supported by these printers, see the appropriate printer documentation. Of the PCL5 command
codes, the following two are relevant to the printing of local language characters:
• The text-parsing method provides a method for specifying character codes to select characters in
large fonts (greater than 256 characters).
Esc &t#P
where # = 0, 1, 21, 31 (SJIS), 38 (HP-15), 83 (UTF-8)
• The symbol set command identifies the specific set of symbols in a font.
The primary symbol set command is indicated as:
Esc (#
The secondary symbol set command is indicated as:
Esc )#