Re: [PATCH] Embedding feature of lyx.

2007-07-31 Thread Helge Hafting
Bo Peng wrote: No, because the file could be ../a/nameclash.eps (or maybe I misunderstand something). I did not use subdirectories mainly because I am afraid of absolute pathnames. For example, /path/a/A.lyx having figure /path1/b/figure.eps. I do not know how to save figure.eps in the zip

Re: [PATCH] Embedding feature of lyx.

2007-07-31 Thread Bo Peng
> No, because the file could be ../a/nameclash.eps (or maybe I > misunderstand something). I did not use subdirectories mainly because I am afraid of absolute pathnames. For example, /path/a/A.lyx having figure /path1/b/figure.eps. I do not know how to save figure.eps in the zip file. Bo

Re: [PATCH] Embedding feature of lyx.

2007-07-31 Thread Jean-Marc Lasgouttes
Helge Hafting <[EMAIL PROTECTED]> writes: > I see. But wouldn't it be simpler to just store the subdirectory > then? Zip supports subdirectories, and then you don't > need to program "name mangling". With bad luck, there > might be a _l_nameclash.eps file too, occuring before > or after the b/nam

Re: [PATCH] Embedding feature of lyx.

2007-07-31 Thread Helge Hafting
Bo Peng wrote: Will it be possible to add child documents as well? Assuming you get the permissions, of course. It is not considered now, but I will see what I can do later. With separate .lyx files, you can open a child document without loading the master one. Embedding child documents wi

Re: [PATCH] Embedding feature of lyx.

2007-07-30 Thread Georg Baum
Andre Poenitz wrote: > I have only the semi-broken document, no recipe how it was produced. > Just saving and re-loading the UserGuide compressed and uncompressed > seems to work, though. It might be an iostreams bug. I mentioned at http://bugzilla.lyx.org/show_bug.cgi?id=3631 that the iostreams

Re: [PATCH] Embedding feature of lyx.

2007-07-30 Thread Georg Baum
Andre Poenitz wrote: > On Mon, Jul 30, 2007 at 06:38:29PM +0200, Georg Baum wrote: >> Andre Poenitz wrote: >> >> > Has anybody changed anything related to compression in, say, the two >> > years leading to 1.5.0rc2? >> >> Yes. gzstream has been replaced by some boost thing. > > Do you remember

Re: [PATCH] Embedding feature of lyx.

2007-07-30 Thread Andre Poenitz
On Mon, Jul 30, 2007 at 06:38:29PM +0200, Georg Baum wrote: > Andre Poenitz wrote: > > > Has anybody changed anything related to compression in, say, the two > > years leading to 1.5.0rc2? > > Yes. gzstream has been replaced by some boost thing. Do you remember when approximately? > IIRC the bo

Re: [PATCH] Embedding feature of lyx.

2007-07-30 Thread Andre Poenitz
On Mon, Jul 30, 2007 at 11:30:44AM -0500, Bo Peng wrote: > > Has anybody changed anything related to compression in, say, the two > > years leading to 1.5.0rc2? > > Not that I remember. > > > I was sent a corrupted 'packed' lyx file created with 1.5.0rc2. > > > > I've never seen such a thing befo

Re: [PATCH] Embedding feature of lyx.

2007-07-30 Thread Georg Baum
Andre Poenitz wrote: > Has anybody changed anything related to compression in, say, the two > years leading to 1.5.0rc2? Yes. gzstream has been replaced by some boost thing. IIRC the boost thing supports more compression formats than gzip. Maybe it is not correctly configured and simply produces

Re: [PATCH] Embedding feature of lyx.

2007-07-30 Thread Bo Peng
> Has anybody changed anything related to compression in, say, the two > years leading to 1.5.0rc2? Not that I remember. > I was sent a corrupted 'packed' lyx file created with 1.5.0rc2. > > I've never seen such a thing before and considered the packing > a pretty robust and transparent process s

Re: [PATCH] Embedding feature of lyx.

2007-07-30 Thread Andre Poenitz
On Mon, Jul 30, 2007 at 10:48:33AM +0200, Helge Hafting wrote: > Bo Peng wrote: > >Dear all, > > > >Embedded please find an improved version of the embedding patch. To > >test this patch, please unpack zlib-1.2.3 source package to the top > >source directory of lyx and use 'scons' to build lyx. I w

Re: [PATCH] Embedding feature of lyx.

2007-07-30 Thread Bo Peng
> > > This looks very interesting - one wishlist item done > already! This will be a good feature to have, but make it work in every cases is tricky so a lot of testing is needed. > > 1. Graphics, listings, bib file etc can be embedded into the .lyx file. > > > Will it be possible to add child do

Re: [PATCH] Embedding feature of lyx.

2007-07-30 Thread Helge Hafting
Bo Peng wrote: Dear all, Embedded please find an improved version of the embedding patch. To test this patch, please unpack zlib-1.2.3 source package to the top source directory of lyx and use 'scons' to build lyx. I would appreciate it if someone can add autotools support so that more people ca