]> git.lyx.org Git - features.git/commit
Fix 480937a103708a651/lyxgit, second attempt.
authorGünter Milde <milde@lyx.org>
Thu, 12 Nov 2015 15:55:04 +0000 (16:55 +0100)
committerGünter Milde <milde@lyx.org>
Thu, 12 Nov 2015 15:55:04 +0000 (16:55 +0100)
commit0eb9477be7998f8d66b4fe5c8948de5a22261e1e
tree128e507caef9c6d8e0591e9f73028e50f6ec96b3
parent2230be75b3b0584775547b83af79f59b4c40ec27
Fix 480937a103708a651/lyxgit, second attempt.

Prevent encoding changes whenever the TeX engine is XeTeX or LuaTeX,
as XeTeX/LuaTeX use only one encoding per document:

* with useNonTeXFonts: "utf8plain",
* with XeTeX and TeX fonts: "ascii" (inputenc fails),
* with LuaTeX and TeX fonts: only one encoding accepted by luainputenc.

+1 no needless encoding switches
+1 runparams.encoding matches the correct encoding at any time
+1 less complicated code.

-1 there may still be problems with CJK (possibly impossible to
   solve for Xe/LuaTeX with TeX fonts).

For LuaTeX & TeX fonts, the complete document uses the encoding
of the global document language.

See also #9740.
src/BufferParams.cpp
src/Font.cpp
src/LaTeXFeatures.cpp
src/Paragraph.cpp
src/output_latex.cpp