Jean-Marc Lasgouttes wrote:

>>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
> 
> Angus> I think it might be reasonable to separate the scripts into
> Angus> ones using 'gs' and 'convert'. All 'gs' conversions will
> differ Angus> only in the name of the output DEVICE, so it seems
> reasonable Angus> to collect them together,
> 
> Yes.
> 
> Angus> It has become apparent that the one thing that the graphics
> Angus> code lacks is an ability to 'tune' the default loadable
> format. Angus> It is currently hardcoded as 'ppm' simply because
> both the Angus> xforms and the qt loaders can load this format
> natively.
> 
> One problem I have with current code is that it selects the first
> path it finds in the converters graph without assessing theur
> quality. It would be nice to give weights to final formats (which is
> the best one for a given frontend?) and give also weights to
> converters (i.e. give a low weight if the conversion is lossy or
> slow). But that's obviously more work...
> 
> Angus> I think that it would make sense to have a lyxrc variable
> Angus> default_loadable_graphics_format or some such and to allow qt
> Angus> to set it to 'png' and xforms to 'ppm' when the graphics
> loader Angus> is initialised.
> 
> Wouldn't it be possible for the frontends to report the formats they
> handle natively in a best-to-worse order?

Yes they could, and that is probably a good thing to do. In that case 
the 'default" format if no grfx::Converter::isReachable(from, to) is 
defined becomes the first format in the list.

Nice idea, Jean-Marc. Thank you.

-- 
Angus

Reply via email to