> I don't really know what you are testing here but this code seems
> broken.

When a CJK- or the ARMSCII8-encoding is used as document encoding, babel should normally not called as it is not needed. But if there are also other languages in the document, babel must be called to handle the \foreignlanguage and \selectlanguage commands.

> Do you mean this:
>
> if (!lang_opts.empty() &&
>    (language->encoding()->latexName() == "armscii8"
>    || language->encoding()->package() == Encoding::CJK))

Exactly.

> And by the way, please use tmp.clear() instead.

I'll do. I found this method by searching the source code btw..

> I suggest that you read some C/C++ book someday Uwe ;-)

I did and the above solution was my first try, but it didn't compile yesterday: " Syntax error 
"(" ..."
That's why I asked the AND/OR question.
I'll try this again today.

I haven't found btw. no C++ manual by googling that describes the case where AND and OR are embedded to each other. Do you know one?

thanks and regards
Uwe

Reply via email to