Can anyone send me a fig file that can be changed by lib/scripts/fig_copy.sh?

2006-06-27 Thread Bo Peng
as subject, or instructions on how to make one. Thanks. Bo

Re: Can anyone send me a fig file that can be changed by lib/scripts/fig_copy.sh?

2006-06-27 Thread Enrico Forestieri
On Tue, Jun 27, 2006 at 04:37:00PM -0500, Bo Peng wrote: > as subject, or instructions on how to make one. I don't know if fig_copy.sh is supposed to handle the example I am attaching here, but I can't make it work neither in 1.4.2 nor in 1.5.0 (the picture dosn't show in the dvi output). -- Enr

Re: Can anyone send me a fig file that can be changed by lib/scripts/fig_copy.sh?

2006-06-27 Thread Bo Peng
I don't know if fig_copy.sh is supposed to handle the example I am attaching here, but I can't make it work neither in 1.4.2 nor in 1.5.0 (the picture dosn't show in the dvi output). Under linux, using lyx -dbg graphics, I can see that the figure is converted by convertDefault.py, and displayed

Re: Can anyone send me a fig file that can be changed by lib/scripts/fig_copy.sh?

2006-06-27 Thread Enrico Forestieri
On Tue, Jun 27, 2006 at 07:39:42PM -0500, Bo Peng wrote: > >I don't know if fig_copy.sh is supposed to handle the example I am > >attaching here, but I can't make it work neither in 1.4.2 nor in 1.5.0 > >(the picture dosn't show in the dvi output). > > Under linux, using lyx -dbg graphics, I can s

Re: Can anyone send me a fig file that can be changed by lib/scripts/fig_copy.sh?

2006-06-27 Thread Enrico Forestieri
On Wed, Jun 28, 2006 at 03:22:54AM +0200, Enrico Forestieri wrote: > Curiously enough, it works on windows... I am baffled... This is the .fig file copied by lyx to tmpdir on windows: $ cat /tmp/lyx_tmpdir932MFYflb/lyx_tmpbuf0/0_c_work_rose.fig #FIG 3.2 Produced by xfig version 3.2.5-alpha5 Por

Re: Can anyone send me a fig file that can be changed by lib/scripts/fig_copy.sh?

2006-06-27 Thread Enrico Forestieri
On Wed, Jun 28, 2006 at 03:42:01AM +0200, Enrico Forestieri wrote: > So, it seems that fig_copy.sh is not working on solaris. I suspect that > it is due to the fact that sh is the Bourne shell on solaris instead of > bash (as it is on linux and cygwin). Confirmed. I renamed fig_copy.sh as fig_cop

Re: Can anyone send me a fig file that can be changed by lib/scripts/fig_copy.sh?

2006-06-27 Thread Bo Peng
It seems that windows is not the only platform which will benefit from the change sh -> python ;-) Then, please try the attached patch. Bo Index: lib/scripts/fig_copy.py === --- lib/scripts/fig_copy.py (revision 0) +++ lib/scripts/

Re: Can anyone send me a fig file that can be changed by lib/scripts/fig_copy.sh?

2006-06-28 Thread Enrico Forestieri
On Tue, Jun 27, 2006 at 09:53:16PM -0500, Bo Peng wrote: > >It seems that windows is not the only platform which will benefit > >from the change sh -> python ;-) > > Then, please try the attached patch. Yep, it works ;-) -- Enrico

Re: Can anyone send me a fig file that can be changed by lib/scripts/fig_copy.sh?

2006-06-28 Thread Enrico Forestieri
On Wed, Jun 28, 2006 at 10:22:38AM +0200, Enrico Forestieri wrote: > On Tue, Jun 27, 2006 at 09:53:16PM -0500, Bo Peng wrote: > > > >It seems that windows is not the only platform which will benefit > > >from the change sh -> python ;-) > > > > Then, please try the attached patch. > > Yep, it wo

Re: Can anyone send me a fig file that can be changed by lib/scripts/fig_copy.sh?

2006-06-28 Thread Bo Peng
However, note that on native windows /dir/filename is not an absolute path and the script would fail to replace it with the full path. OK. The updated script (will be committed soon) uses a more complicated algorithm, and handles this situation as well. I.e, cygwin/*nix: $ cat rose.fig #FIG 3.