On 08. des. 2010 16:29, Pavel Sanda wrote:
Enrico Forestieri wrote:
On Wed, Dec 08, 2010 at 03:47:30PM +0100, Vincent van Ravesteijn wrote:
"C:\Documents\chapters\first\firstsection\test.lyx"
"C:\UnrelatedPath\test\images\large\color\test.jpg" ?
Should we now have a relative path
"..\..\..\..\UnrelatedPath\test\images\large\color\texst.jpg" ? This
doesn't really make sense.
Why not? The only case where it does not make sense is
i guess that then we will get yet another complaints that somebody
copys&pasted image, put the document somewhere else and pictures
stopped to work because they were no more absolute...
This is up to the user, I believe.
If they enter an absolute path, then an absolute path should be stored.
And it will work as they move the document file around with 'mv' or some
file manager. And it will fail if the document (and graphics) is copied
to some other PC in another directory, or it will fail if the
document+graphichs is moved. (Perhaps by moving the directory tree
containing both.)
But if the user enter a relative path (or just a filename) then a
relative filename should be used. It will break if the document file is
moved around alone - of course! But it will work if the document file +
image files are moved around as a group. Perhaps by zipping up the
document directory tree and unzipping on some other machine.
Cut&paste image to some other part of the document? Then, don't change
the filename at all. It will keep working.
Cut&paste image to some unrelated document? The most important then
is that it still works. There will be cases where a conversion to
absolute path will be necessary, e.g. different drive letter on windows.
Ideally, some effort could be used to keep a relative path relative, at
least for the common case where the new relative path won't have to
start with "..". (I.e. the common case where the user is copying images
between documents that reside in the same document directory.)
reside in the same
Helge Hafting