Herbert Voss writes:
>
> Angus Leeming wrote:
> 
> > On Thursday 25 April 2002 1:56 pm, Herbert Voss wrote:
> > >>Jean-Marc Lasgouttes wrote:
> >>
> >>>>>>>>"Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes:
> >>>>>>>>
> >>>Herbert> only an idea: we have "tons" of converter entries. Why not
> >>>Herbert> use convert file.from file.to as a default converter and
> >>>Herbert> adding only those ones which need other commands or should do
> >>>Herbert> not use convert.
> >>>
> >>>Do we have a notion of default converter in the code? And are we sure
> >>>that we always call the converter with the right file extensions?
> >>>
> >>1. no
> >>
> >>2. yes, we always no from .. to
> >>
> >>it wouls simplify the code (configure.m4) and the list of
> >>converters if we could define convert as a default, which
> >>it seems to be anyway.
> >>
> > > If it can be done without affecting (1) above, then go for it.
> > > Alternatively, since convert is so regular in it's syntax, can't you use that 
> > to your advantage in the configure script. 
> > > eps_to_xpm
> > convert EPS:$$i XPM:$$o
> > > generalises to
> > abc_to_xyz
> > convert ABC:$$i XYZ:$$o
> > > someone could probably write a littel script to do that...
> 
> 
> it was very easy. When Converters.convert returns false than there
> is no converter, so we take convert. I had only to rearrange the
> configure.m4 a bit. send patch on monday
> 

Wouldn't it be nicer to do two things in lib/configure.m4:

1) define the default converter, and spend some lines on how to
   use it. If convert is there, use it, but check also for other
   alternatives.
2) define the converters that do not use the default converter
   (e.g. Grace, tgif etc.)

Will the use of a default converter also reduce the Converters list
in the Preferences->Converters list, which is also becomming endless ?

Regards,
Rob.

Reply via email to