On Friday 18 May 2007 7:42:56 pm Richard Heck wrote: > Any comments on this? Anyone care to test it? If you like Export>HTML or > View>HTML, you are going to like this....
I did not forgot it, I was thinking. I am slow at times. ;-) > ==== > > The attached patch addresses these bugs, all of which have to do with > export, viewing, and the like---ultimately, with the conversion > routines. The patch introduces a new conversion flag, usetempdir, which > forces the converter to do all its work in a temporary directory created > under the lyx_tmpbuf directory. On export, this directory is copied to > the directory in which the LyX file is contained. So, if you open > /path/file.lyx and File>Export>Format, you will get a directory > /path/file.format.conversion/ in which all the files generated by the > converter will be found (e.g. the mess that htlatex generates ends up in > /path/file.html.conversion/). If you're just viewing, however, you get > $LYXTMPDIR/lyx_tmpbufN/format/, and of course that will get deleted when > LyX exits (gracefully). > > As a result, the originaldir flag does not need to be used by any of our > converters, and it may be redundant, though there's no harm leaving it, > so far as I can see. > > As you will note, doing this involved adding a new signature to the > Converters::convert() routine. I have not changed any of the other calls > to this: these are in Importer.cpp, insets/InsetGraphics.cpp, and > insets/ExternalSupport.cpp. At least some of these will need modifying > before the patch is applied, probably all of them, as I suppose > usetempdir could be set for importers and graphics converters and such. > There are a few other clean-up type things to be done still, too, > including fixing indentation, but I haven't done that yet as it would > make the diff hard to read. This area looks a mess and I have never quite understood it completely. :-) That is I why I am asking for Georg's help to decide on this. The same applies to Jürgen. > Comments of course welcome. Will wait to commit for a bit, targeting for > RC1?? Probably, but I feel unease when I see such a patch. :-) > Richard -- José Abílio