home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / gnu / gs252b.lzh / GS252B / README.ST < prev    next >
Text File  |  1993-07-30  |  13KB  |  288 lines

  1. GS 2.52, REVISION 0 FOR THE ATARI ST:
  2.  
  3. GHOSTSCRIPT OVERVIEW:    11/92
  4.  
  5. Ghostscript is the GNU project's postscript language interpreter.  It
  6. can be used to convert postscript files into formats suitable for
  7. non-postscript printers, or to display postscript files on the screen.
  8. The last Atari version was 2.41 revision 1.
  9.  
  10. GS 2.52 was compiled with gcc 2.2.2 and mintlibs PL 24. Using the
  11. mintlibs has apparently eliminated the odd incompatiblilty that
  12. programs compiled with the ordinary libs have exhibited in the
  13. past.
  14.  
  15. Version 2.52 added as standard some functionality which was already
  16. available in the ST version of 2.41.  Because of this, the manner in
  17. which the user specifies the size of a "band-printing" buffer has
  18. changed.  Another major feature is the ability to select the page size
  19. from the command line.  These changes make gemGS 1.2 somewhat
  20. incompatible with GS 2.52.  You should use gemGS 1.3 with 2.52,
  21. especially if you want to use the new page-sizing feature.
  22.  
  23. Here is a brief overview of the remaining atari-specific features:
  24.  
  25. 1.) The stvdi screen device supports 2, 4, and 8 bit color, although I
  26. have not yet had enough feedback to determine whether 8-bit color
  27. works properly on any hardware.  The vdi routines are used to
  28. determine the screen parameters and to copy to the screen, so graphics
  29. should work on lots of different screen devices.  Unfortunately, the
  30. color driver is very slow, since I implemented in the
  31. most-obvious-way-to-get-it-to-work tradition. Some bugs in Ghostscript's
  32. 2 and 4 bit color routines are scheduled to be fixed in 2.6, and at
  33. that point I will try to implement an assembler image transformation
  34. algorithm that someone sent me. That may speed things up a bit.
  35.  
  36. Color mapping has been fixed somewhat since 2.41. GS now searches
  37. the available palette for the color nearest to the one it wants.
  38. In 4-color resolutions, the resulting color may not be very close,
  39. but if you are running GS with windows, you can change the colors
  40. in the palette (using the control panel) to match the image.
  41.  
  42. Also, the screen driver should now adjust properly for the aspect
  43. ratios of different screens.
  44.  
  45. In Atari 2.41 revision 1, support for windows was added to the screen
  46. driver.  The driver consults the environment variable GS_WIN to
  47. determine how windows will be handled.  If GS_WIN is unset, then no
  48. windows are used.  If GS_WIN=interact, images are printed in windows,
  49. but text mode is re-entered after each page.  This is to ensure that
  50. the screen will be in the right mode when GS enters interactive mode.
  51. I know of no way to tell from within GS which page is the last, so I
  52. have to enter text mode after every page.  Finally, if GS_WIN=batch,
  53. images are printed in windows, but text mode is never entered.  This
  54. mode is useful when it is certain that GS will neither require input
  55. from stdin nor send output to stdout.  Batch mode is used in gemGS, a
  56. gem shell for Ghostscript.  Unfortunately, in batch mode, anything
  57. written to stderr will obliterate the nice GEM screen. One day I may
  58. get around to redirecting stdin, stdout, and stderr to a window, but
  59. it hasn't been done yet.
  60.  
  61. The window that the image is printed in is a standard GEM window,
  62. with all of the standard gadgets. Everything operates in the
  63. normal fashion, except for the arrow buttons in the scroll bars.
  64. These normally scroll one line, which makes little sense for an
  65. image. So, I used these buttons for "top of page", "bottom of page",
  66. etc.
  67.  
  68. 2.) There are two ways to send output directly to the printer.
  69. Including '-sOUTPUTFILE=PRN:' on the command line will send output to
  70. the centronics port via gemdos.  The option '-sOUTPUTFILE=CEN:' will
  71. write output directly to the centronics port.  The routines for direct
  72. printer output were contributed by Chris Strunk (CS-TeX)--THANKS!
  73. Direct centronics output is generally much faster (about a factor of 4
  74. for heavy graphics). For some unknown reason, the CEN: option does
  75. not work properly on some STEs and TTs. This is on my list of problems
  76. to look at.
  77.  
  78. 3.) ST-GS no longer recoginzes the nonstandard command line option
  79. '-c<clist_size>' to specify the size of the buffer for band printing.
  80. The new option is '-dBufferSize=<clist_size>'.  See use.doc.  If you
  81. don't have enough ram to hold the complete bitmap of the image, you
  82. can specify that the image be constructed in bands of size
  83. 'clist_size' (in bytes).  If the BufferSize option is absent, GS uses
  84. a default buffer of 100K for images which are larger than the
  85. available memory.
  86.  
  87. 4.) Marcus Haebler has written a GEM image device and a 360dpi
  88. NEC P6 device. THANKS MARKUS!
  89.  
  90. The number of available drivers has increased to the point that it is
  91. not feasible to include all that an ST owner might reasonably use.
  92. The current choice of 20 drivers was decided mostly by a vote of GS
  93. users on the internet (a couple were included at my whim).  Type
  94. 'gs -h' for a list of the available drivers.
  95.  
  96. stvdi    - The screen device. Supports 1, 2, 4, and 8 bit color,
  97. slm      - Atari SLM laser printer (thanks to Robert Stabl),
  98. gemimg   - GEM bitmap format (thanks to Marcus Haebler),
  99. djet500  - HP DeskJet 500,
  100. djet500c - Color HP DeskJet 500,
  101. laserjet - HP LaserJet,
  102. bj10e    - Cannon BubbleJet,
  103. epson    - Epson 9 and 24 pin printers (limited resolutions),
  104. eps9high - High resolution Epson 9-pin device (makes multiple passes),
  105. epsonc   - Color epson printers,
  106. necp6     - NEC 360 dpi printer,
  107. gifmono  - GIF monochrome bitmap format,
  108. gif8     - GIF 8-bit color format,
  109. pbmraw   - Mono portable bitmap format,
  110. ppmraw   - Color portable bitmap format,
  111. dfaxhigh - G3 fax format, high res,
  112. dfaxlow  - G3 fax format, low res,
  113. filter   - Filter device,
  114. dps      - Display postscript (partial implementation),
  115. level2   - Level 2 postscript (partial implementation).
  116.  
  117. Apparently the display postscript and level 2 postscript are only
  118. partial implementations.  I am not able to test most of these devices,
  119. so I cannot say how well they work (if at all).
  120.  
  121. The binary distribution contains the executables, a bunch of postscript
  122. support files, some relevant docs, and the default Ghostscript font.
  123. Since the changes to the standard Unix GS source are now trivial, I
  124. have included the source files specific to the ST in the same archive.
  125.  
  126. The standard source and fonts for 2.52 (you can use the old fonts if
  127. you want) are available from prep.ai.mit.edu and its mirror sites, and
  128. a good number of other sites which carry unix source code.
  129.  
  130.  
  131. MINIMUM CONFIGURATION:
  132.  
  133. I run ghostscript on a 4M 520ST with an 85M hard drive and a
  134. monochrome monitor, so it is hard for me to estimate a minimum
  135. hardware configuration.  The executable is now > 300K, so it is
  136. unlikely that it will run on a 512K machine.  1M is a tight squeeze,
  137. but it seems to be possible.  Keep in mind that a 300dpi image
  138. requires a little over 1M of memory, so high resolution printing
  139. requires either lots of memory or band printing.  Color is a real
  140. memory hog, due to some limitiations of GS, so you may have to
  141. decrease the resolution for color images (screen images cannot be
  142. printed in bands).
  143.  
  144. GS also runs on TT's, although probably not as fast as it would if it
  145. was compiled specifically for the 68030.  I leave it to someone else
  146. to compile GS for the TT.  Compilation is just too damn slow on my ST.
  147. The stvdi screen device should work in all ST resolutions, TT high, TT
  148. medium, and perhaps TT low.
  149.  
  150. You can probably get by without a hard drive if you are willing to use
  151. only the ghostscript default font.  The font files take up about 2-1/4
  152. Meg of disk space.  For graphics, the default font is fine, but text
  153. will be ugly.
  154.  
  155.  
  156. INSTALLATION:
  157.  
  158. Ghostscript searches a default path '.,f:\gs,f:\gs\ps,f:\gs\fonts' for
  159. the initialization files and the fonts.  To change this, define the
  160. environment variable GS_LIB to be a COMMA separated path for
  161. ghostscript to search.  If you specify file paths on the command line,
  162. you may use either '/' or '\' as a path separator.
  163.  
  164. To install:
  165.  
  166. 1) Copy gs252b.zoo to the desired directory (f:\gs to use the default
  167.     search path).
  168.  
  169. 2) Unpack the archive with 'zoo e// gs252.zoo'
  170.     If you want the gs directory to be somewhere besides f:\gs,
  171.     define the environment variable GS_LIB to be a comma
  172.     separated search path which contains the files in the
  173.     'ps' and 'fonts' directories.
  174.  
  175. USAGE:
  176.  
  177. To use ghostscript:
  178.  
  179. 1) Type 'gs -r<width>x<height> file.ps' on the command line. Width
  180.     and height are normally in pixels, but for the screen device
  181.     they are interpreted as DPI. If the height is omitted, the
  182.     argument to -r will be used for both the width and height.
  183.     The default device is the screen at 80 dpi. You can specify
  184.     as much resolution as you have memory for, but it may take forever
  185.     to construct your image.
  186.  
  187.     Wait a while for the image to appear on the screen (this can be
  188.     a long while for complicated files or high resolutions). You can
  189.     use the cursor keys to scroll around the image. Press the <help>
  190.     key for more info on the screen driver. Type <Q> to return to the
  191.     GS interpreter. Then you can type PostScript commands to your
  192.     heart's content.  Type 'quit' or <^D> to exit GS.
  193.  
  194.     If the environment GS_WIN is set to one of the values mentioned
  195.     above, then the image will be displayed in a GEM window. In this
  196.     case, you can move around the image with the scroll bars or the
  197.     cursor keys. Look in the "About Stvdi" menu entry for a summary
  198.     of available operations.
  199.  
  200. 2) To get a printer device, type 'gs -sDEVICE=deskjet file.ps' for a
  201.     deskjet, 'gs -sDEVICE=epson file.ps', etc. Type gs -h for a
  202.     list of available printer devices. I defined an alias for the
  203.     one that I use, i.e. "alias gsdj 'gs -sDEVICE=deskjet' " The
  204.     printer output will be written in a file called 'gs_pr.XXX',
  205.     where XXX is a unique number. See the docs for other ways to
  206.     select a device or to see which devices are installed. Output
  207.     can be redirected to a file of your choosing, or to the printer
  208.     with the '-sOutputFile=' option. The option
  209.     '-sOutputFile="|lpr"' will pipe GS output to lpr running under
  210.     MiNT. OutputFile=PRN: or CEN: will send output directly to
  211.     the printer port (CEN: prints faster, but is less compatible).
  212.  
  213. 3) Send the file 'gs_pr.XXX' to the printer. Since it is a binary
  214.     graphics file, you will need a print utility which does
  215.     NOT try to add carriage returns and such at ends of lines.
  216.     I wrote a small program to print these files, called 'bpr'.
  217.     It was intended for a DeskJet, but it apparently works
  218.     reasonably well with other printers. Bpr is available from
  219.     lifshitz.ph.utexas.
  220.  
  221. KNOWN BUGS, LIMITATIONS and POSSIBLE PROBLEMS:
  222.  
  223. See the doc files and gs252.bugs for some known bugs and problems.
  224. 8-bit color may not work properly.
  225.  
  226. TIPS:
  227.  
  228. Here are a few miscellaneous tips.
  229.  
  230. 1) Read the supplied documentation! There isn't much, but it is helpful
  231.     and it is quicker than sending me questions. Use.doc is the
  232.     most important file for casual users.
  233.  
  234. 2) You can change the ghostscript prompt by editing the gs_init.ps file.
  235.     Search the file for GS or >, and then change this to whatever you
  236.     want the prompt to be. Many other changes can be made in this
  237.     file to alter the behavior of GS. For example, you can redefine
  238.     the 'showpage' command so that it doesn't wait around for a
  239.     CR to be typed after every page.
  240.  
  241. 3) There is a Unix newsgroup called gnu.ghostscript.bug, which you
  242.     may want to have a look at--also comp.languages.postscript.
  243.  
  244. 4) The ps directory contains some files on which to test ghostscript.
  245.     These are some of the files that where used to test the port.
  246.     Don't run escher.ps at 300 (or 360) dpi unless you have lots
  247.     of time to waste.
  248.  
  249. 5) GS can be used to view or print the output of dvips. The combination
  250.     of TeX, dvips, and GS can be used to preview TeX documents (or
  251.     PS output from word processors) on the screen at high resolution
  252.     (if you need this sort of thing and have the memory). I have gone
  253.     up to 300dpi and it seems to work OK. Dvips also allows PS
  254.     graphics to be easily included in TeX documents.
  255.  
  256. 6) There is now a graphical interface to GS, called gemGS. You may
  257.     find it useful if you hate typing command lines. Also, gemGS
  258.     allows the selection of individual pages from large documents,
  259.     although this feature is rather slow. GemGS 1.2 is compatible
  260.     with GS 2.41, and gemGS 1.3 is intended for GS 2.52.
  261.  
  262. ACKNOWLEDGMENTS:
  263.  
  264. Many kind people have contributed to the Atari version of Ghostscript.
  265. Some of the more direct contributions are:
  266.  
  267. Hauke Hess:    Original screen driver upon which stvdi is based,
  268. Robert Stabl:    The Atari SLM driver,
  269. Chris Strunk:    Contributed code for direct centronics printing,
  270. Marcus Haebler:    360 dpi NEC P6 and GEM image drivers,
  271. J. Bammi:    For gcc, and numerous library bug fixes.
  272.  
  273. Please forgive me if I forgot to mention an important contribution.
  274.  
  275.  
  276. FOR MORE INFO:
  277.  
  278. The original source files, docs, and fonts can be obtained from
  279. many places. I obtained the ones I used from 'ftp.uu.net'.
  280.  
  281. Send bug reports to:
  282.  
  283. Tim Gallivan
  284. Center for Relativity
  285. University of Texas
  286. Austin, TX
  287. timg@landau.ph.utexas.edu
  288.