For the Korean Solaris Operating System to run a line printer, the printer must recognize at least one of the supported code sets.
Completion code, also called Wansung (Korean EUC, based on KS C 5601)
Combination code, also called Johap (either KS C 5601-1987-3 or KS C 5601-1992-3)
N-byte code
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 |
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 |
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 |
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 |
The output will include only the characters that are defined in the Johap code set.