* PDFOptions.cpp:

- omit \inputencoding changes with XeTeX/LuaTeX.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36579 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-11-29 09:03:55 +00:00
parent 5c02ca57d4
commit baaceb10c2

View File

@ -177,7 +177,8 @@ int PDFOptions::writeLaTeX(OutputParams & runparams, odocstream & os,
lines = int(count(opt.begin(), opt.end(), '\n'));
// hyperref expects utf8!
if (need_unicode && enc && enc->iconvName() != "UTF-8") {
if (need_unicode && enc && enc->iconvName() != "UTF-8"
&&!runparams.isFullUnicode()) {
os << "\\inputencoding{utf8}\n"
<< setEncoding("UTF-8");
++lines;
@ -187,7 +188,8 @@ int PDFOptions::writeLaTeX(OutputParams & runparams, odocstream & os,
if (!(hyperref_already_provided && hyperset.empty()))
os << from_utf8(opt);
if (need_unicode && enc && enc->iconvName() != "UTF-8") {
if (need_unicode && enc && enc->iconvName() != "UTF-8"
&&!runparams.isFullUnicode()) {
os << setEncoding(enc->iconvName())
<< "\\inputencoding{" << from_ascii(enc->latexName()) << "}\n";
++lines;