From 1fac21c88d44420be534576f94d322c2a1a8e208 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnter=20Milde?= Date: Fri, 17 May 2019 14:03:28 +0200 Subject: [PATCH] ctests: sort dedicated test samples --- ...tenc-utf8.lyx => inputenc-luatex-utf8.lyx} | 0 ...tenc-utf8.lyx => inputenc-utf8-platex.lyx} | 58 ++- ...enc-ascii.lyx => inputenc-xetex-ascii.lyx} | 0 .../latex/inputenc-xetex-utf8-expl3-bug.lyx | 216 ++++++++++ ...utenc-utf8.lyx => inputenc-xetex-utf8.lyx} | 0 autotests/export/latex/language-in-tables.lyx | 383 ------------------ .../en-sk-cz-babel-table-error.lyx} | 18 +- .../latex/languages/supported-languages.lyx | 90 +++- .../languages/supported-languages_babel.lyx | 5 +- .../supported-languages_babel_auto-legacy.lyx | 5 +- .../supported-languages_babel_non-tex.lyx | 5 +- .../supported-languages_polyglossia.lyx | 5 +- .../11519-parent-with-other-inputenc.lyx} | 5 +- .../8085-table-rotate-linebreak.lyx} | 4 +- .../8479-listings-caption_zh-TW_utf8.lyx | 155 +++++++ .../9633-language-switch-in-tipa-inset.lyx | 113 ++++++ .../9633-languagenesting1.lyx} | 24 +- .../9633-languagenesting2.lyx} | 0 ...languagenesting_enumerate_and_lyxcode.lyx} | 29 +- .../9633-languagenesting_index_inset.lyx} | 22 +- .../languagenesting_tablecell.lyx | 0 .../10371-LongestLabelWithUnderscore.lyx} | 0 .../fa-OT1.lyx => lyxbugs/11521-fa_OT1.lyx} | 0 .../11522-systemfonts-Math-missingchars.lyx} | 0 .../11532-misplaced-inputenc-switch.lyx | 0 .../11583-latin-extended_OT1.lyx} | 27 +- .../11584-iconv-error-nomenclature.lyx} | 0 .../latex/lyxbugs/3059-language-in-tables.lyx | 376 +++++++++++++++++ .../{ => lyxbugs}/6197-polish-amssymb.lyx | 23 +- .../8479-listings-caption_zh-TW_utf8-cjk.lyx | 135 ++++++ .../9871-slovak-ascii-preambleencoding.lyx} | 33 +- .../wrong_output_3059-rtl-tables-xetex.lyx | 268 ++++++++++++ development/autotests/ignoredTests | 10 + development/autotests/invertedTests | 128 +++--- development/autotests/unreliableTests | 4 +- 35 files changed, 1612 insertions(+), 529 deletions(-) rename autotests/export/latex/{luainputenc-utf8.lyx => inputenc-luatex-utf8.lyx} (100%) rename autotests/export/latex/{platex-inputenc-utf8.lyx => inputenc-utf8-platex.lyx} (92%) rename autotests/export/latex/{xetex-inputenc-ascii.lyx => inputenc-xetex-ascii.lyx} (100%) create mode 100644 autotests/export/latex/inputenc-xetex-utf8-expl3-bug.lyx rename autotests/export/latex/{xetex-inputenc-utf8.lyx => inputenc-xetex-utf8.lyx} (100%) delete mode 100644 autotests/export/latex/language-in-tables.lyx rename autotests/export/latex/{TableErrorIfSlovakTextInserted.lyx => languages/en-sk-cz-babel-table-error.lyx} (92%) rename autotests/export/latex/{parent-with-other-inputenc.lyx => lyxbugs-resolved/11519-parent-with-other-inputenc.lyx} (97%) rename autotests/export/latex/{linebreak-bug.lyx => lyxbugs-resolved/8085-table-rotate-linebreak.lyx} (98%) create mode 100644 autotests/export/latex/lyxbugs-resolved/8479-listings-caption_zh-TW_utf8.lyx create mode 100644 autotests/export/latex/lyxbugs-resolved/9633-language-switch-in-tipa-inset.lyx rename autotests/export/latex/{languagenesting1.lyx => lyxbugs-resolved/9633-languagenesting1.lyx} (87%) rename autotests/export/latex/{languagenesting2.lyx => lyxbugs-resolved/9633-languagenesting2.lyx} (100%) rename autotests/export/latex/{languagenesting_enumerate_and_lyxcode.lyx => lyxbugs-resolved/9633-languagenesting_enumerate_and_lyxcode.lyx} (96%) rename autotests/export/latex/{languagenesting_index_inset.lyx => lyxbugs-resolved/9633-languagenesting_index_inset.lyx} (90%) rename autotests/export/latex/{ => lyxbugs-resolved}/languagenesting_tablecell.lyx (100%) rename autotests/export/latex/{LongestLabelWithUnderscore.lyx => lyxbugs/10371-LongestLabelWithUnderscore.lyx} (100%) rename autotests/export/latex/{languages/fa-OT1.lyx => lyxbugs/11521-fa_OT1.lyx} (100%) rename autotests/export/latex/{systemfonts-Math-missingchars.lyx => lyxbugs/11522-systemfonts-Math-missingchars.lyx} (100%) rename autotests/export/latex/{ => lyxbugs}/11532-misplaced-inputenc-switch.lyx (100%) rename autotests/export/latex/{001-4-latin-OT1.lyx => lyxbugs/11583-latin-extended_OT1.lyx} (94%) rename autotests/export/latex/{iconv-error-nomenclature.lyx => lyxbugs/11584-iconv-error-nomenclature.lyx} (100%) create mode 100644 autotests/export/latex/lyxbugs/3059-language-in-tables.lyx rename autotests/export/latex/{ => lyxbugs}/6197-polish-amssymb.lyx (89%) create mode 100644 autotests/export/latex/lyxbugs/8479-listings-caption_zh-TW_utf8-cjk.lyx rename autotests/export/latex/{bug9871-slovak-ascii-preambleencoding.lyx => lyxbugs/9871-slovak-ascii-preambleencoding.lyx} (79%) create mode 100644 autotests/export/latex/lyxbugs/wrong_output_3059-rtl-tables-xetex.lyx diff --git a/autotests/export/latex/luainputenc-utf8.lyx b/autotests/export/latex/inputenc-luatex-utf8.lyx similarity index 100% rename from autotests/export/latex/luainputenc-utf8.lyx rename to autotests/export/latex/inputenc-luatex-utf8.lyx diff --git a/autotests/export/latex/platex-inputenc-utf8.lyx b/autotests/export/latex/inputenc-utf8-platex.lyx similarity index 92% rename from autotests/export/latex/platex-inputenc-utf8.lyx rename to autotests/export/latex/inputenc-utf8-platex.lyx index efa4018d9e..42187bfe28 100644 --- a/autotests/export/latex/platex-inputenc-utf8.lyx +++ b/autotests/export/latex/inputenc-utf8-platex.lyx @@ -1,5 +1,5 @@ #LyX 2.4 created this file. For more info see https://www.lyx.org/ -\lyxformat 572 +\lyxformat 574 \begin_document \begin_header \save_transient_properties true @@ -13,7 +13,7 @@ \language japanese \language_package default \inputencoding utf8 -\fontencoding auto +\fontencoding HE8,T1 \font_roman "lmodern" "FreeSerif" \font_sans "default" "FreeSans" \font_typewriter "default" "FreeMono" @@ -162,29 +162,75 @@ literal "false" \end_layout \begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +fontencoding{HE8} +\backslash +selectfont +\end_layout + +\end_inset + + \begin_inset Note Note status open \begin_layout Plain Layout +requires custom font encoding HE8,T1 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard \begin_inset CommandInset include LatexCommand input -filename "unicodesymbols/012-hebrew_he.lyx" +filename "unicodesymbols/012-hebrew_HE8.lyx" literal "false" \end_inset - + \end_layout +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +fontencoding{T1} +\backslash +selectfont +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + \begin_layout Plain Layout \begin_inset CommandInset include LatexCommand input -filename "unicodesymbols/012-hebrew_he_HE8.lyx" +filename "unicodesymbols/012-hebrew_he.lyx" literal "false" \end_inset - + \end_layout \begin_layout Plain Layout diff --git a/autotests/export/latex/xetex-inputenc-ascii.lyx b/autotests/export/latex/inputenc-xetex-ascii.lyx similarity index 100% rename from autotests/export/latex/xetex-inputenc-ascii.lyx rename to autotests/export/latex/inputenc-xetex-ascii.lyx diff --git a/autotests/export/latex/inputenc-xetex-utf8-expl3-bug.lyx b/autotests/export/latex/inputenc-xetex-utf8-expl3-bug.lyx new file mode 100644 index 0000000000..65a9395fe3 --- /dev/null +++ b/autotests/export/latex/inputenc-xetex-utf8-expl3-bug.lyx @@ -0,0 +1,216 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 574 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\begin_preamble + +\end_preamble +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding utf8 +\fontencoding auto +\font_roman "lmodern" "FreeSerif" +\font_sans "default" "FreeSans" +\font_typewriter "default" "FreeMono" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf4 +\output_sync 0 +\bibtex_command default +\index_command default +\float_placement class +\float_alignment class +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\branch na +\selected 0 +\filename_suffix 0 +\color #faf0e6 +\end_branch +\branch bisect +\selected 0 +\filename_suffix 0 +\color #faf0e6 +\end_branch +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tablestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +XeTeX works with 8-bit fonts for +\begin_inset Quotes eld +\end_inset + +utf8 +\begin_inset Quotes erd +\end_inset + + and +\begin_inset Quotes eld +\end_inset + +ascii +\begin_inset Quotes erd +\end_inset + + input encodings. + There are, however, a number of incompatibilities, because the combination + XeTeX+TeX-fonts is rarely used and some packages wrongly test for XeTeX + instead of fontenc. +\end_layout + +\begin_layout Standard +This ERT fails with +\begin_inset Quotes eld +\end_inset + +ascii +\begin_inset Quotes erd +\end_inset + + but works with +\begin_inset Quotes eld +\end_inset + +utf8 +\begin_inset Quotes erd +\end_inset + +: +\begin_inset ERT +status open + +\begin_layout Plain Layout + +LyXen ist schön. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +\begin_inset CommandInset include +LatexCommand input +filename "unicodesymbols/012-hebrew_he.lyx" +literal "false" + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +Hebrew does not work with XeTeX and TeX-fonts: +\end_layout + +\begin_layout Plain Layout +Error 256 (driver return code) generating output; file 012-hebrew_he_HE8.pdf + may not be valid. + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Compilation errors under TeXLive-19 with XeTeX, TeX-fonts, inputenc utf8, + and expl3.sty (TL 17 works). +\end_layout + +\begin_layout Standard +required by xfrac.sty: +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand input +filename "unicodesymbols/074-76-letterlike-numberforms-arrows.lyx" +literal "false" + +\end_inset + + +\end_layout + +\begin_layout Standard +required by menukeys.sty: +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand input +filename "unicodesymbols/078-79-misc-technical-control-pics.lyx" +literal "false" + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/autotests/export/latex/xetex-inputenc-utf8.lyx b/autotests/export/latex/inputenc-xetex-utf8.lyx similarity index 100% rename from autotests/export/latex/xetex-inputenc-utf8.lyx rename to autotests/export/latex/inputenc-xetex-utf8.lyx diff --git a/autotests/export/latex/language-in-tables.lyx b/autotests/export/latex/language-in-tables.lyx deleted file mode 100644 index f72dde0f81..0000000000 --- a/autotests/export/latex/language-in-tables.lyx +++ /dev/null @@ -1,383 +0,0 @@ -#LyX 2.4 created this file. For more info see https://www.lyx.org/ -\lyxformat 573 -\begin_document -\begin_header -\save_transient_properties true -\origin unavailable -\textclass article -\use_default_options true -\maintain_unincluded_children false -\language greek -\language_package default -\inputencoding auto-legacy -\fontencoding auto -\font_roman "default" "default" -\font_sans "default" "default" -\font_typewriter "default" "default" -\font_math "auto" "auto" -\font_default_family default -\use_non_tex_fonts false -\font_sc false -\font_osf false -\font_sf_scale 100 100 -\font_tt_scale 100 100 -\use_microtype false -\use_dash_ligatures true -\graphics default -\default_output_format pdf2 -\output_sync 0 -\bibtex_command default -\index_command default -\float_placement class -\float_alignment class -\paperfontsize default -\spacing single -\use_hyperref false -\papersize default -\use_geometry false -\use_package amsmath 1 -\use_package amssymb 1 -\use_package cancel 1 -\use_package esint 1 -\use_package mathdots 1 -\use_package mathtools 1 -\use_package mhchem 1 -\use_package stackrel 1 -\use_package stmaryrd 1 -\use_package undertilde 1 -\cite_engine basic -\cite_engine_type default -\biblio_style plain -\use_bibtopic false -\use_indices false -\paperorientation portrait -\suppress_date false -\justification true -\use_refstyle 1 -\use_minted 0 -\index Index -\shortcut idx -\color #008000 -\end_index -\secnumdepth 3 -\tocdepth 3 -\paragraph_separation indent -\paragraph_indentation default -\is_math_indent 0 -\math_numbering_side default -\quotes_style french -\dynamic_quotes 0 -\papercolumns 1 -\papersides 1 -\paperpagestyle default -\tablestyle default -\tracking_changes false -\output_changes false -\html_math_output 0 -\html_css_as_file 0 -\html_be_strict false -\end_header - -\begin_body - -\begin_layout Subsection* - -\lang english -languages in tables and insets -\end_layout - -\begin_layout Standard - -\lang english -This Greek document with English text parts demonstrates some of the problems - with language inside tables and insets. -\end_layout - -\begin_layout Standard - -\lang english -Text not marked up as English will be written in Greek letters -\begin_inset Foot -status collapsed - -\begin_layout Plain Layout - -\lang english -unless non-TeX fonts are used -\end_layout - -\end_inset - - using the -\begin_inset Quotes fld -\end_inset - -LGR transliteration -\begin_inset Quotes frd -\end_inset - - (due to Greek letters at the place of Latin ones in the used TeX font), - eg. - -\lang greek - -\begin_inset Quotes fld -\end_inset - -logos -\lang english - -\begin_inset Quotes frd -\end_inset - -. -\end_layout - -\begin_layout Standard - -\lang english -However, this also happens for text in a table inside English parts -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -left -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -right column -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard - -\lang english -unless the Language of the content is explicitely set to English -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\lang english -left -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\lang english -right column -\end_layout - -\end_inset - - - - -\end_inset - -. -\end_layout - -\begin_layout Standard - -\lang english -The same problem is seen with footnote -\begin_inset Foot -status open - -\begin_layout Plain Layout -English text not marked up. -\end_layout - -\end_inset - - insets -\begin_inset Foot -status open - -\begin_layout Plain Layout - -\lang english -marked up English text -\end_layout - -\end_inset - - and marginal notes -\begin_inset Marginal -status open - -\begin_layout Plain Layout -English text not marked up -\end_layout - -\end_inset - - as well as -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout -greyed out text -\end_layout - -\end_inset - -. -\end_layout - -\begin_layout Standard - -\lang english -Date inset and filename inset use current language. - English: -\begin_inset Info -type "date" -arg "loclong" -\end_inset - -, Greek: -\lang greek - -\begin_inset Info -type "date" -arg "loclong" -\end_inset - - -\lang english -. - The source file is -\begin_inset Quotes fld -\end_inset - - -\begin_inset Info -type "buffer" -arg "name" -\end_inset - - -\begin_inset Quotes frd -\end_inset - - -\lang greek - -\begin_inset Foot -status collapsed - -\begin_layout Plain Layout - -\lang english -In Greek text it would be output as -\lang greek - -\begin_inset Quotes fld -\end_inset - - -\begin_inset Info -type "buffer" -arg "name" -\end_inset - - -\begin_inset Quotes frd -\end_inset - - -\lang english -, like any Latin words and abbreviations it must be set to a different language - to appear right. -\end_layout - -\end_inset - - -\lang english - . - So does a hyperlink to the -\begin_inset CommandInset href -LatexCommand href -name "LyX home" -target "http://www.lyx.org" -literal "false" - -\end_inset - - site. -\end_layout - -\begin_layout Standard - -\lang english -\begin_inset Float table -placement b -alignment document -wide false -sideways false -status open - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -\lang english -\begin_inset Caption Standard - -\begin_layout Plain Layout - -\lang english -Table float with Greek caption prefix in the GUI but English in the output. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\end_layout - -\end_body -\end_document diff --git a/autotests/export/latex/TableErrorIfSlovakTextInserted.lyx b/autotests/export/latex/languages/en-sk-cz-babel-table-error.lyx similarity index 92% rename from autotests/export/latex/TableErrorIfSlovakTextInserted.lyx rename to autotests/export/latex/languages/en-sk-cz-babel-table-error.lyx index 90060e8d1d..7b6c6b256d 100644 --- a/autotests/export/latex/TableErrorIfSlovakTextInserted.lyx +++ b/autotests/export/latex/languages/en-sk-cz-babel-table-error.lyx @@ -1,5 +1,5 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ -\lyxformat 512 +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 574 \begin_document \begin_header \save_transient_properties true @@ -10,7 +10,7 @@ \language english \language_package default \inputencoding iso8859-15 -\fontencoding global +\fontencoding auto \font_roman "lmodern" "default" \font_sans "lmss" "default" \font_typewriter "lmtt" "default" @@ -22,11 +22,14 @@ \font_sf_scale 100 100 \font_tt_scale 100 100 \use_microtype false +\use_dash_ligatures true \graphics default -\default_output_format default +\default_output_format pdf2 \output_sync 0 \bibtex_command default \index_command default +\float_placement class +\float_alignment class \paperfontsize default \spacing single \use_hyperref false @@ -65,6 +68,7 @@ \suppress_date false \justification false \use_refstyle 0 +\use_minted 0 \notefontcolor #0000ff \branch slovak \selected 1 @@ -84,10 +88,14 @@ \tocdepth 4 \paragraph_separation indent \paragraph_indentation default -\quotes_language english +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 \papercolumns 1 \papersides 1 \paperpagestyle plain +\tablestyle default \tracking_changes false \output_changes false \html_math_output 0 diff --git a/autotests/export/latex/languages/supported-languages.lyx b/autotests/export/latex/languages/supported-languages.lyx index c9ef90f8a2..3d6d65a876 100644 --- a/autotests/export/latex/languages/supported-languages.lyx +++ b/autotests/export/latex/languages/supported-languages.lyx @@ -481,6 +481,27 @@ status open وجنوب السودان وإيران. \end_layout +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Dummy paragraph to reset input-encoding with +\begin_inset Quotes eld +\end_inset + +auto-legacy +\begin_inset Quotes erd +\end_inset + +. +\end_layout + +\end_inset + + +\end_layout + \end_inset @@ -699,7 +720,7 @@ sının rəsmi dövlət dilidir. \begin_layout Labeling \labelwidthstring 00.00.0000 -Babel azerbaijani (nicht von LyX unterstützt) +Babel azerbaijani (not supported by LyX) \end_layout \begin_layout Labeling @@ -3022,6 +3043,29 @@ magyar nyelv a komi, a mari és a mordvin nyelvek. \end_layout +\begin_layout Standard + +\lang czech +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Czech dummy paragraph to reset input-encoding with +\begin_inset Quotes eld +\end_inset + +auto-legacy +\begin_inset Quotes erd +\end_inset + +. +\end_layout + +\end_inset + + +\end_layout + \begin_layout Labeling \labelwidthstring 00.00.0000 Babel magyar @@ -4173,6 +4217,50 @@ status open \end_inset +\end_layout + +\begin_layout Standard + +\lang czech +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Dummy paragraph to reset input-encoding with +\begin_inset Quotes eld +\end_inset + +auto-legacy +\begin_inset Quotes erd +\end_inset + +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Dummy paragraph to reset input-encoding with +\begin_inset Quotes eld +\end_inset + +auto-legacy +\begin_inset Quotes erd +\end_inset + +. +\end_layout + +\end_inset + + \end_layout \begin_layout Labeling diff --git a/autotests/export/latex/languages/supported-languages_babel.lyx b/autotests/export/latex/languages/supported-languages_babel.lyx index 36faff0eb6..c0b37ba1e1 100644 --- a/autotests/export/latex/languages/supported-languages_babel.lyx +++ b/autotests/export/latex/languages/supported-languages_babel.lyx @@ -1,5 +1,5 @@ #LyX 2.4 created this file. For more info see https://www.lyx.org/ -\lyxformat 573 +\lyxformat 574 \begin_document \begin_header \save_transient_properties true @@ -9,6 +9,9 @@ \end_preamble \use_default_options false +\begin_modules +enumitem +\end_modules \maintain_unincluded_children false \language english \language_package auto diff --git a/autotests/export/latex/languages/supported-languages_babel_auto-legacy.lyx b/autotests/export/latex/languages/supported-languages_babel_auto-legacy.lyx index ed119e5520..1a85c241a5 100644 --- a/autotests/export/latex/languages/supported-languages_babel_auto-legacy.lyx +++ b/autotests/export/latex/languages/supported-languages_babel_auto-legacy.lyx @@ -1,5 +1,5 @@ #LyX 2.4 created this file. For more info see https://www.lyx.org/ -\lyxformat 573 +\lyxformat 574 \begin_document \begin_header \save_transient_properties true @@ -9,6 +9,9 @@ \end_preamble \use_default_options false +\begin_modules +enumitem +\end_modules \maintain_unincluded_children false \language english \language_package auto diff --git a/autotests/export/latex/languages/supported-languages_babel_non-tex.lyx b/autotests/export/latex/languages/supported-languages_babel_non-tex.lyx index 29dcf984be..07b7dfb87a 100644 --- a/autotests/export/latex/languages/supported-languages_babel_non-tex.lyx +++ b/autotests/export/latex/languages/supported-languages_babel_non-tex.lyx @@ -1,11 +1,14 @@ #LyX 2.4 created this file. For more info see https://www.lyx.org/ -\lyxformat 573 +\lyxformat 574 \begin_document \begin_header \save_transient_properties true \origin unavailable \textclass scrartcl \use_default_options false +\begin_modules +enumitem +\end_modules \maintain_unincluded_children false \language english \language_package auto diff --git a/autotests/export/latex/languages/supported-languages_polyglossia.lyx b/autotests/export/latex/languages/supported-languages_polyglossia.lyx index ba92bcdc66..8695a1dfde 100644 --- a/autotests/export/latex/languages/supported-languages_polyglossia.lyx +++ b/autotests/export/latex/languages/supported-languages_polyglossia.lyx @@ -1,5 +1,5 @@ #LyX 2.4 created this file. For more info see https://www.lyx.org/ -\lyxformat 573 +\lyxformat 574 \begin_document \begin_header \save_transient_properties true @@ -43,6 +43,9 @@ \fi \end_preamble \use_default_options false +\begin_modules +enumitem +\end_modules \maintain_unincluded_children false \language english \language_package auto diff --git a/autotests/export/latex/parent-with-other-inputenc.lyx b/autotests/export/latex/lyxbugs-resolved/11519-parent-with-other-inputenc.lyx similarity index 97% rename from autotests/export/latex/parent-with-other-inputenc.lyx rename to autotests/export/latex/lyxbugs-resolved/11519-parent-with-other-inputenc.lyx index b347d0344a..1b6872b425 100644 --- a/autotests/export/latex/parent-with-other-inputenc.lyx +++ b/autotests/export/latex/lyxbugs-resolved/11519-parent-with-other-inputenc.lyx @@ -1,5 +1,5 @@ #LyX 2.4 created this file. For more info see https://www.lyx.org/ -\lyxformat 567 +\lyxformat 574 \begin_document \begin_header \save_transient_properties true @@ -86,6 +86,7 @@ logicalmkup \papercolumns 1 \papersides 1 \paperpagestyle default +\tablestyle default \tracking_changes false \output_changes false \html_math_output 0 @@ -154,7 +155,7 @@ iso8859-15 \begin_layout Standard \begin_inset CommandInset include LatexCommand input -filename "unicodesymbols/001-4-latin.lyx" +filename "8085-table-rotate-linebreak.lyx" literal "false" \end_inset diff --git a/autotests/export/latex/linebreak-bug.lyx b/autotests/export/latex/lyxbugs-resolved/8085-table-rotate-linebreak.lyx similarity index 98% rename from autotests/export/latex/linebreak-bug.lyx rename to autotests/export/latex/lyxbugs-resolved/8085-table-rotate-linebreak.lyx index 124d92b2e8..4428176b43 100644 --- a/autotests/export/latex/linebreak-bug.lyx +++ b/autotests/export/latex/lyxbugs-resolved/8085-table-rotate-linebreak.lyx @@ -1,5 +1,5 @@ #LyX 2.4 created this file. For more info see https://www.lyx.org/ -\lyxformat 573 +\lyxformat 574 \begin_document \begin_header \save_transient_properties true @@ -24,7 +24,7 @@ \use_microtype false \use_dash_ligatures false \graphics default -\default_output_format default +\default_output_format pdf2 \output_sync 0 \bibtex_command default \index_command default diff --git a/autotests/export/latex/lyxbugs-resolved/8479-listings-caption_zh-TW_utf8.lyx b/autotests/export/latex/lyxbugs-resolved/8479-listings-caption_zh-TW_utf8.lyx new file mode 100644 index 0000000000..d3778d142b --- /dev/null +++ b/autotests/export/latex/lyxbugs-resolved/8479-listings-caption_zh-TW_utf8.lyx @@ -0,0 +1,155 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 574 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\use_default_options true +\maintain_unincluded_children false +\language chinese-traditional +\language_package default +\inputencoding utf8 +\fontencoding auto +\font_roman "default" "IPAexMincho" +\font_sans "default" "IPAGothic" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\font_cjk bsmi +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format pdf2 +\output_sync 0 +\bibtex_command default +\index_command default +\float_placement class +\float_alignment class +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tablestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +The bug only manifests with input encoding +\begin_inset Quotes eld +\end_inset + +utf8-cjk +\begin_inset Quotes erd +\end_inset + +, switching to +\begin_inset Quotes eld +\end_inset + +utf8 +\begin_inset Quotes erd +\end_inset + + (the new default in 2.4) works around the issue. +\end_layout + +\begin_layout Standard +Chinese (中文) +\end_layout + +\begin_layout Standard +\begin_inset listings +inline false +status open + +\begin_layout Plain Layout + +\begin_inset Caption Standard + +\begin_layout Plain Layout +ABCäöß +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +void main() +\end_layout + +\begin_layout Plain Layout + +{ +\begin_inset Quotes eld +\end_inset + +Größe +\begin_inset Quotes erd +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/autotests/export/latex/lyxbugs-resolved/9633-language-switch-in-tipa-inset.lyx b/autotests/export/latex/lyxbugs-resolved/9633-language-switch-in-tipa-inset.lyx new file mode 100644 index 0000000000..dd738e7012 --- /dev/null +++ b/autotests/export/latex/lyxbugs-resolved/9633-language-switch-in-tipa-inset.lyx @@ -0,0 +1,113 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 574 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding utf8 +\fontencoding auto +\font_roman "default" "FreeSerif" +\font_sans "default" "FreeSans" +\font_typewriter "default" "FreeMono" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts true +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format pdf4 +\output_sync 0 +\bibtex_command default +\index_command default +\float_placement class +\float_alignment class +\paperfontsize default +\spacing single +\use_hyperref false +\pdf_bookmarks false +\pdf_bookmarksnumbered false +\pdf_bookmarksopen false +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder true +\pdf_colorlinks true +\pdf_backref section +\pdf_pdfusetitle true +\papersize a4paper +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification false +\use_refstyle 0 +\use_minted 0 +\index Stichwortverzeichnis +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tablestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +Language change in a tipa-inset must not use an environment (error with + Polyglossia). +\end_layout + +\begin_layout Standard +language +\lang french +switch: +\begin_inset IPA + +\begin_layout Standard +[a] +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/autotests/export/latex/languagenesting1.lyx b/autotests/export/latex/lyxbugs-resolved/9633-languagenesting1.lyx similarity index 87% rename from autotests/export/latex/languagenesting1.lyx rename to autotests/export/latex/lyxbugs-resolved/9633-languagenesting1.lyx index 5b23029cd3..1afd7daf61 100644 --- a/autotests/export/latex/languagenesting1.lyx +++ b/autotests/export/latex/lyxbugs-resolved/9633-languagenesting1.lyx @@ -1,11 +1,11 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ -\lyxformat 512 +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 574 \begin_document \begin_header \save_transient_properties true \origin unavailable \textclass scrbook -\options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading +\options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading \use_default_options false \begin_modules logicalmkup @@ -32,8 +32,8 @@ End \end_local_layout \language ngerman \language_package default -\inputencoding auto -\fontencoding global +\inputencoding auto-legacy +\fontencoding auto \font_roman "default" "FreeSans" \font_sans "default" "FreeSans" \font_typewriter "default" "FreeSans" @@ -45,11 +45,14 @@ End \font_sf_scale 100 100 \font_tt_scale 100 100 \use_microtype false +\use_dash_ligatures true \graphics default -\default_output_format pdf5 +\default_output_format pdf4 \output_sync 0 \bibtex_command default \index_command default +\float_placement class +\float_alignment class \paperfontsize 12 \spacing single \use_hyperref true @@ -83,6 +86,7 @@ End \suppress_date false \justification true \use_refstyle 0 +\use_minted 0 \notefontcolor #0000ff \index Stichwortverzeichnis \shortcut idx @@ -92,10 +96,15 @@ End \tocdepth 3 \paragraph_separation indent \paragraph_indentation default -\quotes_language german +\is_math_indent 1 +\math_indentation default +\math_numbering_side default +\quotes_style german +\dynamic_quotes 0 \papercolumns 1 \papersides 2 \paperpagestyle headings +\tablestyle default \tracking_changes false \output_changes false \html_math_output 0 @@ -150,7 +159,6 @@ status open \begin_layout Plain Layout -\lang english 3 \end_layout diff --git a/autotests/export/latex/languagenesting2.lyx b/autotests/export/latex/lyxbugs-resolved/9633-languagenesting2.lyx similarity index 100% rename from autotests/export/latex/languagenesting2.lyx rename to autotests/export/latex/lyxbugs-resolved/9633-languagenesting2.lyx diff --git a/autotests/export/latex/languagenesting_enumerate_and_lyxcode.lyx b/autotests/export/latex/lyxbugs-resolved/9633-languagenesting_enumerate_and_lyxcode.lyx similarity index 96% rename from autotests/export/latex/languagenesting_enumerate_and_lyxcode.lyx rename to autotests/export/latex/lyxbugs-resolved/9633-languagenesting_enumerate_and_lyxcode.lyx index 51b885da2b..3e429f15a3 100644 --- a/autotests/export/latex/languagenesting_enumerate_and_lyxcode.lyx +++ b/autotests/export/latex/lyxbugs-resolved/9633-languagenesting_enumerate_and_lyxcode.lyx @@ -1,5 +1,5 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ -\lyxformat 512 +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 574 \begin_document \begin_header \save_transient_properties true @@ -38,7 +38,7 @@ } }{} \end_preamble -\options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading +\options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading \use_default_options false \begin_modules logicalmkup @@ -46,24 +46,27 @@ logicalmkup \maintain_unincluded_children false \language ngerman \language_package default -\inputencoding auto -\fontencoding global +\inputencoding utf8 +\fontencoding auto \font_roman "lmodern" "FreeSerif" \font_sans "lmss" "default" \font_typewriter "lmtt" "default" \font_math "auto" "auto" \font_default_family default -\use_non_tex_fonts true +\use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 100 \font_tt_scale 100 100 \use_microtype false +\use_dash_ligatures true \graphics default -\default_output_format pdf5 +\default_output_format default \output_sync 0 \bibtex_command default \index_command default +\float_placement class +\float_alignment class \paperfontsize 12 \spacing single \use_hyperref true @@ -102,6 +105,7 @@ logicalmkup \suppress_date false \justification true \use_refstyle 0 +\use_minted 0 \notefontcolor #0000ff \branch OutDated \selected 0 @@ -116,10 +120,15 @@ logicalmkup \tocdepth 3 \paragraph_separation indent \paragraph_indentation default -\quotes_language german +\is_math_indent 1 +\math_indentation default +\math_numbering_side default +\quotes_style german +\dynamic_quotes 0 \papercolumns 1 \papersides 2 \paperpagestyle headings +\tablestyle default \tracking_changes false \output_changes false \html_math_output 0 @@ -389,10 +398,6 @@ InsetLayout -Definition kann folgende Einträge enthalten: \end_layout -\begin_layout Description - -\end_layout - \begin_layout Subsection \lang english diff --git a/autotests/export/latex/languagenesting_index_inset.lyx b/autotests/export/latex/lyxbugs-resolved/9633-languagenesting_index_inset.lyx similarity index 90% rename from autotests/export/latex/languagenesting_index_inset.lyx rename to autotests/export/latex/lyxbugs-resolved/9633-languagenesting_index_inset.lyx index 039827d832..9b71332c13 100644 --- a/autotests/export/latex/languagenesting_index_inset.lyx +++ b/autotests/export/latex/lyxbugs-resolved/9633-languagenesting_index_inset.lyx @@ -1,5 +1,5 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ -\lyxformat 512 +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 574 \begin_document \begin_header \save_transient_properties true @@ -14,8 +14,8 @@ logicalmkup \maintain_unincluded_children false \language french \language_package default -\inputencoding auto -\fontencoding global +\inputencoding auto-legacy +\fontencoding auto \font_roman "lmodern" "default" \font_sans "lmss" "default" \font_typewriter "lmtt" "default" @@ -27,11 +27,14 @@ logicalmkup \font_sf_scale 100 100 \font_tt_scale 100 100 \use_microtype false +\use_dash_ligatures true \graphics default -\default_output_format pdf5 +\default_output_format pdf4 \output_sync 0 \bibtex_command bibtex \index_command default +\float_placement class +\float_alignment class \paperfontsize 12 \spacing single \use_hyperref false @@ -70,6 +73,7 @@ logicalmkup \suppress_date false \justification true \use_refstyle 1 +\use_minted 0 \notefontcolor #0000ff \branch Question \selected 1 @@ -89,10 +93,14 @@ logicalmkup \tocdepth 2 \paragraph_separation skip \defskip medskip -\quotes_language french +\is_math_indent 0 +\math_numbering_side default +\quotes_style swiss +\dynamic_quotes 0 \papercolumns 1 \papersides 2 \paperpagestyle default +\tablestyle default \tracking_changes false \output_changes false \html_math_output 0 @@ -175,6 +183,8 @@ set_width "auto" \begin_inset CommandInset index_print LatexCommand printindex type "idx" +name "Index" +literal "true" \end_inset diff --git a/autotests/export/latex/languagenesting_tablecell.lyx b/autotests/export/latex/lyxbugs-resolved/languagenesting_tablecell.lyx similarity index 100% rename from autotests/export/latex/languagenesting_tablecell.lyx rename to autotests/export/latex/lyxbugs-resolved/languagenesting_tablecell.lyx diff --git a/autotests/export/latex/LongestLabelWithUnderscore.lyx b/autotests/export/latex/lyxbugs/10371-LongestLabelWithUnderscore.lyx similarity index 100% rename from autotests/export/latex/LongestLabelWithUnderscore.lyx rename to autotests/export/latex/lyxbugs/10371-LongestLabelWithUnderscore.lyx diff --git a/autotests/export/latex/languages/fa-OT1.lyx b/autotests/export/latex/lyxbugs/11521-fa_OT1.lyx similarity index 100% rename from autotests/export/latex/languages/fa-OT1.lyx rename to autotests/export/latex/lyxbugs/11521-fa_OT1.lyx diff --git a/autotests/export/latex/systemfonts-Math-missingchars.lyx b/autotests/export/latex/lyxbugs/11522-systemfonts-Math-missingchars.lyx similarity index 100% rename from autotests/export/latex/systemfonts-Math-missingchars.lyx rename to autotests/export/latex/lyxbugs/11522-systemfonts-Math-missingchars.lyx diff --git a/autotests/export/latex/11532-misplaced-inputenc-switch.lyx b/autotests/export/latex/lyxbugs/11532-misplaced-inputenc-switch.lyx similarity index 100% rename from autotests/export/latex/11532-misplaced-inputenc-switch.lyx rename to autotests/export/latex/lyxbugs/11532-misplaced-inputenc-switch.lyx diff --git a/autotests/export/latex/001-4-latin-OT1.lyx b/autotests/export/latex/lyxbugs/11583-latin-extended_OT1.lyx similarity index 94% rename from autotests/export/latex/001-4-latin-OT1.lyx rename to autotests/export/latex/lyxbugs/11583-latin-extended_OT1.lyx index 1a99945f2f..047383956c 100644 --- a/autotests/export/latex/001-4-latin-OT1.lyx +++ b/autotests/export/latex/lyxbugs/11583-latin-extended_OT1.lyx @@ -1,18 +1,18 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ -\lyxformat 523 +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 574 \begin_document \begin_header \save_transient_properties true \origin unavailable \textclass article \begin_preamble -\usepackage{wasysym} % provides \DH, \dh, \Thorn, \thorn -\ProvideTextCommandDefault{\TH}{\Thorn} -\ProvideTextCommandDefault{\th}{\thorn} +%\usepackage{wasysym} % provides \DH, \dh, \Thorn, \thorn +%\ProvideTextCommandDefault{\TH}{\Thorn} +%\ProvideTextCommandDefault{\th}{\thorn} -\DeclareTextAccentDefault{\k}{T1} -\DeclareTextSymbolDefault{\NG}{T1} -\DeclareTextSymbolDefault{\ng}{T1} +%\DeclareTextAccentDefault{\k}{T1} +%\DeclareTextSymbolDefault{\NG}{T1} +%\DeclareTextSymbolDefault{\ng}{T1} %\DeclareTextSymbolDefault{\DH}{T1} %\DeclareTextSymbolDefault{\dh}{T1} %\DeclareTextSymbolDefault{\TH}{T1} @@ -36,11 +36,14 @@ \font_sf_scale 100 100 \font_tt_scale 100 100 \use_microtype false +\use_dash_ligatures true \graphics default \default_output_format pdf2 \output_sync 0 \bibtex_command default \index_command default +\float_placement class +\float_alignment class \paperfontsize default \spacing single \use_hyperref false @@ -65,6 +68,7 @@ \suppress_date false \justification true \use_refstyle 0 +\use_minted 0 \branch na \selected 0 \filename_suffix 0 @@ -78,11 +82,14 @@ \tocdepth 3 \paragraph_separation skip \defskip medskip +\is_math_indent 0 +\math_numbering_side default \quotes_style english \dynamic_quotes 0 \papercolumns 1 \papersides 1 \paperpagestyle default +\tablestyle default \tracking_changes false \output_changes false \html_math_output 0 @@ -168,6 +175,10 @@ Accent makro k not available in the OT1 font encoding. \end_layout +\begin_layout Standard +See the user preamble for workarounds. +\end_layout + \begin_layout Labeling \labelwidthstring 00.00.0000 A0   ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ­ ® ¯ diff --git a/autotests/export/latex/iconv-error-nomenclature.lyx b/autotests/export/latex/lyxbugs/11584-iconv-error-nomenclature.lyx similarity index 100% rename from autotests/export/latex/iconv-error-nomenclature.lyx rename to autotests/export/latex/lyxbugs/11584-iconv-error-nomenclature.lyx diff --git a/autotests/export/latex/lyxbugs/3059-language-in-tables.lyx b/autotests/export/latex/lyxbugs/3059-language-in-tables.lyx new file mode 100644 index 0000000000..20448158b3 --- /dev/null +++ b/autotests/export/latex/lyxbugs/3059-language-in-tables.lyx @@ -0,0 +1,376 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 574 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\begin_preamble +% DO NOT ALTER THIS PREAMBLE!!! +% +%This preamble is designed to ensure that the document prints +% out as advertised. If you mess with this preamble, +% parts of the document may not print out as expected. If you +% have problems LaTeXing this file, please contact +% the documentation team +% email: lyx-docs@lists.lyx.org + +\usepackage{ifpdf} % part of the hyperref bundle +\ifpdf % if pdflatex is used + +% XeTeX with Hebrew does not like this bookmark code +% so it is in the conditional. +% The pages of the TOC is numbered roman +% and a pdf-bookmark for the TOC is added +\pagenumbering{roman} +\let\myTOC\tableofcontents +\renewcommand\tableofcontents{% + \pdfbookmark[1]{\contentsname}{} + \myTOC + \cleardoublepage + \pagenumbering{arabic} } + +\fi % end if pdflatex is used + +%disable hyphenation (breaking words at end of line) +\usepackage[none]{hyphenat} + +%disable double space after end-of-sentence period +\frenchspacing +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language hebrew +\language_package default +\inputencoding auto-legacy +\fontencoding auto +\font_roman "lmodern" "FreeSerif" +\font_sans "default" "FreeSans" +\font_typewriter "default" "FreeMono" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\float_placement class +\float_alignment class +\paperfontsize 12 +\spacing single +\use_hyperref false +\pdf_bookmarks false +\pdf_bookmarksnumbered false +\pdf_bookmarksopen false +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder false +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index אינדקס +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 2 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tablestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard + +\lang english +In this Hebrew document, content of the right table column ( +\lang hebrew +יחידה +\lang english +) comes out as Latin accented characters (ÄÃÉÇÉ) in the output if the tables + +\begin_inset Quotes eld +\end_inset + +outer +\begin_inset Quotes erd +\end_inset + + language is English and the input encoding is set to +\begin_inset Quotes eld +\end_inset + +language default +\begin_inset Quotes erd +\end_inset + + (auto-legacy): +\end_layout + +\begin_layout Standard +\align center + +\lang english +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +יחידה +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +יחידה +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +יחידה +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +יחידה +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard + +\lang english +Compare with a table where the +\begin_inset Quotes eld +\end_inset + +outer +\begin_inset Quotes erd +\end_inset + + language is Hebrew: +\end_layout + +\begin_layout Standard +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +יחידה +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +יחידה +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +יחידה +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +יחידה +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard + +\lang english +What would you expext from a table in an Englisch paragraph like this +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +top left +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\numeric on +12 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\numeric on +21 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +bottom right +\end_layout + +\end_inset + + + + +\end_inset + +? IMO, the table content should inherit the +\begin_inset Quotes eld +\end_inset + +outer +\begin_inset Quotes erd +\end_inset + + language but here it is the document language and therefore mirrored (RTL) + and in small-caps. +\end_layout + +\begin_layout Standard + +\lang ngerman +Absatz in Deutsch mit Tablle: +\begin_inset Tabular + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Da kommt größter Mist raus! HE +\numeric on +8 +\numeric off + misses ð and þ +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/autotests/export/latex/6197-polish-amssymb.lyx b/autotests/export/latex/lyxbugs/6197-polish-amssymb.lyx similarity index 89% rename from autotests/export/latex/6197-polish-amssymb.lyx rename to autotests/export/latex/lyxbugs/6197-polish-amssymb.lyx index 31ac474c05..9ef2699ed8 100644 --- a/autotests/export/latex/6197-polish-amssymb.lyx +++ b/autotests/export/latex/lyxbugs/6197-polish-amssymb.lyx @@ -1,5 +1,5 @@ #LyX 2.4 created this file. For more info see https://www.lyx.org/ -\lyxformat 567 +\lyxformat 574 \begin_document \begin_header \save_transient_properties true @@ -9,7 +9,7 @@ \maintain_unincluded_children false \language polish \language_package default -\inputencoding auto +\inputencoding auto-legacy \fontencoding auto \font_roman "lmodern" "default" \font_sans "default" "default" @@ -24,7 +24,7 @@ \use_microtype false \use_dash_ligatures true \graphics default -\default_output_format pdf +\default_output_format pdf5 \output_sync 0 \bibtex_command default \index_command default @@ -70,6 +70,7 @@ \papercolumns 1 \papersides 1 \paperpagestyle default +\tablestyle default \tracking_changes false \output_changes false \html_math_output 0 @@ -88,7 +89,7 @@ amssymb \begin_inset Quotes prd \end_inset - with Polish babel. + with Polish babel: \end_layout \begin_layout Standard @@ -101,10 +102,10 @@ llless because Polish babel re-defines \backslash lll as character 0x142 LATIN SMALL LETTER L WITH STROKE: -\begin_inset Formula $\lll$ +\begin_inset Formula $\lll\rightarrow$ \end_inset - = ł. + ł. \end_layout \begin_layout Standard @@ -115,10 +116,18 @@ The toolbar button [ ] inserts \backslash lll which becomes +\begin_inset Quotes pld +\end_inset + + \begin_inset Formula $\lll$ \end_inset -. + +\begin_inset Quotes prd +\end_inset + + with pdfTeX and a missing symbol with LuaTeX.. \end_layout \end_body diff --git a/autotests/export/latex/lyxbugs/8479-listings-caption_zh-TW_utf8-cjk.lyx b/autotests/export/latex/lyxbugs/8479-listings-caption_zh-TW_utf8-cjk.lyx new file mode 100644 index 0000000000..6c64af1cbe --- /dev/null +++ b/autotests/export/latex/lyxbugs/8479-listings-caption_zh-TW_utf8-cjk.lyx @@ -0,0 +1,135 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 574 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\use_default_options true +\maintain_unincluded_children false +\language chinese-traditional +\language_package default +\inputencoding utf8-cjk +\fontencoding auto +\font_roman "default" "IPAexMincho" +\font_sans "default" "IPAGothic" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\font_cjk bsmi +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format pdf2 +\output_sync 0 +\bibtex_command default +\index_command default +\float_placement class +\float_alignment class +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tablestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +Chinese (中文) +\end_layout + +\begin_layout Standard +\begin_inset listings +inline false +status open + +\begin_layout Plain Layout + +\begin_inset Caption Standard + +\begin_layout Plain Layout +ABCäöß +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +void main() +\end_layout + +\begin_layout Plain Layout + +{ +\begin_inset Quotes eld +\end_inset + +Größe +\begin_inset Quotes erd +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/autotests/export/latex/bug9871-slovak-ascii-preambleencoding.lyx b/autotests/export/latex/lyxbugs/9871-slovak-ascii-preambleencoding.lyx similarity index 79% rename from autotests/export/latex/bug9871-slovak-ascii-preambleencoding.lyx rename to autotests/export/latex/lyxbugs/9871-slovak-ascii-preambleencoding.lyx index e5eda6d009..45f002f7c3 100644 --- a/autotests/export/latex/bug9871-slovak-ascii-preambleencoding.lyx +++ b/autotests/export/latex/lyxbugs/9871-slovak-ascii-preambleencoding.lyx @@ -1,5 +1,5 @@ #LyX 2.4 created this file. For more info see https://www.lyx.org/ -\lyxformat 566 +\lyxformat 574 \begin_document \begin_header \save_transient_properties true @@ -82,6 +82,7 @@ theorems-ams-bytype \papercolumns 1 \papersides 1 \paperpagestyle default +\tablestyle default \tracking_changes false \output_changes false \html_math_output 0 @@ -92,7 +93,16 @@ theorems-ams-bytype \begin_body \begin_layout Standard -minimal test for bug #9871 +Minimal test for bug #9871 +\end_layout + +\begin_layout Standard +Error 84 returned from iconv when converting from UCS-4LE to ascii: +\end_layout + +\begin_layout LyX-Code + Invalid or incomplete multibyte or wide character. + \end_layout \begin_layout Standard @@ -123,7 +133,24 @@ list of listings \begin_inset Quotes grd \end_inset - is present: + is present due to BabelPreamble code. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Language specific headings for # theorems, problems , ... + are written in the language's default encoding if they contain non-ASCII + characters. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +See also the discussion at: https://www.mail-archive.com/search?l=mid&q=2017022819 +0738.cgs3tl3ny2bxiegk%40steph \end_layout \begin_layout Standard diff --git a/autotests/export/latex/lyxbugs/wrong_output_3059-rtl-tables-xetex.lyx b/autotests/export/latex/lyxbugs/wrong_output_3059-rtl-tables-xetex.lyx new file mode 100644 index 0000000000..d3cfed7b8e --- /dev/null +++ b/autotests/export/latex/lyxbugs/wrong_output_3059-rtl-tables-xetex.lyx @@ -0,0 +1,268 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 574 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\begin_preamble +% DO NOT ALTER THIS PREAMBLE!!! +% +%This preamble is designed to ensure that the document prints +% out as advertised. If you mess with this preamble, +% parts of the document may not print out as expected. If you +% have problems LaTeXing this file, please contact +% the documentation team +% email: lyx-docs@lists.lyx.org + +\usepackage{ifpdf} % part of the hyperref bundle +\ifpdf % if pdflatex is used + +% XeTeX with Hebrew does not like this bookmark code +% so it is in the conditional. +% The pages of the TOC is numbered roman +% and a pdf-bookmark for the TOC is added +\pagenumbering{roman} +\let\myTOC\tableofcontents +\renewcommand\tableofcontents{% + \pdfbookmark[1]{\contentsname}{} + \myTOC + \cleardoublepage + \pagenumbering{arabic} } + +\fi % end if pdflatex is used + +%disable hyphenation (breaking words at end of line) +\usepackage[none]{hyphenat} + +%disable double space after end-of-sentence period +\frenchspacing +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language hebrew +\language_package default +\inputencoding auto-legacy +\fontencoding auto +\font_roman "lmodern" "FreeSerif" +\font_sans "default" "FreeSans" +\font_typewriter "default" "FreeMono" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts true +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf4 +\output_sync 0 +\bibtex_command default +\index_command default +\float_placement class +\float_alignment class +\paperfontsize 12 +\spacing single +\use_hyperref false +\pdf_bookmarks false +\pdf_bookmarksnumbered false +\pdf_bookmarksopen false +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder false +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index אינדקס +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 2 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tablestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard + +\lang english +In an right-to-left language document, tables should be output in the same + way as shown in the GUI. + If the table is set to a secondary language, the columns or text inside + it are switched with XeTeX. +\end_layout + +\begin_layout Standard +\begin_inset Float table +placement t +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +יחידות מדידה +\begin_inset CommandInset label +LatexCommand label +name "tab:יחידות-מדידה" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset VSpace medskip +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center + +\lang english +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +שם או תיאור +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +יחידה +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +מילימטר +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +mm +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +cc +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\lang english +cicero (1 +\begin_inset Formula $\,$ +\end_inset + +cc = 12 +\begin_inset Formula $\,$ +\end_inset + +dd) +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/development/autotests/ignoredTests b/development/autotests/ignoredTests index 9b65b37523..21343d5538 100644 --- a/development/autotests/ignoredTests +++ b/development/autotests/ignoredTests @@ -30,6 +30,10 @@ export/doc/(ja/|)MergedManuals_(xhtml|lyx2[2-9]) # see https://www.gnu.org/software/libiconv/) export/export/latex/inputenc-cp858_pdf2 +# Korean legacy encoding fails (missing fonts) +# 2019-05-17: This is a minor issue since we default to utf8 now. +export/export/latex/CJK/ko_default_pdf2 + # =========================================== Sublabel: special @@ -174,12 +178,18 @@ lyx2lyx/export/latex/.* export/export/latex/.*(lyx..|xhtml) # don't test with non-TeX fonts: +export/export/latex/inputenc-.*_systemF # 11522 still open but already tested export/export/latex/languages/supported-languages_babel_(pdf|dvi)._systemF export/export/latex/languages/supported-languages_babel_auto-legacy_.*_systemF +export/export/latex/lyxbugs/3059-language-in-tables_pdf4_systemF +export/export/latex/lyxbugs/6197-polish-amssymb_pdf5_systemF # don't test with TeX fonts: export/export/latex/languages/supported-languages_babel_non-tex_.*(dvi|pdf.?|texF) export/export/latex/languages/supported-languages_polyglossia_.*(dvi|pdf.?|texF) +export/export/latex/lyxbugs-resolved/9633-.*(dvi|pdf.?|texF) +export/export/latex/lyxbugs/11522-systemfonts-Math-missingchars_pdf5_texF +export/export/latex/lyxbugs/wrong_output_3059-rtl-tables-xetex_pdf4_texF # HTML # don't check loading, lyx2lyx, or export to other LyX versions or DVI/PDF diff --git a/development/autotests/invertedTests b/development/autotests/invertedTests index 219c4f5975..654951c69f 100644 --- a/development/autotests/invertedTests +++ b/development/autotests/invertedTests @@ -20,9 +20,6 @@ Sublabel: todo # XeTeX artifact? works with LuaTeX, explore: export/doc/(|de/|es/|fr/)EmbeddedObjects_pdf4_systemF -# iconv fails, if a nomenclature inset contains an uncodable character -export/export/latex/iconv-error-nomenclature_pdf2 - # `acmart` document class: # (see also lyxbugs below and ignoredTests) # issues with listsof, reported to the maintainer @@ -54,9 +51,6 @@ export/examples/(|es/)Curricula_Vitae/Europe_CV_(dvi|dvi3.*F|pdf|pdf3) # back-conversion fails for rotated float inset in a list export/export/lyx2lyx/lyx_2_3_test_lyx(16|20|21|22) -# Korean legacy encoding fails (missing fonts) -export/export/latex/CJK/ko_default_pdf2 - # New problem with TL18: endless loop? # ! TeX capacity exceeded, sorry [input stack +size=5000]. export/export/latex/luainputenc-utf8_pdf5_texF @@ -67,11 +61,6 @@ export/templates/Articles/International_Union_of_Crystallography.*_pdf4_systemF export/templates/Articles/R_Journal_(dvi3|pdf[45])_systemF #export/templates/Articles/Kluwer_.*_systemF -# Babel with non-TeX fonts fails for some supported languages -# Lithuanian: L7x font encoding also set with LuaTeX and non-TeX fonts -# (error but output OK) -export/export/latex/languages/supported-languages_babel_non-tex_(dvi3|pdf5)_systemF - # Thai with CJK package requires the babel option "thaicjk" instead of "thai". # (see thaifont.txt in the CJK documentation for setup details). export/export/latex/unicodesymbols/031-thai_th_(euc-|gbk|jis|utf8-cjk).* @@ -94,10 +83,11 @@ Sublabel: lyxbugs # LyX bugs with a Trac number. # ================================================ -#6197: „amssymb” with Polish babel name clash \lll ("<<<" vs. "ł") -# Wrong output with pdflatex (-> unreliableTests), -# missing glyph with XeTeX/LuaTeX and Babel (OK with Polyglossia) -export/export/latex/6197-polish-amssymb_pdf._texF +# Dedicated tests in export/latex/lyxbugs start with the ticket number +# (move to export/latex/lyxbugs-resolved when the problem is fixed). +# catchall: +export/export/latex/lyxbugs/[0-9].* + #8035 work around a Polyglossia bug: # An error is reported if the document font does not announce support for a @@ -111,20 +101,6 @@ export/export/latex/6197-polish-amssymb_pdf._texF # The document "sr/Braille.lyx" is an example of case b). # (For some reason, the false positive error is not thrown with PDF (luatex).) export/examples/sr/Modules/Braille_(dvi3|pdf4)_systemF -export/export/latex/language-in-tables_.*_systemF - -#9633 Nested language handling causes compilation failures with polyglossia -export/export/latex/languagenesting-quote-branch_.*_systemF - -#9871 LyX sends invalid Unicode to iconv when converting to ASCII -# most probably due to BabelPreamble code (language specific headings for -# theorems, problems , ... are written in the language's default encoding -# if they contain non-ASCII characters) -# Error 84 returned from iconv when converting from UCS-4LE to ascii: -# Invalid or incomplete multibyte or wide character. -# see also the discussion at: -# https://www.mail-archive.com/search?l=mid&q=20170228190738.cgs3tl3ny2bxiegk%40steph -export/export/latex/bug9871-slovak-ascii-preambleencoding_pdf2 #10355 xmllint detects failures export/doc/attic/eu_UserGuide_xhtml @@ -132,10 +108,6 @@ export/doc/(es|ja)/UserGuide_xhtml export/examples/External_Material/Spreadsheet_xhtml export/export/WrongDfnTagHandling_xhtml -#10371 Compilation error if longest label marker in labeling style -# contains underscores etc. -export/export/latex/LongestLabelWithUnderscore.* - #11455 "Unable to process argument!" with multiple 1.6.x roundtrips export/templates/Articles/IEEE_Transactions_Journal_lyx16 @@ -145,20 +117,15 @@ export/templates/Articles/IEEE_Transactions_Journal_lyx16 # Find out why and whether the script could be improved. export/examples/Modules/Noweb_Listerrors_(pdf[245]).* -#11521 Font encoding "LAE" required with farsi. -# The Farsi font encoding LAE must be added also to a custom font encoding -# (similar to the Greek and Cyrillic font encodings LGR and T2A). -export/export/latex/languages/fa-OT1_pdf2 - #11522 Support specification of complementing non-TeX fonts # # More than one non-TeX font required for the character set in many documents # to prevent "missing glyph" errors with non-TeX fonts # -export/export/latex/.*inputenc-.*_systemF +#export/export/latex/inputenc-.*_systemF # problem remains but test now ignored export/doc/(|de/|es/|fr/)Math.*systemF -# minimal example for Math.lyx: -export/export/latex/systemfonts-Math-missingchars.*systemF +# a minimal example for Math.lyx is in +#export/export/latex/lyxbugs/11522-systemfonts-Math-missingchars.*systemF # # Farsi: missing glyphs (em space and "English" quotes) export/examples/fa/Welcome_pdf4_systemF @@ -174,17 +141,6 @@ export/examples/ja/Modules/Linguistics.*systemF # (the lyx2lyx test also tests compilation after round-trip) export/doc/ar/UserGuide_pdf4_systemF export/doc/ar/UserGuide_lyx(22|23) -# -# Juergen Spitzmueller: They do not have problems with xunicode, but without. -# The reason is that the asterisk glyph is not included in the arabic font -# (Scheherazade), but apparently, xunicode defines an extra asterisk -# glyph (for a different purpose) that is being used here. Clearly the -# problem should be fixed somewhere else. -# Günter Milde: works in TeXLive17 (Debian/stretch) -# export/doc/ar/Intro_pdf4_systemF - -#11532 inputencoding desynchronisation -export/export/latex/11532-misplaced-inputenc-switch_pdf2 # ============================================================== @@ -203,13 +159,14 @@ Sublabel: texissues # e.g. non-ASCII in verbatim or listings, incompatible packages, ... # "Wontfix" if documents demonstrate correct use in the default output format. -# Problem with Czech and Slovak Babel support. -# (reported per mail to Petr Tesa\v{r}\'ik, 2016-09-06) -# All exports using babel fail. -# Without the Czech or Slovak text it compiles -# No problem with inserted German (or other foreign language) text -# No problem if the table is Slovak, too -export/export/latex/TableErrorIfSlovakTextInserted_(dvi|pdf[23]?|.*_texF) +# Compilation error with Chech or Slovak text i a table cell. +# All exports using babel fail (problem in Czech and Slovak Babel support, +# reported per mail to Petr Tesa\v{r}\'ik, 2016-09-06) +# Without the Czech or Slovak text it compiles. +# No problem with inserted German (or other foreign language) text. +# No problem if the complete table is Slovak, too. +export/export/latex/languages/en-sk-cz-babel-table-error_(dvi|pdf[23]?|.*_texF) + # Xe/LuaTeX ########### @@ -230,6 +187,35 @@ export/export/latex/languages/uk-babel-date-missing-chars-with-ascii_(pdf4|dvi3) export/doc/uk/Intro_pdf4_texF export/examples/uk/Welcome_pdf4_texF +# Babel with non-TeX fonts fails for some supported languages +# Lithuanian: L7x font encoding also set with LuaTeX and non-TeX fonts +# (error but output OK) +export/export/latex/languages/supported-languages_babel_non-tex_(dvi3|pdf5)_systemF + +# Babel-French fails with Xe/LuaTeX and TeX fonts +# LaTeX Error: Command \at already defined. (and a lot more) +export/export/latex/languages/supported-languages_(dvi|pdf).*_texF +export/export/latex/languages/supported-languages_babel_(dvi|pdf).*_texF + +# Babel-Spanish fails sometimes with XeTeX and TeX fonts +export/doc/es/(Math|UserGuide|EmbeddedObjects|Customization)_pdf4_texF + +# Polyglossia + LuaTeX issue +# Reported upstream here: +# https://github.com/reutenauer/polyglossia/issues/163 +# These tests were broken at 3374b854 +# See discussion here: +# https://www.mail-archive.com/search?l=mid&q=1478004223.2367.5.camel%40lyx.org +export/doc/(sk|nb)/Intro_(dvi3|pdf5)_systemF +# some Polyglossia languages work only with XeTeX and fail with LuaTeX: +# * The font "NotoSansEthiopic" cannot be found. +# * sanskrit: ! Undefined control sequence. +# l.53 \newXeTeXintercharclass +# * RTL-languages: ! Undefined control sequence. +# \setLR ->\@RTLfalse \luatexpardir +export/export/latex/languages/supported-languages_polyglossia_(dvi3|pdf5)_systemF + + # Some packages fail with XeTeX/LuaTeX # Reported upstream (https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg184435.html) # Is there a new version fixing the problem? @@ -249,34 +235,16 @@ export/examples/Modules/Hazard_and_Precautionary_Statements_.*_systemF # xy package: export/examples/(|fr/)Graphics_and_Insets/XY-(Pic|Figure)_pdf5.* -# Polyglossia + LuaTeX issue -# Reported upstream here: -# https://github.com/reutenauer/polyglossia/issues/163 -# These tests were broken at 3374b854 -# See discussion here: -# https://www.mail-archive.com/search?l=mid&q=1478004223.2367.5.camel%40lyx.org -export/doc/(sk|nb)/Intro_(dvi3|pdf5)_systemF -# some Polyglossia languages work only with XeTeX and fail with LuaTeX: -# * The font "NotoSansEthiopic" cannot be found. -# * sanskrit: ! Undefined control sequence. -# l.53 \newXeTeXintercharclass -# * RTL-languages: ! Undefined control sequence. -# \setLR ->\@RTLfalse \luatexpardir -export/export/latex/languages/supported-languages_polyglossia_(dvi3|pdf5)_systemF - # fontspec errors with `slides` class: # LaTeX error: "kernel/command-already-defined" # Lines 2684 ... 2690 in fontspec-xetex.sty # Lines 2608 ... 2614 in fontspec-luatex.sty export/templates/Presentations/Slides_.*_systemF -# Babel-French fails with Xe/LuaTeX and TeX fonts -# LaTeX Error: Command \at already defined. (and a lot more) -export/export/latex/languages/supported-languages_(dvi|pdf).*_texF -export/export/latex/languages/supported-languages_babel_(dvi|pdf).*_texF +# expl3.sty: Compilation errors with XeTeX, TeX-fonts, inputenc utf8 +# (TL 17 works). +export/export/latex/inputenc-xetex-utf8-expl3-bug_pdf4_texF -# Babel-Spanish fails sometimes with XeTeX and TeX fonts -export/doc/es/(Math|UserGuide|EmbeddedObjects|Customization)_pdf4_texF # Arabic # diff --git a/development/autotests/unreliableTests b/development/autotests/unreliableTests index ef9e960ab4..b14c197c23 100644 --- a/development/autotests/unreliableTests +++ b/development/autotests/unreliableTests @@ -141,11 +141,11 @@ export/export/latex/languages/uk-babel-date-missing-chars-with-ascii_.*_texF export/(doc|examples)/uk/(Intro|Welcome)_.*_texF # new problem with TL18 (see invertedTests) -export/export/latex/luainputenc-utf8_pdf5_texF +export/export/latex/inputenc-luatex-utf8_pdf5_texF # Compilation errors under TeXLive-19 with XeTeX, TeX-fonts, inputenc utf8, # and expl3.sty (TL 17 works). -export/export/latex/xetex-inputenc-utf8-expl3-bug_pdf4_texF +export/export/latex/inputenc-xetex-utf8-expl3-bug_pdf4_texF # aastex: hard-coded version in class name: # 2018-05-12 aastex6.cls -> aastex62.cls -- 2.39.5