> 1/ if it is not done already, support for reading/writing compressed
> lyx files should be removed: it has no interested wrt .zip file
> version.

I agree. It does not make sense to keep two compressed version. I am
not sure if lyx2lyx decompress compressed lyx file though.

> 2/ is the new zip base version designed such that a "file" utility can
> guess its type based on the first few characters of the binary file?
> It could be doable if the first file (the manifest?) is stored instead
> of deflated.

Yes. It is a regular zip file. It is not easy to get .lyx or manifest
version without unzipping it first though.

> 3/ another option would be to make sure that the .lyx file is first,
> so that utilities like zcat can read them transparently like gzipped
> files (not sure about the utility of that though).

This is a good idea but I am not sure if python/zipfile can read the
first few bytes of the first file easily.

> 4/ I really thing that we should change the extension for bundles (I
> like .lyz personally).
>
>   a) it allows for automatic processing of files
>   b) when an end-user receives a .lyz file, he knows that everything
>   needed is in there. With a .lyx file it is expected that some things
>   are missing.

If we remove the compression feature, this makes sense. Still, what
about my 'open file.lyx, enable embedding, save to file.lyz' scenario?
This looks weird to me.

> 5/ if we want our bundle format to be useful, it should have a
> directory form (if possible compatible with OSX bundles). The big
> advantage is that such files could be possibly put under version
> control. We do not have to do that right now, but the design should
> reflect this need.

It is there.

> BTW, is there a place where the format of a LyX bundle is defined? A
> wiki page would be nice.

Right now, the bundle format of file.lyx is
file.lyx
manifest.txt (a pseudo-XML format)
embed1.png (file that is under the same directory with file1.lyx)
sys1.png (file that is out side of document directory)
dir/embed2.png (file that is under the document directory)

> These things are important, since we are going to live with this file
> format, and we should do it right since the first time.

Agreed.

Bo

Reply via email to