From a command line, you can print one of two ways:
Directly to a line printer.
Using the xetops utility to convert text to bitmapped graphics.
The Traditional Chinese Solaris operating environment uses EUC code sets. Its printing applications (such as desktop tools) generate PostScript code that uses EUC. If you use different PostScript printing, make sure it has the same capabilities.
To print an EUC file, use the following command:
system% lp EUC-filename |
To print a Big5 format file on a printer that supports this format, use the following command:
system% lp -d Big5_printer Big5-filename |
For more information on setting up the Big5 filter, see Traditional Chinese Solaris System Administrator's Guide.
To print a file that contains Traditional Chinese characters in EUC format on an Epson® dot matrix printer, use the following command:
system% lp -d Epson_printer EUC-filename |
For more information on setting up the filter for dot matrix printers, see Traditional Chinese Solaris System Administrator's Guide.
The xetops utility allows you to print Traditional Chinese characters using a PostScript-based printer. The utility converts Traditional Chinese text into a bitmapped graphics printed image.
A typical command line for printing a file containing Traditional Chinese characters, with or without ASCII/English characters, would be as follows:
system% pr filename | xetops | lp |
The file may contain ASCII/English characters as well as Traditional Chinese. Refer to the xetops(1) man page for more detailed information.
The xutops utility allows you to print Traditional Chinese characters in zh_TW.UTF-8 locale using a PostScript-based printer. The utility converts Traditional Chinese text into a bitmapped graphics printed image.
A typical command line for printing a file containing Traditional Chinese characters, with or without ASCII/English characters, would be as follows:
system% filename | xutops | lp -d printer |
The file may contain ASCII/English characters as well as Traditional Chinese. Refer to the xutops(1) man page for more detailed information.
A new and enhanced mp(1)print filter is available in the Solaris 8 environment to print in all three Traditional locals with a PostScript-based printer.
The output from the utility is standard PostScript, and can be sent to any PostScript printer.
Starting with the next release of the Solaris environment, xutops (10) will be obsolete.
A typical command line for printing a file containing Traditional Chinese characters, with or without ASCII/English characters, would be as follows:
system% mp -L $LANGfilename | lp -d printer |
The file may contain ASCII/English characters as well as Traditional Chinese. Refer to the mp(1) man page for more detailed information.
You can also use the utility as a filter, as the utility accepts stdin stream:
system% cat filename | mp | lp |
You can set the utility as a printing filter for a line printer. For example, the following command sequence tells the printer service LP that the printer lp1 accepts only mp format files. This command line also installs the printer lp1 on port /dev/ttya. See the lpadmin (1m) man page for more details.
system% lpadmin -p lp1 -v /dev/ttya -I MP system% accept lp1 system% enable lp1 |
You can add the lpfilter utility for a filter by using the lpfilter(1M) command as follows:
system% lpfilter -f filtername -F pathname |
The lpfilter command tells LP that a converter (in this case, xutops) is available through the filter description file named pathname. The pathname can be determined as follows:
Input types: simple Output types: MP Command: /usr/bin/mp |
The filter converts the default type file input to PostScript output using /usr/bin/mp.
To print a UTF-8 text file, use the following command:
system% lp -T MP UTF-8-file |
For more details on the mp(1) command, refer to the mp(1) man page.