Uwe Stöhr schrieb:
Attached is the patch that fixes the problem, that babel isn't called
when you have foreign languages in CJK and Armenian-documents.
Attached is a better patch.
I think this is now the last remaining babel bug.
Unfortunately I also found this one:
http://bugzilla.lyx.org/show_bug.cgi?id=3571
regards Uwe
Index: BufferParams.cpp
===================================================================
--- BufferParams.cpp (revision 18227)
+++ BufferParams.cpp (working copy)
@@ -1394,8 +1394,15 @@
// suppress the babel call when there is no babel language defined
// in the lib/languages file
if (lyxrc.language_global_options && tmp == "\\usepackage{babel}" &&
- language->babel().empty() )
- tmp = string("");
+ language->babel().empty() ) {
+ // if the armscii8 or a CJK encoding is used, babel has to be called for
+ // foreign languages
+ if (lang_opts != "")
+ tmp = string("\\usepackage[") + lang_opts + "]{babel}";
+ else
+ tmp = string("");
+ }
return tmp;
}