The Tru64 UNIX operating system provides a printing
function that uses Advanced Printing Software as well as the conventional
printing function that uses the
lpr
command.
Section 4.1,
Section 4.2, and
Section 4.3
describe
printer operation for the
lpr
command.
Section 4.4
describes Advanced Printing Software.
4.1 Printer Codes
In an internationalized environment, multiple Japanese text files that use various Kanji codes can reside on the file system. If your printer uses a codeset different from that of the file, you must convert character codes to codes that are suitable for the printer. In this document, a codeset used for a file is called the file codeset and a codeset used for a serial printer is called the printer codeset.
To output
file contents to the printer, use the
lpr
command.
When
you issue the command, it references the Character Codeset section of the
current user's locale.
The
lpr
command also examines the
/etc/printcap
file, finds the
ya
entry for the
printer to use, and references the codeset which is specified there.
If the
file codeset and printer codeset are different,
iconv()
converts the file codeset to the printer codeset.
The resulting data is output,
as a file, to a directory called the printer spool.
In addition, the control
file used for printer control is written to the printer spool.
The
lpr
command then sends a print request to the
printer spool daemon,
lpd
.
Upon receipt of the request,
lpd
sends the output file placed under the spool directory to the
printer by means of the printer filter that matches the output device.
For
more information, see
lpr
(1)lpd
(8)4.2 Setting Up a Japanese Printer
To set up a Japanese printer, you must use either
the
/usr/sbin/lprsetup
command or the Printer Configuration
utility.
To perform either of these operations, you must have superuser privileges.
You can issue the
lprsetup
command from the command
line.
To start the Printer Configuration utility, select Configure line printer from the SysMan Menu. Alternatively, select Printer Configuration from the Custom Setup subutility of the System Setup utility.
If you use the Printer Configuration utility to set up the Japanese printer, use the following procedure:
From the CDE application manager, select System Management ==> System Settings ==> Printer icons to start the Printer Configuration utility.
In Available Printer Types, click on the name of the printer you want to set up. Japanese printer names end with "ja".
Example: DEClaser2300
Click Configure.
In the dialog box, enter the Printer Aliases and the name of the device to which the printer is connected.
Click Advanced and use the dialog box to set up detailed conditions such as flag page suppression, or to enable the printer to print user-defined characters in Printer ODL.
To set the Printer ODL feature, select the SoftODL cache size (ys): field and enter the size value (for example, 256).
Select the Country-specific parameters (ya): field and add the ODL-style settings.
For example, if you want to use a font size 40 x 40 with ln05ja, enter the following:
"plocale=ja_JP.sdeckanji odlstyle=normal-40x40"
Click OK.
Click Commit to save the settings. Click Close.
Example 4-1: Sample /etc/printcap File
lp0|0|ln05:\ :af=/usr/adm/lp0acct:\ :br#9600:\ :ct=dev:\ :fc#0177777:\ :fs#023:\ :if=/usr/lbin/ln05jaof:\ :lf=/usr/adm/lp0err:\ :lp=/dev/tty01:\ :mx#0:\ :of=/usr/lbin/ln05jaof:\ :pl#66:\ :pw#80:\ :sd=/usr/spool/lpd0:\ :xc#0177777:\ :xf=/usr/lbin/xf:\ :xs#044000:\ :ya="plocale=ja_JP.sdeckanji odlstyle=normal-40x40":\ :ys#256:
For more information on the Tru64 UNIX printer support internationalization
features, see
i18n_printing
(5)4.3 Setting Up an ESC/P Printer
Tru64 UNIX provides two configuration files
(escp_a4_10cpi
and
escp_a4_12cpi)
for the
pcfof
filter that enable you to use the ESC/P printer.
You can use the
configuration files to set the ESC/P printer initialization codes and to configure
the settings required to print 10 or 12 CPI (characters per inch) data.
Select either the
escp_a4_10cpi
or
escp_a4_12cpi
configuration file with the
lprsetup
command
to automatically set up the ESC/P printer in the
/etc/printcap
file .
To edit the
/etc/printcap
file manually, set the
if
and
of
entries as follows:
:if=/usr/lbin/pcfof +Cescp_a4_10cpi -Opcode=escp: :of=/usr/lbin/pcfof +Cescp_a4_10cpi -Opcode=escp:
In addition, you must set ja_JP.eucJP as the printer locale for the
ya
entry, as follows:
:ya="plocale=ja_JP.eucJP":
4.4 Installing and Setting Up Advanced Printing Software
Advanced Printing Software is
a distribution client/server printing system that is based on Xerox PrintXchange
technology.
Advanced Printing Software transmits and receives print jobs to
and from the
lpr
and
lpd
print subsystems
by using the inbound and outbound gateways.
The Associated Products Volume 1 CD-ROM in the present release contains the standard version kit of Advanced Printing Software. The Japanese kit is supplied on the Worldwide Software Language Support kit. To use Advanced Printing Software to output data to the Japanese printer, you must install both of the kits on the system.
The Japanese kit of Advanced Printing Software contains environments that enable Japanese text or Japanese PostScript files to be output to Japanese printers. (The printer must support Japanese PostScript.) For details on installing and using the Japanese kit of Advanced Printing Software, refer to the Japanese documentation for Advanced Printing Software.