On Thursday 03 April 2008 16:57:36 Bo Peng wrote: > To unbundle, you have to know the original path, right?
Only if it is not external, right? Because you said that we should not unbundle external files. You said this before I am just checking. > If you do not > want to see these path when editing in embed mode, this can certainly > be done (easily). We are simulating an internal file system, so it seems reasonable to show the internal file system. But this I agree that this is an implementation detail. > > You have recognized that the update of an embedded file should be a > > rare case. I defend that this should be outside of lyx design. I am > > saying also that this can be done simple in an external layer (no pun > > intended), the python library that I have referred. > > If you are talking about 'update from external file' of an embedded > inset, this is done after lyx gets started, and I do not see a reason > to call python for this simple task. You are proposing to add the original external file path in order to allow a later update. This information is only useful for the computer where the file was created. You are proposing to put this information in the lyx file and as I said before we could put this information at the same level as the session stuff because as the session stuff it only makes sense in the original computer. If we put the original file in the lyx file we are leaking information that we should not, none should care about the original file location other than the author. > Please note that embedded files > will be used when they are embedded, and external files are ignored. > If you move your .lyx file to another system with different external > files, lyx should *not* produce different results. This is the whole > point of embedding. I want to be produce a .lyx file that can be > opened *directly* by anyone on *any OS*, without any change to his > lyx/latex system (no installation of .layout and .cls), and produce > *identical* output when compiled. I agree with this part, my violent disagreement is above. > Bo -- José Abílio