>>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes:

Georg> Jean-Marc Lasgouttes wrote:
>> It seems reasonable. Note that the current font is typically a part
>> of the 'context'. Why not put the font parameter in there?

Georg> I forgot why I did it like that (it is some time ago when I
Georg> wrote that). I'll try your suggestion.

Yes, if it not too complicated.

>> Actually, I wonder whether using LyX original LyXFont class a bit
>> more (with it enum) would not be much simpler than reproducing all
>> the syntax strings it uses. I think the logic of the code would
>> improve.

Georg> This was my first thought, too, but it is not easy: Using the
Georg> original LyXFont is not possible, because it has a lot of
Georg> dependencies. That means one would need to reproduce the needed
Georg> code in the tex2lyx LyXFont class anyway (or factor it out in a
Georg> common base class). 

This would be nice, but it is indeed more work.

Georg> Since LyXFont has also font family names like "error1", and I
Georg> don't want to parse \error1 as a font family, I thought it is
Georg> easyer to create a tex2lyx specific font struct and name tables
Georg> with just the needed information.

I see.

JMarc

Reply via email to