]> git.lyx.org Git - features.git/commit
fix #10199 Non-encodable characters with XeTeX and utf8-plain
authorGünter Milde <milde@lyx.org>
Sat, 11 Jun 2016 11:54:33 +0000 (13:54 +0200)
committerGuillaume Munch <gm@lyx.org>
Sun, 10 Jul 2016 12:42:18 +0000 (13:42 +0100)
commit5198fdfc0b8638f3764c88843ea8863ec8b48656
tree3a1add89f0fd4cc03042c21ee91f80f5f2cfac66
parent103bf05099652510ea0eaa5e45256acd32cba476
fix #10199 Non-encodable characters with XeTeX and utf8-plain

XeTeX with TeX fonts is only safe with ASCII input encoding (see #9740)
and we therefore force "ascii" when exporting with XeTeX and 8-bit TeX-fonts.

However, "utf8-plain" is a "power-user" option, which allows to switch off LyX's
encoding of the LaTeX file:
keep this also for "XeTeX with TeX fonts".

The user is responsible to ensure all characters can be processed and are
correctly shown in the output. The provided test sample shows the problems
with this encoding without special measures (like loading fontspec in the
user-preamble or a document class).

(cherry picked from commit b170b6e40fe38e79e97c049e7b727d75bd23ed52

I just converted the test to format 508. Thanks Scott for running the
tests. -Guillaume)
autotests/export/utf8-plain-with-tex-fonts.lyx [new file with mode: 0644]
development/autotests/suspiciousTests
development/autotests/unreliableTests
src/Buffer.cpp
src/BufferParams.cpp