home *** CD-ROM | disk | FTP | other *** search
- Program Description:
-
- This is an OS/2 2.0 port of the GNU GhostScript 2.5.2 with a Presentation
- Manager driver (Version 1.1 by Jim Yang).
-
- This version:
-
- 1. Is gray scale only.
-
- 2. Can redraw properly after it has been minized or covered by
- another window, and then exposed.
-
- 3. Can accept character input from the drawing window (mainly used
- to send carriage return to the GhostScript interpreter to go to
- the next page), so that you can always keep the drawing window
- in front.
-
- 4. Is compiled with the following drivers:
- os2pm epson eps9high bj10e deskjet djet500 laserjet ljetplus
- ljet2p ljet3 cdeskjet cdjcolor cdjmono paintjet pjetxl gifmono
- gif8 dfaxhigh dfaxlow. (Note that I have not tested any driver
- other than os2pm, gifmono, and gif8.)
-
- The program consist of two executables: gsos2a.exe and gsos2b.exe.
- Gsos2a.exe contains three threads: two of them perform stdin for GhostScript,
- and the third performs stdout/stderr. Gsos2b.exe contains two threads: one
- redraws the window when it needs to, and the other is the GhostScript
- interpreter itself. Named pipes are used to communicate between the two
- executables.
-
- Proposed Directory: (for storage on hobbes)
-
- os2/2.0/gnu
-
-
- New feature of 1.1
- -------------------
- 1. Fixes the bug that sometimes causes the command window to hang after
- you exit GS, and introduces a new 'feature' - NOW YOU MUST PRESS
- 'RETURN' AFTER GS EXITS TO GET THE COMMAND PROMPT BACK. As of this
- writing, I am unable to get rid of this 'feature'.
- 2. Makes updating of the drawing window smoother.
- 3. Adds dfaxhigh and dfaxlow device driver.
- -------------------
-
-
- ********************** VERY IMPORTANT *************************************
- This port of GhostScript was compiled with emx 0.8e, and requires the
- following dll's:
-
- emx.dll emxio.dll emxlibc.dll
-
- HOWEVER, THE EMXLIBC.DLL THAT COMES WITH EMX 0.8E CONTAINS A BUG IN FUNCTION
- FREXP, WHICH PREVENTS GHOSTSCRIPT FROM BEING ABLE TO DISPLAY FONTS. THE
- EMXLIBC.DLL THAT COMES WITH THIS ARCHIVE IS A CORRECTED VERSION; THEREFORE
- YOU MUST USE THIS DLL WITH GHOSTSCRIPT. THIS APPLIES TO ALL THE DRIVERS
- (PM, LASERJET, GIF8, ETC).
-
- As usual, put the dll's in a directory that's in your LIBPATH.
- *****************************************************************************
-
- To use the program:
-
- 1. Edit the file gsos2.cmd file. Set the position of the drawing
- window with the environment variable gsos2_pos. Syntax:
-
- gsos2_pos=X Y WIDTH HEIGHT,
-
- where (X,Y) is the lower left corner of the window, and WIDTH and
- HEIGHT are the width and height of the window, NOT including the
- width and height of the window border. The values 352 2 442 572
- are ok if you have a 800 x 600 display. Also, set the environment
- variable gs_lib to tell GhostScript were the initialization files
- (gs_init.ps, gs_fonts.ps, etc) are.
-
- Set the environment variable gsos2_dpi. Syntax:
-
- gsos2_dpi=Xdpi Ydpi,
-
- where Xdpi = WIDTH / (paper width in inches), and Ydpi = HEIGHT /
- (paper height in inches). For example, if you specify 442 as
- WIDTH and 572 as HEIGHT for gsos2_pos, and you want use the
- drawing window to preview 8.5 inch X 11 inch drawings, then
- Xdpi = 442 / 8.5 = 52 and Ydpi = 572 / 11 = 52. GhostScript
- produce better results for halftone patterns (dithering)
- when you make Xdpi = Ydpi.
-
- 2. Type 'gsos2' from a windowed os2 session. Type
-
- gsos2 "-sDEVICE=gif8"
-
- to select the gif8 device. Note the quotes around
- -sDEVICE=gif8.
-
- To terminate the program: type 'quite' or double click on the ghost icon
- on the upper left hand corner of the drawing window.
-
- You can type commands when either the command window or the drawing window
- has the input focus. However, the drawing window accepts only simple
- characters, including carriage return and backspace, but not characters
- like tab. The ability of the drawing window to take input is mainly
- intended for passing carriage return to the GS interpreter in response to
- the "showpage, press <return> to continue" prompt, and for issusing simple
- commands like "(tiger.ps) run". Since the inputs to the
- command window and inputs to the drawing window are maintained by differents
- threads with different charater buffers, you should finish typing a complete
- line (punctuated by carriage return) before switching to the other window.
- For example, you should not start typing a line into the command window, and
- subsequently switch and type the rest of the line into the drawing window.
-
-
- Optional:
-
- 1. Add a program object to one of your folders that points to the
- file 'gsos2.cmd', and then attach the ghost.ico icon (included
- with this archive) to the program object. Then you can drag
- and drop a PostScript file over the ghost icon and GS will
- automatically display that file.
-
- 2. Edit the file "fontmap" so that GS uses the .pfb fonts in your
- \psfonts directory. For example, append the line
-
- /Helvetica (d:/psfonts/helv.pfb);
-
- to the end of "fontmap", and GS will use d:/psfonts/helv.pfb
- whenever it needs the Helvetica font. Note: GS cannot read
- the Times-Roman font in the \psfonts directory.
-
- Remember, use forward slashes to separated directories - ie, use
- "(/apps/gs/tiger.ps) run" to preview the file 'tiger.ps'.
-
- So far, gsos2pm11 works correctly with all of my PostScript files. If
- you find one that won't work, first test it with other drivers, like gif8.
- Then, send me email with a transcript of the GhostScript messages and a copy
- of the PostScript file if it's not too large (> 10k); if the file is too
- large to transmitt by email, tell me where I can ftp it (with anonymous ftp)
- or send me a diskette (I'll keep the diskette, thanks).
-
-
- Jim Yang
- MS 128-95
- California Institute of Technology,
- Pasadena, CA 91125
-
- email address: jyang@daedalus.caltech.edu
-