From 275bb441582402ba7e5d3968bbd9fea6b733db01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Milde?= Date: Thu, 4 May 2017 18:05:18 +0200 Subject: [PATCH] ctests: move issue with nomenclature insets to a dedicated test case. iconv fails, if a nomenclature inset contains an uncodable character This led to failure of the indonesian UserGuide in the attic. Fix it there and add a minimal, specific test sample instead. --- .../export/latex/iconv-error-nomenclature.lyx | 149 ++++++++++++++++++ development/autotests/invertedTests | 3 + lib/doc/attic/id_UserGuide.lyx | 2 +- 3 files changed, 153 insertions(+), 1 deletion(-) create mode 100644 autotests/export/latex/iconv-error-nomenclature.lyx diff --git a/autotests/export/latex/iconv-error-nomenclature.lyx b/autotests/export/latex/iconv-error-nomenclature.lyx new file mode 100644 index 0000000000..645c9c36f9 --- /dev/null +++ b/autotests/export/latex/iconv-error-nomenclature.lyx @@ -0,0 +1,149 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 542 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "lmodern" "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 +\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 false +\use_refstyle 1 +\branch mfe +\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_number_before 0 +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle 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 +Iconv reports an error during latex export if a +\begin_inset Quotes eld +\end_inset + +nomenclature inset +\begin_inset Quotes erd +\end_inset + + contains a character that cannot be encoded using +\begin_inset Quotes eld +\end_inset + + +\backslash +inputenc +\begin_inset Quotes erd +\end_inset + +. + +\end_layout + +\begin_layout Standard +Examples: +\end_layout + +\begin_layout Standard +\begin_inset CommandInset nomenclature +LatexCommand nomenclature +symbol "α" +description "Greek letter alpha." +literal "true" + +\end_inset + + (uncodable symbol) +\end_layout + +\begin_layout Standard +\begin_inset CommandInset nomenclature +LatexCommand nomenclature +symbol "s" +description "Latin σ" +literal "true" + +\end_inset + + (uncodable description) +\end_layout + +\begin_layout Standard +\begin_inset CommandInset nomenclature +LatexCommand nomenclature +prefix "σ" +symbol "s" +description "Latin s" +literal "true" + +\end_inset + + (uncodable sortkey). +\end_layout + +\end_body +\end_document diff --git a/development/autotests/invertedTests b/development/autotests/invertedTests index 50de35e9a7..6786c40f47 100644 --- a/development/autotests/invertedTests +++ b/development/autotests/invertedTests @@ -49,6 +49,9 @@ export/examples/listerrors_(pdf[245]).* # (Also fails with Xe/LuaTeX and TeX-fonts -- as expected, see ignoredTests) export/examples/ko/splash_(dvi||pdf[23]?) +# iconv fails, if a nomenclature inset contains an uncodable character +export/export/latex/iconv-error-nomenclature_pdf2 + # input encoding tests # -------------------- # Please test and correct! diff --git a/lib/doc/attic/id_UserGuide.lyx b/lib/doc/attic/id_UserGuide.lyx index e59888dfed..8716acff00 100644 --- a/lib/doc/attic/id_UserGuide.lyx +++ b/lib/doc/attic/id_UserGuide.lyx @@ -28088,7 +28088,7 @@ should appear in nomenclature entries they need to be escaped by adding \begin_inset CommandInset nomenclature LatexCommand nomenclature symbol "\"@, \"|, \"!, \"\"" -description "The quote sign is output by writing ‘ \"\"\"\" '" +description "The quote sign is output by writing ` \"\"\"\" '" \end_inset