Traditional Chinese Solaris User's Guide

Using the EUC to BIG5 Filter

A printer that does not support EUC needs filters that convert EUC files for printing. Use the commands in this section to print EUC files to non-EUC printers.

The following commands install the printer lp1 on port ttya. The commands signal the print service that lp1 accepts only BIG5 format files. See the lpadmin(1M) man page for more information.


# lpadmin -p lp1 -v /dev/ttya -I Big5
# accept lp1
# enable lp1

You can use an lpfilter command as shown in the following example to print files with formats that are not supported by the printer. The command signals the print service that a converter called filter-name is available through the filter description file named in pathname.


# lpfilter -f filter-name -F pathname

The following example shows the output of pathname for a converter called euctobig5. The pathname filter converts the default input type to BIG5 with the euctobig5 converter.


Input types: simple
Output types: BIG5
Command: euctobig5

To print an EUC format file, use a command line such as the following.


system% lp -d lp1 EUC-filename

To print a BIG5 format file, use a command line such as the following.


system% lp -d lp1 -T BIG5 Big5-filename