Professional Documents
Culture Documents
*
*/
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
NOTE:
Ghostscript installation will almost always require the user
to set an environment variable called GS_LIB. If you don't
set this variable, GS will most likely abort on start-up.
GS_LIB should be equated to a comma separated list of
directories that contain the PostScript startup files,
the Ghostscript fonts, and (optionally) the Ghostscript
help files. See below for more details.
GHOSTSCRIPT OVERVIEW:
PostScript is a programming language whose executable statements draw
an image on a page. It is not an image format like GIF or JPG, which
contain (compressed) information about the pixels of a bitmapped image
at some specific resolution. PostScript programs may give
resolution-independent descriptions of an image, and they may also
contain resolution-dependent bitmaps.
Aladdin Ghostscript 3.33 is a PostScript language interpreter which is
free to non-commercial users (the kernel is written and maintained by
Peter Deutsch -- ghost@aladdin.com). It can be used to convert
PostScript files into bitmapped formats suitable for non-PostScript
printers, or to display PostScript files on the screen. It is also
quite nice for PostScript code development. Beginning with version
3.33, Ghostscript can also display files formatted in Adobe's Portable
Document Format, or PDF.
If you are used to using GIF and JPG viewers, the behavior of
Ghostscript may seem a little strange. For example, the pages of
multiple page documents can generally be viewed only in sequential
order. Moving back to a previous page would amount to jumping
backwards in the program. There are ways around this limitation, but
they are awkward. Ghostscript does not behave like other file viewers
because it is NOT a file viewer. It is a program language interpreter
(like a BASIC interpreter).
The binary distribution of the Atari release contains an executable,
the PostScript support files, the help files, and the default font
(Courier). GS searches for the support files in all directories
contained in the comma-separated list assigned to the GS_LIB
environment variable. The default value for GS_LIB is
".,f:\gs\help,f:\gs\ps,f:\gs,f:\gs\fonts". To avoid potential filename
conflicts, the path to the help files may be specified separately by
the GS_HELPDIR environment variable.
The Atari port of GS consists of the standard Unix source code, plus a
few files that handle Atari-specific functions. The Atari source code
is available for ftp from
ftp://lifshitz.ph.utexas.edu/pub/atari/ghostscript/3.33/gs333s.zoo. The
standard source code and the remainder of the fonts for 3.33 (you can
use the old fonts if you want) are available from ftp.cs.wisc.edu.
This site can be accessed from the Atari Ghostscript WWW page at
http://godel.ph.utexas.edu/Members/timg/gs.html. You should be aware
that most of the Ghostscript font set is not very good. If you need
high-quality text output, you may want to buy a commercial font set,
or restrict yourself to the few GS fonts which are of high quality.
USAGE:
To use Ghostscript:
1) To display a file on the screen, either:
a.) Type 'gs file1.ps file2.ps ...' on the command line. The
default device is the screen at 80 dpi. You can specify (with
the -r option) as much resolution as you have memory for, but
it may take forever to construct your image. Filenames can be
omitted and opened later from within the program.
b.) Double-click on gs.gtp, and provide any parameters you like
in the dialog box.
GS will open a console window, and will write some initialization
messages to it. The mouse will turn to a busy bee while GS is
creating a bitmap of the image. If you are using the screen
(stvdi) device, an image window will eventually open and the
image will be displayed (this can take a long while for complicated
files or high resolutions). You can then scroll around the image
using the scroll bars or the cursor keys.
Further files can be viewed by clicking on the "Open" menu
item and choosing the desired file with the file selector.
Usually the last postscript command on a PS page will be
"showpage". The showpage command causes the page to be displayed
and then waits for the user to enter a <return> before proceeding
to the next page. When all pages have been displayed, GS displays
a GS> prompt in the console window. Postscript commands typed in
the console window will then be executed by the PS interpreter. For
example, typing "(file.ps) run" after the prompt will cause
file.ps to be displayed.
PostScript files need not be specified on the GS
You can double-click on gs.gtp, or install gs to
executed by double-clicking on PostScript files.
inside GS, you can use the menu items to perform
like selecting the page size, the output device,
image resolution.
command line.
be automatically
Once
operations
and the
deskjet
djet500
cdj500
cdj550
Generic HP DeskJet,
HP DeskJet 500,
H-P DeskJet 500C (same as cdjcolor)
HP DeskJet 550C/560C,
laserjet
ljetplus
ljet2p
ljet3
ljet4
Generic HP LaserJet,
HP LaserJet Plus,
HP LaserJet 2P,
HP LaserJet 3P,
HP LaserJet 4P,
bj10e
bj200
epson
eps9high
epsonc
ap3250
st800
necp6
pbm
pbmraw
pgm
pgmraw
ppm
ppmraw
Portable
Portable
Portable
Portable
Portable
Portable
5.) The following environment variables are specific to the Atari port
of GS. See use.doc for standard environment variables (like
GS_LIB).
GS_WIN: Set this to "off" to disable windows. Otherwise the value of
this variable is ignored.
GS_HELPDIR: This is a comma-separated path to search for the Atari
Ghostscript help files.
GS_DISPLAY: Set this to "chunky8" to tell GS that your screen hardware
uses chunky pixel format. I don't think any graphics boards
actually use this format, but if they do, this will allow GS
to skip two image format transformations and save some time.
Otherwise GS will transform GS's native chunky format to standard
GEM color planes, and then transform back to chunky format for
display.
GS_DEBUG: This is used by me during debugging. I doubt it is of interest
to anyone else. Setting it to "gdebug" will cause some debugging
output to be printed to the console.
KNOWN BUGS, LIMITATIONS and POSSIBLE PROBLEMS:
See the doc files for some known bugs and problems.
1.) 24-bit color has not been tested; it may not work properly.
2.) Control-C to abort printing is not handled very gracefully.
3.) Fatal errors are still not handled gracefully. An alert is used to
keep the console window from closing before the error message
can be read, but the alert itself may cover some of the error
message.
4.) The CEN: output option may not work properly on some STEs and TTs.
I think this bug is now fixed, but am not sure.
5.) Programs which take control of the printer port can interfere with
Ghostscript's Atari SLM laser printer device. Also, you
should have the latest Diablo emulator to avoid output
problems under MultiTOS.
TIPS:
Here are a few miscellaneous tips.