Re: Please help improve the embedding feature.

2007-09-04 Thread Alfredo Braunstein
Bo Peng wrote: >> No, I want to have compressed files (.gz or .zip, I don't care) but >> without being forced to embed all figures inside. > > Document -> Embedded Files -> Enable Embedding. Select all emdedded > files -> select 'External'. You will get a zip file with file.lyx and > manifest.txt

Re: Please help improve the embedding feature.

2007-09-04 Thread José Matos
On Tuesday 04 September 2007 16:53:59 Bo Peng wrote: > I see. Please allow me to more or less finish the embedding feature > before we polish it. There are tones of undecided issues with this > feature. OK. One advantage of placing everything in the main lyx file is that you can have a compr

Re: Please help improve the embedding feature.

2007-09-04 Thread Bo Peng
> That is either we go with the previous lyx way or we go full odf where each > section is a file in the upper directory. And sooner or later we need to > tackle the lyx2lyx subject. I see. Please allow me to more or less finish the embedding feature before we polish it. There are tones of undec

Re: Please help improve the embedding feature.

2007-09-04 Thread José Matos
On Tuesday 04 September 2007 16:27:36 Bo Peng wrote: > Because a) I do not want to mess with lyx2lyx now, I knew that. :-) > b) this does not really belong to the main document. > This is why ODF also has this manifest file. Then if want to do this you should rename the main file content.lyx

Re: Please help improve the embedding feature.

2007-09-04 Thread Bo Peng
> I understand this. What I do not understand is why this is an external file > and not a section of the main file header. Because a) I do not want to mess with lyx2lyx now, b) this does not really belong to the main document. This is why ODF also has this manifest file. Bo

Re: Please help improve the embedding feature.

2007-09-04 Thread José Matos
On Tuesday 04 September 2007 16:06:56 Bo Peng wrote: > All bundled files have this manifest.txt and this fact is used to > judge if a file is in bundled format. In this particular case, all > embedded files will be listed in this manifest.txt, with status > 'EXTERNAL'. Then, next time when this fil

Re: Please help improve the embedding feature.

2007-09-04 Thread Bo Peng
On 9/4/07, José Matos <[EMAIL PROTECTED]> wrote: > On Tuesday 04 September 2007 15:29:20 Bo Peng wrote: > > Document -> Embedded Files -> Enable Embedding. Select all emdedded > > files -> select 'External'. You will get a zip file with file.lyx and > > manifest.txt. > > Why do we need this manif

Re: Please help improve the embedding feature.

2007-09-04 Thread José Matos
On Tuesday 04 September 2007 15:29:20 Bo Peng wrote: > Document -> Embedded Files -> Enable Embedding. Select all emdedded > files -> select 'External'. You will get a zip file with file.lyx and > manifest.txt. Why do we need this manifest.txt? It seems redundant to me. > Bo -- José Abílio

Re: Please help improve the embedding feature.

2007-09-04 Thread Bo Peng
> No, I want to have compressed files (.gz or .zip, I don't care) but without > being forced to embed all figures inside. Document -> Embedded Files -> Enable Embedding. Select all emdedded files -> select 'External'. You will get a zip file with file.lyx and manifest.txt. Bo

Re: Please help improve the embedding feature.

2007-09-04 Thread Alfredo Braunstein
Jean-Marc Lasgouttes wrote: > Alfredo Braunstein <[EMAIL PROTECTED]> writes: > >>> So you agree that, if .zip embedding is implemented, compressed lyx >>> file has no big enough advantage to justify its existence? Or you want >>> to add bzip2-compressed lyx files and rot13 versions too? >> >> As

Re: Please help improve the embedding feature.

2007-09-04 Thread Jean-Marc Lasgouttes
Alfredo Braunstein <[EMAIL PROTECTED]> writes: >> So you agree that, if .zip embedding is implemented, compressed lyx >> file has no big enough advantage to justify its existence? Or you want >> to add bzip2-compressed lyx files and rot13 versions too? > > As long as we don't lose the ability to h

Re: Please help improve the embedding feature.

2007-09-03 Thread Alfredo Braunstein
Jean-Marc Lasgouttes wrote: > José Matos <[EMAIL PROTECTED]> writes: > >> On Monday 03 September 2007 13:34:52 Jean-Marc Lasgouttes wrote: >>> Are you getting nervous about 126 bytes? > >> Surely not, but you asked for one advantage and I gave it. ;-) > > So you agree that, if .zip embedding is

Re: Please help improve the embedding feature.

2007-09-03 Thread Jean-Marc Lasgouttes
José Matos <[EMAIL PROTECTED]> writes: > On Monday 03 September 2007 13:34:52 Jean-Marc Lasgouttes wrote: >> Are you getting nervous about 126 bytes? > Surely not, but you asked for one advantage and I gave it. ;-) So you agree that, if .zip embedding is implemented, compressed lyx file has no b

Re: Please help improve the embedding feature.

2007-09-03 Thread José Matos
On Monday 03 September 2007 13:34:52 Jean-Marc Lasgouttes wrote: > Are you getting nervous about 126 bytes? > > JMarc Surely not, but you asked for one advantage and I gave it. ;-) -- José Abílio

