cp382dof - Filter for Traditional Chinese CP382 printer controller
/usr/lbin/cp382dof [-c] [-h host] [-i indent] [-l length] \ [-L locale] [-n login] [-w width] [accounting_file]
Prints control characters. Specifies the host name of the job owner. Specifies the amount of indentation. The default value is no (no indentation). Specifies the page length in lines. The default value is 66. Specifies the printer codeset. This value must be a valid locale name. The default value is zh_TW.dechanyu. Specifies the login name of the job owner. This name can contain Chinese characters. Specifies the page width in columns. The default value is 132.
Specifies the file to record accounting information. This file can contain Chinese characters.
The cp382dof filter is used to filter text data destined for the CP382 printer controller. The filter handles the device dependencies of the printers and performs accounting functions. At the time of completion for each print job, accounting records are written to the file specified by the af field of the printer's entry in /etc/printcap.
The filter can handle plain ASCII and Chinese text files and files that have been preprocessed by nroff. The cp382dof filter translates nroff control sequences for underlining, superscripting, and subscripting into the proper CP382 control sequences.
The cp382dof filter can be the specified filter in both the of and the if fields in the /etc/printcap file. For further information, see printcap(4).
The CP382-D printer can be configured to use the software on-demand loading (SoftODL) mechanism to print user-defined characters (UDCs). Refer to i18n_printing(5) for more details on SoftODL.
To enable SoftODL printing, you should set the ys value in /etc/printcap(4) to 800. You can also set the default SoftODL database, style, and size by using the odldb and odlstyle options in the ya value. The yt value, if set, should be fifo. Refer to printcap(4) for information on setting these values.
The lpr command supports a number of flags and associated options to specify localization features supported by various printers. The lpr(1) reference page provides a complete list of these flags and options. The following ones can be specified for the CP382 printer controller:
To specify the SoftODL database path To specify SoftODL font style and size
The cp382dof filter always assumes that 4-byte characters are printed without leading code. The printer hardware should be set as such to avoid any formatting problems.
The lf field (default value is /dev/null) in the /etc/printcap file specifies the name of the error logging file.
Commands: lpd(8), lpr(1), pr(1), pac(8)
Others: i18n_printing(5) delim off