How to read psfixed Mathematica-generated postscript files with IslandDraw 
Author Message
 How to read psfixed Mathematica-generated postscript files with IslandDraw

About a week ago I posted a request about how to make IslandDraw 2.1 read postscript
files generated by Mathematica 1.2 . I got inumerous replies, basically all
suggesting I use psfix to fix the postscript file. This is what I had done but
didn't make clear in my previous posting. The postscript file I want IslandDraw
to read  is self-contained (it prints and ghostscript can read it). IslandDraw is
not a full fledged postscript interpreter but it can read "good" postscript files.
Unfortunately it seems the Mathematica-generated postscript file is very complex
(specially the MathScale thing). Thus, short of stripping off almost everything
in the file, is there anything I can do to modify the postscript file to something
more conforming (and readable by IslandDraw) ?

I did tried the program "distill" but it failed as well.
The only thing that worked was to run Mathematica in a Tektronix 4014 window
and then dump the graphics to a file, use ps4014 (which is part of the Transcript
package) to convert it to a postscript file, which can then be read by IslandDraw.

Thus if anyone has any suggestions (like how to modify the postscript prologue as
it is done by{*filter*}people to get MacIntosh-generated postscript files to work with
LaTex/psfig) I'd like to hear.

Also, if someone has Mathematica 2.0, I would appreciate getting a sample
(psfixed) postscript file (of say, a sine function) so I can see if IslandDraw
can read it. If the postscript prologue hasn't been modified since version 1.2
of Mathematica, then there is no point in sending me such a file.

I was going to use Maple V, but it can't even calculate the numerical values
of my function (a confluent hypergeometric function like M(1,3/2,z) ).

Thanks.

    Roque Oliveira



Sun, 31 Oct 1993 06:18:07 GMT  
 How to read psfixed Mathematica-generated postscript files with IslandDraw

    *  About a week ago I posted a request about how to make
    *  IslandDraw 2.1 read postscript files generated by
    *  Mathematica 1.2 . I got numerous replies, basically all
    *  suggesting I use psfix to fix the postscript file. This is
    *  what I had done but didn't make clear in my previous
    *  posting. The postscript file I want IslandDraw to read  is
    *  self-contained (it prints and ghostscript can read it).

    *  IslandDraw is not a full fledged postscript interpreter but
    *  it can read "good" postscript files.
Somebody from Island Graphics `ought to be' replying to this.
However, to the best of my out of date knowledge, IslandDraw
does NOT contain a PostScript Interpreter.  IslandDraw's
predecessor, SunDraw, could read a limited subset of
ENCAPSULATED POSTSCRIPT -- that is PostScript containing a
preview image.  It is the preview image section that IslandDraw
(SunDraw) would display, with the result that every user then
leapt to the monstrous non-sequitor that IslandDraw contains a
PostScript Interpreter.

    *  Unfortunately it seems the Mathematica-generated postscript
    *  file is very complex (specially the MathScale thing). Thus,
    *  short of stripping off almost everything in the file, is
    *  there anything I can do to modify the postscript file to
    *  something more conforming (and readable by IslandDraw) ?

You didn't say WHY IslandDraw could not `read'
Mathematica-generated PostScript.  Does IslandDraw display any
messages?  Does it simply die?  Does it reject the
Mathematica-generated PostScript?   SunDraw used to expect to
import EPSF 1.2 format.  I don't know if IslandDraw was upgraded
to import EPSF 2.0 format.  What does the IslandDraw manual say
about EPSF?  In general, if a program designed to read
Encapsulated PostScript can't, the Encapsulated PostScript is
bogus in some way.  Remember that there are two versions of
Encapsulated PostScript for every application programmer
generating the stuff.

        ........  Henry



Tue, 02 Nov 1993 01:03:18 GMT  
 How to read psfixed Mathematica-generated postscript files with IslandDraw

Quote:


>    *  About a week ago I posted a request about how to make
>    *  IslandDraw 2.1 read postscript files generated by
>    *  Mathematica 1.2 . I got numerous replies, basically all
>Somebody from Island Graphics `ought to be' replying to this.
>However, to the best of my out of date knowledge, IslandDraw
>does NOT contain a PostScript Interpreter.  IslandDraw's

Hi Henry,

Longtime nosee.

Yes, I'm afraid your knowledge *is* out of date. IslandDraw
does contain a PS interpreter in addition to the EPS support you
go on to discuss.

Quote:
>    *  Unfortunately it seems the Mathematica-generated postscript
>    *  file is very complex (specially the MathScale thing). Thus,
>    *  short of stripping off almost everything in the file, is
>    *  there anything I can do to modify the postscript file to
>    *  something more conforming (and readable by IslandDraw) ?

We looked into this problem and indeed found a problem with this
conversion. We ran some tests on some Mathematica files we generated
here and found the following workaround.

To solve your current problem:

Rather than running the conversion from within IslandDraw run the
filter from the command line. The filter is called ps-to-vec and may
be found in $IOFFICE/bin. The command should take the form:

ps-to-vec <infile> > <outfile>.

After running the conversion, edit the outfile. Go to the last line
and add one more close paren. You should now be able to open outfile as
an IslandDraw file.

We are about to release our new version 3.0 with color. In this release
we have rewritten the interpreter in C. It solves this problem
and includes some other fixes. It also addresses a larger domain of
PostScript, is faster, and converts color.

If you have any more problems, drop me and e-mail along with the problem
files and I'll see what we can do.

Gordon Kio

Product Design Manager
Island Graphics
{sun,ucbcad,uunet}!island!gordon



Sat, 06 Nov 1993 03:18:19 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Can IslandDraw read Mathematica postscript files ?

2. Postscript files generated under Windows NT not read by Ghostview 1.5 (UNIX)

3. Postscript file by Mathematica, help!

4. how to import Mathematica postscript files into Island Graphics

5. CID fonts: ghostscript can't read Postscript generated by Adobe acroread

6. Need Library to read and generate EPS files.

7. Modifying EPS files using IslandDraw/Xfig?

8. LIMITATIONS OF POSTSCRIPT INTERPRETER IN MATHEMATICA?

9. printing from mathematica to non-postscript printer with gs

10. Cropping a postscript graphic in Unix -how? (Mathematica)

11. Help w/Mathematica/Postscript/LaTeX

12. Mathematica Postscript output

 

 
Powered by phpBB® Forum Software