Traditional Chinese Solaris User's Guide

Using Configuration Files for Printing With an Epson Dot Matrix Printer

Traditional Chinese Solaris software provides configurable files that allow users to configure the available built-in font ranges according to their own equipment. Traditional Chinese Solaris software provides a configuration file that defines the built-in fonts in the Epson dot matrix printers.

Modify the configuration file according to your printing equipment before using it:

Printing a CNS File to an Epson Dot Matrix Printer

For instance, the following configuration file, /usr/lib/lp/files/cns.epson.conf, is used for setting up an Epson LQ-1070C+ Chinese dot matrix printer. In the example, the Epson LQ-1070C+ is composed of built-in Traditional Chinese fonts for CNS 11643 plane 1 and plane 2. You can specify available fonts in different planes and in different directories.


# @(#)cns.epson.conf	1.5 96/04/10 SMI; ALE
# CNS Print Filter Configuration File for Epson Dot Matrix Printers
#

ACCEPT CODE RANGE:
	PLANE 1:
		0x2121 - 0x234e
		0x2421 - 0x2570
		0x4421 - 0x7d4b
	PLANE 2:
		0x2121 - 0x7244

FONT FILES:
	PLANE 1:
		/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/mingL1-24.pcf.Z
	PLANE 2:
		/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/mingL2-24.pcf.Z
	PLANE 3:
		/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/mingL3-24.pcf.Z
	PLANE 4:
		/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/mingL4-24.pcf.Z
	PLANE 5:
		/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/mingL5-24.pcf.Z
	PLANE 6:
		/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/mingL6-24.pcf.Z
	PLANE 7:
		/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/mingL7-24.pcf.Z
	PLANE 8:
		/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/sungNotdef-24.pcf.Z
	PLANE 9:
		/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/sungNotdef-24.pcf.Z
	PLANE 10:
		/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/sungNotdef-24.pcf.Z
	PLANE 11:
		/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/sungNotdef-24.pcf.Z
	PLANE 12:
		/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/sungNotdef-24.pcf.Z
	PLANE 13:
		/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/sungNotdef-24.pcf.Z
	PLANE 14:
		/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/sungNotdef-24.pcf.Z
	PLANE 15:
		/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/sungNotdef-24.pcf.Z
	PLANE 16:
		/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/sungNotdef-24.pcf.Z

An lpfilter command line such as the following can be used to print files whose format is not supported by the printer:


# lpfilter -f filter-name -F filename

The above command tells LP that a converter called filter-name (for example cns.epson.filter) is available through the filter description file named filename.

If you are installing an Epson dot matrix printer, the content of the filter description file, cns.epson.fd, should be as follows:


Input types: simple
Output types: EUC
Command: cns.epson.filter

This filter takes the default input and converts it to a dot matrix data stream by with the cns.epson.filter.

For example, the following command line tells the printer service that printer lp2 accepts only files of EUC format. The command line also installs printer lp2 on the bidirectional parallel port /dev/bpp0. See the lpadmin(1M) man page for more information.


# lpadmin -p lp2 -v /dev/bpp0 -I EUC
# accept lp2
# enable lp2

To print a file that contains Chinese characters in EUC format to an Epson dot-matrix printer, use the following command.


system% lp -d lp2 EUC-filename