Re: Please help improve the embedding feature.

2007-09-03 Thread Jean-Marc Lasgouttes
José Matos <[EMAIL PROTECTED]> writes: >> At lot of people who do not understand the .lyx format, appreciate to >> be able to change \alpha to \beta throughout the file. > > That is orthogonal to our discussion. If people do not use compress or > embedded they will still be able to do that as t

Re: Please help improve the embedding feature.

2007-09-03 Thread Jean-Marc Lasgouttes
José Matos <[EMAIL PROTECTED]> writes: > On Saturday 01 September 2007 15:31:28 Jean-Marc Lasgouttes wrote: >> >> Cite one advantage of compressed vs zipped. > > Compression rate. You asked. ;-) > > Compare gzip -9 with zip. :-) So: pegase: gzip -c9 UserGuide.lyx >ug.lyx.gz pegase: zip -9 ug

Re: Please help improve the embedding feature.

2007-09-03 Thread Pavel Sanda
> I think that we can distribute a set of tools to work outline with zip > and btw one of the nice features of .odt is that you can use just unzip to look into without anything special to download/learn. pavel

Re: Please help improve the embedding feature.

2007-09-03 Thread José Matos
On Saturday 01 September 2007 15:30:47 Jean-Marc Lasgouttes wrote: > José Matos <[EMAIL PROTECTED]> writes: > >> Because this feature more or less duplicates with embedding, and if we > >> decide to go with .lyz for lyx bundle format, .lyx will always be a > >> plain text file. > > > > I think th

Re: Please help improve the embedding feature.

2007-09-01 Thread José Matos
On Saturday 01 September 2007 15:31:28 Jean-Marc Lasgouttes wrote: > > Cite one advantage of compressed vs zipped. Compression rate. You asked. ;-) Compare gzip -9 with zip. :-) > JMarc -- José Abílio

Re: Please help improve the embedding feature.

2007-09-01 Thread Andre Poenitz
On Sat, Sep 01, 2007 at 04:30:47PM +0200, Jean-Marc Lasgouttes wrote: > José Matos <[EMAIL PROTECTED]> writes: > > >> Because this feature more or less duplicates with embedding, and if we > >> decide to go with .lyz for lyx bundle format, .lyx will always be a > >> plain text file. > > > > I th

Re: Please help improve the embedding feature.

2007-09-01 Thread Jean-Marc Lasgouttes
José Matos <[EMAIL PROTECTED]> writes: > LyX supports compressed files in a clean way, so let us leave that way. > I don't want to appear rude but we should be very cautious about removing > features, and in this case the feature is well written and robust. How many > bug reports did we had ab

Re: Please help improve the embedding feature.

2007-09-01 Thread Jean-Marc Lasgouttes
José Matos <[EMAIL PROTECTED]> writes: >> Because this feature more or less duplicates with embedding, and if we >> decide to go with .lyz for lyx bundle format, .lyx will always be a >> plain text file. > > I think that the dos time is gone long ago and a lyx suffix should stand > for > lyx f

Re: Please help improve the embedding feature.

2007-09-01 Thread Bo Peng
> I think that the dos time is gone long ago and a lyx suffix should stand for > lyx files no matter what the internal format used. This can be done easily later after you and JMarc (and others) reach an agreement. I personally like a unique .lyx extension, even if compression is removed. > > Y

Re: Please help improve the embedding feature.

2007-09-01 Thread José Matos
On Saturday 01 September 2007 03:14:11 Bo Peng wrote: > Because this feature more or less duplicates with embedding, and if we > decide to go with .lyz for lyx bundle format, .lyx will always be a > plain text file. I think that the dos time is gone long ago and a lyx suffix should stand for ly

Re: Please help improve the embedding feature.

2007-08-31 Thread Bo Peng
On 8/31/07, José Matos <[EMAIL PROTECTED]> wrote: > On Friday 31 August 2007 18:02:13 Bo Peng wrote: > > 1. remove of the compression feature (Jose, JMarc?) > Why? > LyX supports compressed files in a clean way, so let us leave that way. > I don't want to appear rude but we should be very caut

Re: Please help improve the embedding feature.

2007-08-31 Thread Richard Heck
José Matos wrote: e) embed layout file f) modules g) latex classes There's a very general solution to this: Write the ENTIRE layout to a single file and them embed that. This is not hard conceptually. It just needs the work to be done. The only thing you really need is a Tex

Re: Please help improve the embedding feature.

2007-08-31 Thread José Matos
On Friday 31 August 2007 18:02:13 Bo Peng wrote: > 1. remove of the compression feature (Jose, JMarc?) >   a) lyx2lyx convert: decompress file >   b) remove menu item and read/write of compressed file in Buffer.cpp. >   c) remove boost iostreams and gzstream Why? LyX supports compressed files

Please help improve the embedding feature.

2007-08-31 Thread Bo Peng
Dear all, The core and basic gui of the embedding feature is there. Lot of things need to be done before this feature becomes usable. I can do them slowly, but experts in related areas are certainly welcome to jump in and help me implement them in a more efficient and elegant manner. 1. remove of