On Thu, 15 May 2008, rgheck wrote:
Unless such a directory exists, in which case it'll be moved to a new
empty directory, just as on your proposal. But of course, if you think
something else should happen, it could.
Now, when I turn on 'compression', what will happen to
$DOC_DIR/filename.lyxdir?
Nothing. Indeed, filename.lyx will still exist, and it will still be
usable with filename.lyxdir. LyX is not in the business of deleting such
things.
This seems wrong to me from a user's perspective. If I did a 'save as
compressed', I could see why I get another "file". But if I just 'enable
compression', I wouldn't want more files... Another question, do you
enable compression, or do you enable wrapping?
All of this makes perfect sense if you understand the difference between
bundling and wrapping. If you don't, then I'm sure it's very puzzling
indeed.
Since I was puzzled, I searched the wiki page for "wrapping" and found
something you had written which I think helped:
A bundle is just a LyX file with an associate directory that
contains the bundled files. Wrapping the bundle is zipping it, or
tarring it, or base64 encoding it, or whatever. If you're not
wrapped, then you have access to the files almost as normal. If
you are, then you don't. So if you are wrapped, then you have no
more access than under Bo's proposal, though of course you could
unzip/untar/unwhatever the file, do as you wish with it, and then
rezip/reetc it. But, if you wanted, you could do that with Bo's
too. It'd take five minutes to write a script to do it---actually,
I'd hope someone would---but, as someone said, you can also open a
LyX file in a text editor and do as you wish. That's the nature of
the game.
I think it'd be good if you copied a modified version of this to the
beginning of your alternative. I could do it, be I'm not 100% sure I've
got it right. Here's a quick interpretation:
* A (unwrapped) bundle equals a .lyx-file and an associated directory
(.lyxdir) that contains the bundled files. These two typically reside in
the user's file area.
* A wrapped bundle is a compressed archive of an unwrapped bundle, e.g.
zip-archive of an unwrapped bundle.
Not sure it's the best, but I think having something like this in the
beginning of the description would help.
/Christian
--
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr