]> git.lyx.org Git - features.git/commitdiff
"unicode=true" leads to errors for Japanese with "platex" even when using utf8-encode...
authorGünter Milde <milde@lyx.org>
Mon, 6 May 2019 06:52:24 +0000 (08:52 +0200)
committerGünter Milde <milde@lyx.org>
Mon, 6 May 2019 06:52:24 +0000 (08:52 +0200)
The bxjsbook class raises an error if seeing this option
(before TL19 only a warning). Other document classes just ignore
it and PDF-bookmarks are wrongly encoded in any case.

src/PDFOptions.cpp

index d64cc2975e90ffc8f9057c14cca6ecd22faa5b7b..0b5b139e95a55d1b3023f584ef219b3c1bb08591 100644 (file)
@@ -105,8 +105,7 @@ void PDFOptions::writeLaTeX(OutputParams & runparams, otexstream & os,
        // with the hyperref option "unicode".
        // (With Xe/LuaTeX and pTeX, unicode=true is the default
        // and the option leads to errors with some Japanese document classes)
-       if (!runparams.isFullUnicode() 
-               && (!runparams.use_japanese || runparams.encoding->iconvName() == "UTF-8"))
+       if (!runparams.isFullUnicode() && !runparams.use_japanese)
                opt += "unicode=true,";
 
        // only use the hyperref settings if hyperref is enabled by the user