Korean Solaris User's Guide

Printing an EUC (Wansung) File to a Printer that Does Not Support EUC

A printer that does not support EUC requires filters to convert the EUC files before your can print them. Use the commands in this section to print EUC files to a non-EUC printers.

The following command lines install the printer lp1 on port ttya and signal the print service that the lp1 accepts only Packed format files. Packed is the KS C 5601-1987 combination code.


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

The following command lines install the printer lp1 on port ttya and signal the print service that lp1 accepts only Johap format files. Johap is the KS C 5601-1992 combination code.


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

See the lpadmin(1M) man page for more information.

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


# lpfilter -f filter-name -F pathname
See the lpfilter(1M) for more information.

The following example shows the output of pathname for a converter called comptopack.


Input types: simple
Output types: PACK
Command: comptopack 

The pathname filter converts the default input type to Packed format with the comptopack converter.


Input types: simple
Output types: JOHAP
Command: wansungtojohap 

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


system% lp euc-filename 

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


system% lp -T PACK PACK-filename

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


system% lp -T JOHAP JOHAP-filename