Content-type: text/html Man page of jpostprint


Section: User Commands (1)
Updated: 10 Jan 2003
Index Return to Main Contents


jpostprint - PostScript translator for Japanese text files  


jpostprint [-c num] [-f name] [-l num] [-m num] [-n num] [-o list] [-p mode] [-r num] [-s num] [-t num] [-x num] [-y num] [-u path] [filename...]





The jpostprint translates Japanese characters on the standard input into Japanese PostScript and writes the results on the standard output. If no filenames are specified, or if - is one of the input filenames, the standard input is read. When the input character code includes UDC (User Defined Character), JIS X 0212, IBM extention character, or IBM extention character NEC selected, these fonts are also printed. And other fonts is printed by printer's fonts. UDC is created by using sdtudctool(1). SUNWjcs3f is needed for printing JIS X 0212, IBM extention character, or IBM extention character NEC selected.  


-c num Print num copies of each page. By default, only one copy is printed.

-f name Specify the font for printing. The following fonts can be specified as name to change fonts for JIS X 0208 or JIS X 0201 Katakana character set.

Ryumin-Light (same as Ryumin-Light-H)
GothicBBB-Medium (same as GothicBBB-Medium-H)
The following fonts may be specified for ASCII characters.

JIS X 0201 Roman character set Ryumin-Light.Hankaku


English font Courier


The following example shows how to specify the multiple fonts.


By default, Courier is specified for ASCII characters, and Ryumin-Light-H is specified for JIS X 0208 or JIS X 0201 Katakana characters. It is impossible to change the fonts for JIS X 0212, VDC (Vender Defined Character), and UDC.

-l num Set the length of a page to num lines. By default, num is 66. Setting num to 0 is allowed, and will cause jpostprint to guess a value, based on the point size that's being used.

-m num Magnify each logical page by the factor num. Pages are scaled uniformly about the origin, which is located near the upper left corner of each page. The default magnification is 1.0.

-n num Print num logical pages on each piece of paper, where num can be any positive integer. By default, num is set to 1.

-o list Print pages whose numbers are given in the comma-separated list. The list contains single numbers N and ranges N1 - N2. A missing N1 means the lowest numbered page, a missing N2 means the highest. The page range is an expression of logical pages rather than physical sheets of paper. For example, if you are printing two logical pages to a sheet, and you specified a range of 4, then two sheets of paper would print, containing four page layouts.

-p mode Print files in either portrait or landscape mode. Only the first character of mode is significant. The default mode is portrait. The mode is an expression for logical page rather than physical page. For example, portrait for logical page two correspond to landscape for physical page.

-r num Selects carriage return behavior. Carriage returns are ignored if num is 0, cause a return to column 1 if num is 1, and generate a newline if num is 2. The default num is 0.

-s num Print files using point size num. When printing in landscape mode num is scaled by a factor that depends on the imaging area of the device. The default size for portrait mode is 10. Note that increasing point size increases virtual image size, so you either need to load larger paper, or use the -l0 option to scale the number of lines per page.

-t num Assume tabs are set every num columns, starting with the first column. By default, tabs are set every 8 columns.

-x num Translate the origin num inches along the positive x axis. The default coordinate system has the origin fixed near the upper left corner of the page, with positive x to the right and positive y down the page. Positive num moves everything to the right. The default offset is 0.25 inches.

-y num Translate the origin num inches along the positive y axis. Positive num moves text up the page. The default offset is -0.25 inches.

-u path Print path using UDC font. By default, it refers $HOME/.Xlocale/locale/fonts/UDC/Type1/UDCxx.pfa first, and then fontpath udc in jpostprint.conf file.

A new logical page is started after 66 lines have been printed on the current page, or whenever an ` \f ' character is read. The number of lines per page can be changed using the -l option. Unprintable characters are ignored.  


Example 1:

To print file1 and file2 in landscape mode, issue the following command:

example% jpostprint -pland file1 file2 

Example 2:

To print two logical pages on each physical page in portrait mode:

example% jpostprint -n2 file 

Example 3:

To print UDC1.pfa, ..., UDC20.pfa of UDC font in /usr/local/UDC directory:

example% jpostprint -u " /usr/local/UDC/UDC%d.pfa" 


The locale has to be set to ja, ja_JP.eucJP, ja_JP.PCK, or ja_JP.UTF-8 in your environment.  







jtops(1), postprint(1), sdtudctool(1), lpfilter(1M)  


If -n option specified, PostScript file properly shows only for printing. UDC font is only used by Type1 font sdtudctool printed, and JIS X 0212 font is only used by Type1 font in SUNWjcs3f.

If the locale is set to ja_JP.UTF-8, jpostprint supports 6400 and less characters for UDC font, and the characters that can be supported in Japanese EUC for other fonts.




This document was created by man2html, using the manual pages.
Time: 02:39:22 GMT, October 02, 2010