On Friday 12 December 2003 11:34, Angus Leeming wrote: > > Let's call it 'an accident of history'. The code used to be much more > convoluted than it is now. However, I think that the primary reason > is that InsetGraphics can handle compressed files and needs to > uncompress them to ascertain the 'hidden' file format. Herbert just > found it easiest to unconditionally copy the file and then play from > there.
That could probably be done using a flag, in the converter, something like originalfile, as an anology to original dir. > Note also the stuff about timestamps and checksums. Have a look at the > code in InsetGraphics: it is anything but trivial. Have a look also > at the equivalent code in InsetExternal (ExternalSupport.C). The > use-case is simpler (I don't worry about .gz files) but it is still > not trivial. Since there is no chance this could work for 1.3 you are telling me to bet on the insetexternal inset instead for 1.4, is it? -- José Abílio LyX and docbook, a perfect match. :-)