[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texmacs-dev] Re: texmacs 1.0.1.10 and gs, one more thing
From: |
Martin Costabel |
Subject: |
[Texmacs-dev] Re: texmacs 1.0.1.10 and gs, one more thing |
Date: |
Thu, 08 May 2003 22:54:41 +0200 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4a) Gecko/20030401 |
Joris van der Hoeven wrote:
I plan to use the timeout command as a temporary fix;
Sorry for not having been able to participate in this discussion more
attentively: On MacOSX this temporary fix doesn't work, there is no
'timeout' command. I haven't seen any equivalent command either.
However, I found something, starting from Michèle's observation that
some ps files are not blocking. What I found sounds crazy, but I have
tested it.
If one replaces the first line in the ps file, something like
%!PS-Adobe-2.0 EPSF-2.0
just before the file is processed by ghostscript, by
%!PS-Adobe-3.0
then it works! Note the version and the absence of EPSF.
Since this claim is a bit outrageous and I don't have an explanation
(except that I suspect the somewhat simplistic function
encapsulate_postscript()), I hope that others can confirm.
For the Fink package, I made version 1.0.1.13-1 with the following
patch. Please test.
--- TeXmacs-1.0.1.13-src/src/Window/X/x_drawable.cc~ Tue May 6
16:37:36 2003
+++ TeXmacs-1.0.1.13-src/src/Window/X/x_drawable.cc Thu May 8
22:00:38 2003
@@ -413,7 +413,6 @@
url temp_name= url_temp ();
save_string (temp_name, nice_ps, true);
string cmd= "tm_gs";
- if (gs_type == 2) cmd= "timeout -s 9 2 " * cmd;
system (cmd, temp_name);
remove (temp_name);
if (N(ps_figs_nr) == 0) ps_figs_last_gc= texmacs_time ();
--- TeXmacs-1.0.1.13-src/misc/scripts/tm_gs~ Wed May 7 12:32:27 2003
+++ TeXmacs-1.0.1.13-src/misc/scripts/tm_gs Thu May 8 22:01:52 2003
@@ -1,2 +1,4 @@
#!/bin/sh
+sed '1s,.*,%\!PS-Adobe-3.0,' "$@" > "address@hidden"
+mv "address@hidden" "$@"
exec gs -q -sDEVICE=x11 -dNOPAUSE -dSAFER "$@" -c quit
--
Martin
- [Texmacs-dev] Re: texmacs 1.0.1.10 and gs, one more thing, Joris van der Hoeven, 2003/05/01
- [Texmacs-dev] Re: texmacs 1.0.1.10 and gs, one more thing, David Allouche, 2003/05/01
- [Texmacs-dev] Re: texmacs 1.0.1.10 and gs, one more thing,
Martin Costabel <=
- Re: [Texmacs-dev] Re: texmacs 1.0.1.10 and gs, one more thing, Michèle Garoche, 2003/05/08
- Re: [Texmacs-dev] Re: texmacs 1.0.1.10 and gs, one more thing, Martin Costabel, 2003/05/08
- Re: [Texmacs-dev] Re: texmacs 1.0.1.10 and gs, one more thing, Michèle Garoche, 2003/05/09
- Re: [Texmacs-dev] Re: texmacs 1.0.1.10 and gs, one more thing, Martin Costabel, 2003/05/09
- Re: [Texmacs-dev] Re: texmacs 1.0.1.10 and gs, one more thing, Michèle Garoche, 2003/05/10
- Re: [Texmacs-dev] Re: texmacs 1.0.1.10 and gs, one more thing, Martin Costabel, 2003/05/11
- Re: [Texmacs-dev] Re: texmacs 1.0.1.10 and gs, one more thing, Michèle Garoche, 2003/05/11
- [Texmacs-dev] gif license, David Allouche, 2003/05/11
- Re: [Texmacs-dev] gif license, Martin Costabel, 2003/05/11
- Re: [Texmacs-dev] gif license, Michèle Garoche, 2003/05/11