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_inset CommandInset include
LatexCommand input
filename "unicodesymbols/009-cyrillic-russian.lyx"
filename "unicodesymbols/009-cyrillic_ru.lyx"
literal "false"
\end_inset

View File

@ -105,9 +105,7 @@ export/export/latex/unicodesymbols/074-76-letterlike-numberforms-arrows_cp862_pd
# Arabic:
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_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/074-76-letterlike-numberforms-arrows_cp1256_pdf2
@ -187,11 +185,9 @@ export/export/WrongDfnTagHandling_xhtml
# contains underscores etc.
export/export/latex/LongestLabelWithUnderscore.*
#11454 luainputenc must be loaded after textcomp
export/export/latex/luainputenc-utf8_pdf5_texF
# (The version with Unicode fonts fails because some symbols are missing
# in LatinModern as well as DejaVu. This shows that there are use cases
# for traditional 8-bit fonts.)
# Common Unicode fonts don't support all characters supported by
# lib/unicodesymbols. (This shows that there are use cases for 8-bit fonts
# or GUI support for selecting more than one system font.)
export/export/latex/luainputenc-utf8_pdf5_systemF
#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.
writeEncodingPreamble(os, features);

View File

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