XPREV(1) — NEWS-OS Programmer’s Manual
NAME
xprev − Ditroff previewer for X
SYNOPSIS
xprev [ −option ...] [ file ...]
DESCRIPTION
xprev shows 1/16 compressed image (100dpi) of ditroff output to X-window.
If no file argument is given, the standard input is read. An argument consisting of a single minus (−) is taken to be a file name corresponding to the standard input.
Input file should be a intermediate file which is generated by ditroff.
OPTIONS
−help This option indicates that a brief summary of the allowed options should be printed on the standard error.
−size size This option specifies that ditroff output pages of size size. size can be specified as any one of the following.
sizeDescriptionSize in Dots
a3 or a3pA3 portrait1129 ∗ 1613
a3lA3 landscape1613 ∗ 1129
a4 or a4pA4 portrait 785 ∗ 1130
a4lA4 landscape1129 ∗ 785
b4 or b4pB4 portrait 977 ∗ 1401
b4lB4 landscape1393 ∗ 969
b5 or b5pB5 portrait 677 ∗ 969
b5lB5 landscape 969 ∗ 677
And you can specify the direction of the page as ´p´ (portrait) or ´l´ (landscape). If you omit both ´p´ and ´l´, ´p´ is assumed.
If neither −b4 nor −size size is specified, page size is A4 by default.
−b4 This option indicates that page size is B4. This is the same as a specification for −size of b4 or b4p.
−bg color This option specifies the color to use for the background of the window. The default is “white.”
−bd color This option specifies the color to use for the border of the window. The default is “black.”
−bw number This option specifies the width in pixels of the border surrounding the window.
−fg color This option specifies the color to use for the foreground of the window. The default is “black.”
−geometry geometry
This option specifies the preferred size and position of the preview window. For details, see X(1).
−display display
This option specifies the X server to contact. For details, see X(1).
−vs This option specifies that the CGI stroke font be used for the display of Japanese.
−dir directory Specifies the directory to be created a temporary file for storing internal data. If this option is omitted, internal data is stored on memory. It is useful for a large input data which can’t be stored on memory.
USAGE
Documents previewed using xprev can be manipulated using the mouse and keyboard as follows.
FORWARD PAGE
Press the right mouse button or ’f’ key to display the following page. You can forward several pages at once by specifying the desired number of pages to skip prior to above operation.
Does nothing on the last page.
BACK PAGE Press the left mouse button or ’b’ key to display the previous page. You can go back pages at once by specifying the desired number of pages to skip prior to above operation.
Does nothing on the first page.
GOTO PAGE Enter the desired page number and press a return key or enter key to go to a specific page.
SCROLL Press the middle mouse botton with shift key pressed. The screen scrolls as you drag a hand shaped cursor.
QUIT Press ’q’ key to quit the program.
MENU Press the middle mouse button to display a menu. Release the mouse button on the item corresponding to the desired action. Actions are available as shown below.
[look above]Shows higher parts of the page
[look left]Shows parts of the page further left
[look right]Shows parts of the page further right
[look below]Shows lower parts of the page
[prev page]Shows previous page
[next page]Shows next page
[quit]Quits the previewer
Any other keys will cancell the number of pages to skip if it has been set (described above).
X DEFAULTS
xprev uses the routine XGetDefault(3X11) to read defaults. Accordingly, corresponding resource names are all capitalized.
BorderWidth Specifies the border width of the window.
BorderColor Specifies the border color of the window.
Foreground Specifies the foreground color.
Background Specifies the background color.
Size Specifies the size and location of the window. Use the same notation as size in −size option. For example, “b4” sets the page size to B4.
ENVIRONMENT
DISPLAY Gets the default host name and display number.
XENVIRONMENT
Gets the name of the resource file that overrides the global resources stored in the RESOURCE_MANGER property.
FILES
/usr/sony/lib/font/devnwp533/CRT/sm∗
Alpha-Numeric font files
/usr/sony/lib/font/devnwp533/G1[01247].font
Kanji Gothic bitmap font files
/usr/sony/lib/font/devnwp533/M1[01247].font
Kanji Mincho bitmap font files
/usr/sony/lib/font/devnwp533/{Mincho,Gothic}.vfont
Kanji vector (frame) font files
/usr/sony/lib/font/devnwp533/{pmt,dn}/∗
Kanji outline font files (multi font sets)
/usr/sony/etc/fonttab
Font information file for outline fonts
/usr/sony/lib/font/vsfont32
CGI stroke font file
SEE ALSO
J.F.Ossanna Nroff/Troff User’s Manual
B.W.Kernighan, A Troff Tutorial
ditroff(1), eqn(1), nroff(1), pic(1), a3pic(1), tbl(1)
BUGS
CGI stroke font file is based on JIS C6226-1978. In the case of previewing by using −vs option etc., rule line elements and some characters are not displayed.
NOTES
xprev shows the whole image on the page size specified with −size option; however, some portions of the image may not be printed due to the margin specified by the printer used.
NEWS-OSRelease 4.1C