Solaris Internationalization Guide For Developers
  Procure somente este livro
Fazer download desta apostila em PDF
CHAPTER 10

Printing



Localization Printing Support Under Solaris 2.6

Solaris provides support for PostScript printers. Custom print filters are available to convert localized text to PostScript. See mp(1) and postprint(1) man pages for further details. The ability to download fonts onto a printer is also present.
For more details see the download(1) man pages. This support is configured for PostScript printers.
No internationalization-specific changes were made to printing with Solaris 2.6. Look for printing information in the AnswerBook; the System Administration Guide has several chapters that discuss printing.

European Printing Support

For European non-iso-8859-1 locales, such as Greek and Russian, prolog.ps files are supplied. The files are located in /usr/openwin/lib/locale/print.
When you print in one of these locales, the files are automatically downloaded to the printer. These fonts are PostScript Type1. They include Times, Helvetica, and Courier.
These are in normal, bold, italic, and bold-italic styles.
This allows printing on PostScript printers from both CDE and OpenWindows desktops. From a command line, use /usr/openwin/bin/mp <filename> | lp in each non-iso8859-1 locale.
For the Eastern European locales such as Russian, non iso-8859-1 encoded, prolog.ps files are supplied. The files are located in:
/usr/openwin/lib/locale/locale/directories/print/prolog.ps

for each relevant locale. At directories, insert of the following
/iso8859-10/
/iso8859-2/
/iso8859-4/
/iso8859-5/
/iso8859-7/
/iso8859-9/

The files are downloaded automatically when you print in one of the Eastern European locales. A minimum set of fonts allow printing.
The fonts in the prolog.ps files are:
TABLE 10-1 prolog.ps Fonts

  /LC_Courier                       CourierCyr AliasFont  
  /LC_Courier-Italic                CourierCyr Inclined AliasFont  
  /LC_Courier-Bold                  CourierCyr Bold AliasFont  
  /LC_Courier-BoldOblique           CourierCyr BoldInclined AliasFont  
  
  /LC_Times-Roman                   TimesNewRomanCyr  
  /LC_Times-Italic                  TimesNewRomanCyr-Inclined Aliasfont  
  /LC_Times-Bold                    TimesNewRomanCyr-Bold AliasFont  
  /LC_Times-BoldOblique             TimesNewRomanCyr-BoldIncl AliasFont  
  
  /LC_Helvetica                     LucidaSansCyr AliasFont  
  /LC_Helvetica-Italic              LucidaSansCyr ItalicFont  
  /LC_Helvetica-Bold                LucidaSansCyr-Bold AliasFont  
  /LC_Helvetica-BoldOblique         LucidaSansCyr-BoldItalic AliasFont  


Asian Printing Support

The xetops and xutops utilities convert Asian text into a bitmapped graphics printed image. This allows you to print Asian characters on a PostScript-based printer.
A typical command line for printing such a file would be as follows:

  system% pr <filename> | xetops |lp  

or

  system% pr <filename> | xutops |lp (for the ko.UTF-8 locale)  

Japanese Solaris 2.6 supports the following Japanese-specific printers:
  • Japanese PostScript printer
  • Epson VP-5085 (based on ESC/P)
  • NEC PC-PR201 (based on 201PL)
  • Canon LASERSHOT (based on LIPS)
Japanese texts can be printed with these printers through the LP print service. TABLE 10-2 shows the relation between these printers and used components. See JFP User's Guide for further details.
TABLE 10-2
Printerterminfo(-T)interface(-i)content(-I)filter
Japanese PSPSjstandardpostscriptjpostprint
Epson VP-5085epson-vp5085jstandardNonejprconv
NEC PC-PR201nec-pr201jstandardNonejprconv
Canon LASERSHOTcanon-ls-a408jstandardNonejprconv
Use the following to set up a Japanese PostScript printer.
In the following example, the PostScript printer name is lw. The /dev/lp1 is the device that is associated with the printer. For more information, see the lpadmin man page.

  # lpadmin -p lw -v /dev/lp1 -T PS -I postscript  
  # lpadmin -p lw -i /usr/lib/lp/model/jstandard  
  # cd /etc/lp/fd  
  # lpfilter -x -f postprint  
  # lpfilter -f jpostprint -F jpostprint.fd  
  # accept lw  
  # enable lw  
  # /etc/init.d/lp stop  
  # /etc/init.d/lp start  

You will be able to print with the following operation:

  % lp -d lw Japanese Text File  


Note - These features are supported only on Japanese Solaris. Supported input codesets are Japanese EUC (Default) and PCK. The locale setting of Command line in jpostprint.fd (or jprconv.fd) should be changed to ja_JP.PCK, if you want PCK.