Document 327

Selecting the Interpretive or Non-interpretive PostScript graphics filter

Version: 3.0 - Scientific WorkPlace & Scientific Word

SWP/SW ships with two different versions of the third party PostScript graphics filter. The default graphics filter is known as the Interpretive PostScript filter. This is because the filter attempts to interpret the PostScript commands in the graphics file to construct the image that is used on the screen and printer. The other filter is known as the Non-interpretive PostScript filter since it does not attempt to interpret the PostScript commands. The Interpretive PostScript filter was selected as the default filter since it did a better job with the sample graphics available to us before SWP/SW was released. However, for some particular PostScript graphics, the Non-interpretive filter does a better job. Unfortunately, there is not an interface available to allow selecting the graphics filter.

Follow the instructions below to select the PostScript graphics filter. Note that the graphics filter is selected in two different places: in the SWP/SW editing environment and by the TrueTeX Previewer. Separate steps are needed to select the graphics filter for each.

Selecting the Non-interpretive PostScript filter for SWP/SW

  1. If SWP/SW is running, exit the program.

  2. Use an ASCII editor to open the initial configuration file, which is in the program directory (the default program directory for SWP is c:\swp30; for SW, c:\sw30). The configuration file name is swp-pro.ins for SWP and sciword.ins for SW.

  3. Skim the file to identify the group header lines (enclosed in square brackets) and group content lines.

  4. Add the new group header and group content lines:

    [GraphicsImport]

    GfxImpType.0017=Encapsulated

    Postscript,G,imps_2.flt,I,ImageStream,.eps

    Do not insert these lines inside existing group content lines.

  5. Find the lines:

    [Installation]

    MoveToIniDbase=0

    and change them to:

    [Installation]

    MoveToIniDbase=1

  6. Save the file configuration file.

  7. Start SWP/SW. The information in the configuration file will be moved to the appropriate location in the Windows registry.

Selecting the Non-interpretive PostScript filter for the TrueTeX Previewer

The PostScript filter used by the TrueTeX Previewer is determined by the file. Download TCISPECHwithNON-InterpretivePostScriptFilter.INI and save it using the name tcispech.ini in the SWP/SW program directory (c:\swp30 for SWP; c:\sw30 for SW).

Returning to the Interpretive PostScript filter for SWP/SW

  1. If SWP/SW is running, exit the program.

  2. Use an ASCII editor to open the initial configuration file, located in the program directory for the program (c:\swp30 for SWP; c:\sw30 for SW) The configuration file name is sciword.ins for SW and swp-pro.ins for SWP.

  3. Add a semicolon in front of the line you had previously added and add a new line so the file contains:

    [GraphicsImport]

    ;GfxImpType.0017=Encapsulated Postscript,G,imps_2.flt,I,ImageStream,.eps

    GfxImpType.0017=Encapsulated Postscript,G,impsi2.flt,I,ImageStream,.eps

    In the future, to change between the filters change the location of the semicolon. The name of the filter containing "i2" is the interpretive graphics filter.

  4. Find the lines:

    [Installation]

    MoveToIniDbase=0

    and change them to:

    [Installation]

    MoveToIniDbase=1

  5. Save the file configuration file.

  6. Start SWP/SW. The information in the configuration file will be moved to the appropriate location in the Windows registry.

Returning to the Interpretive PostScript filter for the TrueTeX Previewer

Download TCISPECHwithInterpretivePostScriptFilter.INI and save it using the name tcispech.ini in the SWP/SW program directory (c:\swp30 for SWP; c:\sw30 for SW). This is the same file that is on the SWP/SW 3.0 CD in the directory containing the installed version of SWP/SW (for SWP the directory is d:\swp30 and for SW it is d:\sw30 where d: is the letter of your CD drive).

Testing the selected graphics filter

Download the test document RogerFox.rap. The document includes an Encapsulated PostScript graphics image that contains two parts, a bitmap image and a PostScript image. The non-interpretive PostScript graphics filter will display "TIFF PORTION" at the bottom of the graphics and the interpretive PostScript graphics filter will display the "PostScript Part" at the bottom of the graphics.

Related articles

The graphics filters have been updated since the release of SWP/SW 3.0. A patch update is available. See Patch update for SWP/SW 3.0 graphics filters if you have not already installed this update.

You can also use the techniques described in the article Problem with EPS files in V3.0 to print only the PostScript portion of an Encapsulated PostScript graphics.

Revised 10/15/99,; 06/18/02

This document was created with Scientific WorkPlace.