[SciPy-user] xplt.eps question/problem?

baecker at physik.tu-dresden.de baecker at physik.tu-dresden.de
Sat Mar 15 14:58:32 EST 2003


Finally I found the reason for the error:

On Fri, 14 Mar 2003, Travis Oliphant wrote:

> > Just for completeness: the ps2epsi script starts with
> >
> > #!/bin/sh
> > # $RCSfile: ps2epsi,v $ $Revision: 1.4.2.2 $
>
> This looks new enough.  The error you are getting looks like something I
> was getting a while ago.  What version of ghostscript to you have

gs -v gives
GNU Ghostscript 7.05 (2002-04-22)
Copyright (C) 2002 artofcode LLC, Benicia, CA.  All rights reserved.

> (ps2epsi just runs ghostscript)?   Maybe your version of ps2epsi is too
> new :-)

Hmm, not sure - it is just the ps2epsi which comes with the ghostscript
in debian testing.

However, (to come to something positive):
using ps2epsi from the CVS of www.ghostscript.com
( Version # $Id: ps2epsi,v 1.9 2002/02/21 21:49:28 giles Exp $,
to be found under gs/lib) I don't get an error anymore.
Interestingly, the difference between the two versions is minor,
see the diff below.
At first sight one might think that it is
the encapsulation of ${infile} via "${infile}".
However, it is just a missing space in front
of the "-e" of ps2epsi (in the CVS version several spaces
are used to make the code line up nicely).

So anyone seeing this error hopefully can fix this by
just adding this space...

BTW: the noepsi=1 version is (for my example) 17KB in size
and the one with noepsi=0, i.e. the default,
is 280KB, quite a difference!

Many thanks,

Arnd

-----------------------------

diff ps2epsi ps2epsi_noncvs
2c2
< # $Id: ps2epsi,v 1.9 2002/02/21 21:49:28 giles Exp $
---
> # $RCSfile: ps2epsi,v $ $Revision: 1.4.2.2 $
18,22c18,22
<         *.ps)         base=`basename "${infile}" .ps` ;;
<         *.cps)        base=`basename "${infile}" .cps` ;;
<         *.eps)        base=`basename "${infile}" .eps` ;;
<         *.epsf)       base=`basename "${infile}" .epsf` ;;
<         *)            base=`basename "${infile}"` ;;
---
>         *.ps)         base=`basename ${infile} .ps` ;;
>         *.cps)        base=`basename ${infile} .cps` ;;
>         *.eps)        base=`basename ${infile} .eps` ;;
>         *.epsf)       base=`basename ${infile} .epsf` ;;
>         *)            base=`basename ${infile}` ;;
29c29
< ls -l "${infile}" |
---
> ls -l ${infile} |
52c52
<       ' U="$USERNAME$LOGNAME"  F=1 - F=2 "${infile}" >$tmpfile
---
>       ' U="$USERNAME$LOGNAME"  F=1 - F=2 ${infile} >$tmpfile
54c54
< gs -q -dNOPAUSE -dSAFER -dDELAYSAFER -r72 -sDEVICE=bit
-sOutputFile=/dev/null $tmpfile ps2epsi.ps $tmpfile <"${infile}" 1>&2
---
> gs -q -dNOPAUSE -dSAFER -dDELAYSAFER -r72 -sDEVICE=bit
-sOutputFile=/dev/null $tmpfile ps2epsi.ps $tmpfile <${infile} 1>&2
64c64
< cat "${infile}" |
---
> cat ${infile} |
66c66
<       -e '/^%%[A-Za-z][A-Za-z]*[^!-~]*$/d' -e '/^%%[A-Za-z][A-Za-z]*:
/d'
---
> -e '/^%%[A-Za-z][A-Za-z]*[^!-~]*$/d' -e '/^%%[A-Za-z][A-Za-z]*: /d'
74c74
< ) >> "${outfile}"
---
> ) >> ${outfile}




More information about the SciPy-User mailing list