]> git.lyx.org Git - features.git/commit
Reset encoding after insets and environments also for LuaTeX with TeX fonts.
authorGünter Milde <milde@lyx.org>
Mon, 9 Nov 2015 10:45:01 +0000 (11:45 +0100)
committerGünter Milde <milde@lyx.org>
Mon, 9 Nov 2015 11:42:48 +0000 (12:42 +0100)
commit480937a103708a6510ae24c2ee91cd1459d67104
treed535cf4770e5599d1239c644c03686290b311c6b
parentb71991f0cc827e830db58e0aea640f4df0c48ff8
Reset encoding after insets and environments also for LuaTeX with TeX fonts.

With inputenc == "auto" or "default", the encoding changes with
the language and must be reset after an eventual language switch in insets
or environments (see #6216).

However, whether we need to do this does not depend on 8-bit TeX vs. LuaTeX
but on the possible use of more than one encoding for the document.
With "nonTeXFonts", the encoding is utf8,
LuaTeX with TeX fonts requires encoding handling similar to 8-bit TeX.

(Additionally, the value of "params.inputenc" could be tested: if it is
not "auto" or "default", we have just one common encoding and could skip
the reset as well.) Not sure how much time this saves, though.
src/Paragraph.cpp
src/output_latex.cpp