commit 6bcbd907a46f160fb62b05f8c665367754f324fd
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Sun Jul 10 11:13:13 2016 +0200

    Clarify some comments wrt XeTeX/LuaTeX (see bug #10013)
---
 src/BufferParams.cpp              |    6 +++++-
 src/frontends/qt4/GuiDocument.cpp |    2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
index 7af4397..9fa1f1a 100644
--- a/src/BufferParams.cpp
+++ b/src/BufferParams.cpp
@@ -2131,6 +2131,7 @@ bool BufferParams::writeLaTeX(otexstream & os, 
LaTeXFeatures & features,
 
        // xunicode needs to be loaded at least after amsmath, amssymb,
        // esint and the other packages that provide special glyphs
+       // The package only supports XeTeX currently.
        if (features.runparams().flavor == OutputParams::XETEX
            && useNonTeXFonts)
                lyxpreamble += "\\usepackage{xunicode}\n";
@@ -2352,7 +2353,10 @@ string BufferParams::bufferFormat() const
        string format = documentClass().outputFormat();
        if (format == "latex") {
                if (useNonTeXFonts)
-                       return "xetex"; // actually "xetex or luatex"
+                       // FIXME: In this context, this means "xetex or luatex"
+                       // with fontspec. We cannot differentiate further here.
+                       // But maybe use a more appropriate string.
+                       return "xetex";
                if (encoding().package() == Encoding::japanese)
                        return "platex";
        }
diff --git a/src/frontends/qt4/GuiDocument.cpp 
b/src/frontends/qt4/GuiDocument.cpp
index af42fd8..f742d04 100644
--- a/src/frontends/qt4/GuiDocument.cpp
+++ b/src/frontends/qt4/GuiDocument.cpp
@@ -1748,7 +1748,7 @@ void GuiDocument::deleteBoxBackgroundColor()
 
 void GuiDocument::languageChanged(int i)
 {
-       // some languages only work with polyglossia/XeTeX
+       // some languages only work with polyglossia
        Language const * lang = lyx::languages.getLanguage(
                fromqstr(langModule->languageCO->itemData(i).toString()));
        if (lang->babel().empty() && !lang->polyglossia().empty()) {

Reply via email to