> > 1. In bundled mode, do you create filename.lyz or > > filename.lyxdir/content.lyx when you create a new file and save? > > > My proposal, following JMarc, was that bundled mode is separate from > compressed mode. So it depends upon whether we're creating a compressed > bundle or not. If it's supposed to be compressed, then we save filename.lyz; > otherwise, it's just filename.lyxdir/ and its attendant stuff.
I think people (Enrico, Abdel?) have suggested that there is no 'bundled' mode so 'create a file in bundled mode' is a false question to start with. Basically, users should work as usual, and save in bundled format (as another file), and they need to unbundle the file (possibly outside of lyx) explicitly before they start working in the old plain text fashion. You have not had an opinion on this yet. Note that Enrico's approach has only plain-text filename.lyx and filename.zip which is not opened directly by lyx. Also, as JMarc suggested, it may not do any good to have two formats, bundled and unbundled (1.5.x), and he suggested that we always use the bundled directory format. Do you agree with him? If you disagree, you are facing the ugly plain text <-> strcuture conversion problem. If you agree, all current lyx files have to be converted to either a binary file, or a directory in 1.6.x. Now, you do not want to touch the current inset code so all external files should be available, and users should see these external files. That is to say, InsetGraphics:figure.png should have a file filename.lyxdir/figure.png available once it is inserted. Also, users should learn that, once a file figure.png is inserted, he should modify filename.lyxdir/figure.png, not the original file. What I wanted to say is that filename.lyxdir should always exist and expose to users. Suppose you have an option for 'compress' which is turned off. You will only save filename.lyxdir/ . This is my first concern. I have not seen *any* program that, when it is asked create a file or save a file, a directory is created and saved. And I have not seen any program to open a directory for editing. It is not only a QtFileOpenDialog problem, it is a user expectation problem. Suppose you have this 'compress' option turned on. You will have filename.lyz *and* filename.lyxdir/blah under the directory. With filename.lyz being the compressed version of that directory. This is sort of weird to me but maybe acceptable. Just note that, using my approach, there is no file copy, and users work as usual. When the file is save in bundled format, only filename.lyx is saved in zip format with external files embedded. The external files themselves are not changed. This is already complicated so I will stop here, and wait for your response and for others to evaluate this behavior. Edwin, Abdel, I have tried to shorten the discussions so please express your opinions here. Cheers, Bo