On Wed, 2007-09-19 at 08:28 +0100, José Matos wrote:
> On Tuesday 18 September 2007 21:45:07 Bo Peng wrote:
> > Remember, if you have file.lyz and file.lyx in the same directory,
> > unpacking file.lyz will overwrite file.lyx. You also have to decide if
> > you want to save file.lyx along with file.lyz if you edit file.lyx and
> > then enable embedding. A single extension is easier to understand.
> 
>   At least to me this is a secondary argument. :-)

I have been deliberately keeping out of this stuff, but I would like to
point out that there was a thread back in late 2002 in which all this
stuff came up. Back when use of XML was being debated, I suggested that
we could use gzip for compression and then it wouldn't matter if the
tags were long or short as the file size would be about the same.

The use of .lyx.gz or .lyz was debated although I forget the outcome.

I think .lyx.gz makes perfect sense to anybody who looks at it. They can
take a stack of .lyx files they haven't needed for a while and gzip them
legitimately. They can for whatever reason do the reverse. Just as long
as the correct datestamp is written into the .gz so gunzip will keep the
right stamp on the unpacked file (or is it better to omit this?). The
filename shouldn't be written or if it was renamed, gunzip might change
it back.

I think in the case of unpacking, the user should be warned if an
overwrite is taking place, just as for File->Save As or File->Save if it
was externally modified.

Have fun,
Darren

Reply via email to