Load "textcomp" and "pmboxdraw" before "(lua)inputenc" to fix #11454.

Prevents wrong or missing characters with LuaTeX and 8-bit fonts.

Also "uninvert" the corresponding test case and two other
no longer failing "unicodesymbols" exports.
This commit is contained in:
Günter Milde 2019-02-12 09:22:55 +01:00
parent b0d42b73f1
commit 7a17610a00
4 changed files with 10 additions and 10 deletions

View File

@ -182,7 +182,7 @@ literal "false"
\begin_layout Standard \begin_layout Standard
\begin_inset CommandInset include \begin_inset CommandInset include
LatexCommand input LatexCommand input
filename "unicodesymbols/009-cyrillic-russian.lyx" filename "unicodesymbols/009-cyrillic_ru.lyx"
literal "false" literal "false"
\end_inset \end_inset

View File

@ -105,9 +105,7 @@ export/export/latex/unicodesymbols/074-76-letterlike-numberforms-arrows_cp862_pd
# Arabic: # Arabic:
export/export/latex/unicodesymbols/005-7-ipa-modifiers-combining_cp1256_pdf2 export/export/latex/unicodesymbols/005-7-ipa-modifiers-combining_cp1256_pdf2
export/export/latex/unicodesymbols/008-greek-and-coptic-with-textalpha_cp1256_pdf2 export/export/latex/unicodesymbols/008-greek-and-coptic-with-textalpha_cp1256_pdf2
export/export/latex/unicodesymbols/008-greek-and-coptic_cp1256_pdf2
export/export/latex/unicodesymbols/069-greek-extended-textalpha_cp1256_pdf2 export/export/latex/unicodesymbols/069-greek-extended-textalpha_cp1256_pdf2
export/export/latex/unicodesymbols/069-greek-extended_cp1256_pdf2
export/export/latex/unicodesymbols/070-72-general-punctuation-sub-super-currency_cp1256_pdf2 export/export/latex/unicodesymbols/070-72-general-punctuation-sub-super-currency_cp1256_pdf2
export/export/latex/unicodesymbols/074-76-letterlike-numberforms-arrows_cp1256_pdf2 export/export/latex/unicodesymbols/074-76-letterlike-numberforms-arrows_cp1256_pdf2
@ -187,11 +185,9 @@ export/export/WrongDfnTagHandling_xhtml
# contains underscores etc. # contains underscores etc.
export/export/latex/LongestLabelWithUnderscore.* export/export/latex/LongestLabelWithUnderscore.*
#11454 luainputenc must be loaded after textcomp # Common Unicode fonts don't support all characters supported by
export/export/latex/luainputenc-utf8_pdf5_texF # lib/unicodesymbols. (This shows that there are use cases for 8-bit fonts
# (The version with Unicode fonts fails because some symbols are missing # or GUI support for selecting more than one system font.)
# in LatinModern as well as DejaVu. This shows that there are use cases
# for traditional 8-bit fonts.)
export/export/latex/luainputenc-utf8_pdf5_systemF export/export/latex/luainputenc-utf8_pdf5_systemF
#11455 "Unable to process argument!" with multiple 1.6.x roundtrips #11455 "Unable to process argument!" with multiple 1.6.x roundtrips

View File

@ -1779,6 +1779,12 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
} }
} }
// TODO: load textcomp and pmboxdraw before (lua)inputenc (#11454)
if (features.mustProvide("textcomp"))
os << "\\usepackage{textcomp}\n";
if (features.mustProvide("pmboxdraw"))
os << "\\usepackage{pmboxdraw}\n";
// handle inputenc etc. // handle inputenc etc.
writeEncodingPreamble(os, features); writeEncodingPreamble(os, features);

View File

@ -958,9 +958,7 @@ char const * simplefeatures[] = {
"units", "units",
"framed", "framed",
"soul", "soul",
"textcomp",
"dingbat", "dingbat",
"pmboxdraw",
"bbding", "bbding",
"ifsym", "ifsym",
"txfonts", "txfonts",