Angus Leeming wrote: > > On Tuesday 12 February 2002 12:38 pm, [EMAIL PROTECTED] wrote: > > Herbert Voss <[EMAIL PROTECTED]> schrieb am 12.02.2002, > > 10:36:38: > > > > > > This is due to the fact that _only_ the content of graphics > > > > files is considered; the file extension is totally ignored > > > > in the current implementation. > > > > I think this is too rigorous as the definition of customized > > > > converters becomes useless. > > > > > > why? > > > the "standard" converter program take also the > > > type from its contents. > > > an additional button "use extension" may be helpful, > > > but than we have a gui full of check-buttons. > > > > But how will a user be able to add his own file formats and converters > > to LyX? I think that was the initial idea behind all the stuff in the > > preferences dialog. If you write some code for detecting Tgif files by > > content, this would solve my problem but then again someone else > > protests that his favourite graphics format is not supported. > > This is a well made point. Here's an idea: why don't we throw out (or rather > use it only on old format LyX files) the clever code that interrogates the > contents of the file. It's a lot of special code that could be replaced by a > bit more work for the user.
Quite a bit more work for this user. A bit more work for the user = LaTeX. > Add a choice and a radio button to the graphics dialog, underneath the file > input box: > > File _mygraphics.ps_ [Browse] > Compressed O > Format [Postscript] > > where we use the list of defined formats to fill the choice. Moreover, we can > use the file extension to give a sensible guess, but default to > "Not Recognised". > > Then we store these extra variables in the InsetGraphicsParams struct. > > Now I know Herbert won't be happy with this, having but all this effort into > the code, but let's think of the bigger picture. Is the current code scalable > and easily maintainable? I'm not so sure. > > Thoughts? > Angus I much prefer an added check button.
