Bo Peng wrote:
Dear list,
Because I get no objection to the design of the embedding feature of
lyx, I plan to add it to the trunk in the next few weeks. There is,
however, a big question on how to zip and unzip files.
There is a unzipFile function in src/support/filetools.cpp which calls
'gunzip -c'. I am not sure how lyx distributes gunzip and I doubt if
it works under windows.
gzip is the standard on unix - any machine capable of running
LyX is extremely likely to have gzip/gunzip/zlib already. (And if not,
getting
gzip is easier than installing LyX anyway.)
Any distro that package LyX can simply add a dependency in their
package management system.
I believe zip is more common on windows, but you can't depend
on it being present there. A unix machine doesn't necessarily have zip.
If a minimal amount of stuff to distribute is a goal, then gzip/zlib
seems the
way to go: It is likely there on unix, and on windows you have to
distribute software no matter what compression you choose.
Supporting both is also an option - depending on what
compression sw the user have. Of course we don't need more
than one compression scheme for LyX own sake. So this
would be for those who find it useful to occationally unpack
a compressed LyX file manually.
Helge Hafting