Uwe Stöhr <[EMAIL PROTECTED]> writes: > Jean-Marc Lasgouttes schrieb: > >> Uwe, please have a look at how fonts are handled using the Context >> object and try to do the same thing for the language stuff... > > The font handling is my code and I've used the same method as for > \selectlanguage etc. for this patch too. In the patch the context > object is used. What do you mean?
I mean that Context has a mechanism for storing temporary font changes. For example, for selectlanguage you should use something similar to else if (t.cs() == "textbf") parse_text_attributes(p, os, FLAG_ITEM, outer, context, "\\series", context.font.series, "bold"); but adapted to language. The advantage is that this is supposed to catter for many corner cases. And believe me, there are *many* corner cases. JMarc