Korean Solaris User's Guide

Chapter 7 Korean Solaris Printing

The Korean Solaris Operating System supports the printing of Korean output to the following types of printers.


Note –

Review the manufacturer's documentation on installing the printer before you complete the procedures in this chapter.


Line Printer Support

For the Korean Solaris Operating System to run a line printer, the printer must recognize at least one of the supported code sets.

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

Printing a ko_KR.UTF-8 File to Printers that Do Not Support UTF-8

Use the commands in this section to convert ko_KR.UTF-8 files to EUC and Johap files.

You can use command lines such as the following to convert a ko_KR.UTF-8 file and to print the converted file to an EUC printer.


system% iconv -f ko_KR-UTF-8 -t ko_KR-euc
ko_KR.UTF-8_filename 
>euc-filename
system% lp euc-filename 


Note –

The output will include only the characters that are defined in the EUC code set.


You can use command lines such as the following to convert an ko_KR.UTF-8 file and to print the converted file to a Johap printer.


system% iconv -f ko_KR-UTF-8 -t ko_KR-johap92
ko_KR.UTF-8_filename >
johap92-filename
system% lp johap92-filename 


Note –

The output will include only the characters that are defined in the Johap code set.


Laser Printer Support

To print Korean characters to a PostScript-based printer, a Korean Solaris application recognize the mp utility.

Using the mp Utility

The mp utility supports all Asian locales. As a print filter, mp generates a properly formatted version of content in PostScript format. The Postscript output contains scalable or bitmap fonts, depending on the system font configuration formp in the current locale. The mp filter can print a ko file in ko locale or a UTF-8 file in the ko_KR.UTF-8 locale. For more information, see the mp(1) man page.

The following example shows a typical command line that you could use to print a file named filename that contains Korean characters, with or without ASCII/English characters.


system% mp filename | lp -d printer