]> git.lyx.org Git - lyx.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)
committerGünter Milde <milde@lyx.org>
Sat, 11 Jun 2016 11:57:24 +0000 (13:57 +0200)
commitb170b6e40fe38e79e97c049e7b727d75bd23ed52
tree5bf47dca0d9924f5b8044e77f9df363b0d738936
parent48bad4b5818fdd93c29753e4f6c2c1ff087eabcd
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).
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