From: Günter Milde Date: Fri, 10 May 2019 14:21:09 +0000 (+0200) Subject: Fix/update inpuencoding / unicodesymbols ctests. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8a8b0ef6a0e54c39d0e962e075e614c02ce110c0;p=features.git Fix/update inpuencoding / unicodesymbols ctests. --- diff --git a/autotests/export/latex/inputenc-cp858.lyx b/autotests/export/latex/inputenc-cp858.lyx index 2cd2a3c7d7..a34ec444fd 100644 --- a/autotests/export/latex/inputenc-cp858.lyx +++ b/autotests/export/latex/inputenc-cp858.lyx @@ -171,12 +171,13 @@ literal "false" \end_inset -\end_layout +\begin_inset Note Note +status open -\begin_layout Standard +\begin_layout Plain Layout \begin_inset CommandInset include LatexCommand input -filename "unicodesymbols/012-hebrew_he_HE8.lyx" +filename "unicodesymbols/031-thai_th.lyx" literal "false" \end_inset @@ -184,11 +185,15 @@ literal "false" \end_layout -\begin_layout Standard -\begin_inset CommandInset include -LatexCommand input -filename "unicodesymbols/031-thai_th.lyx" -literal "false" +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Thai and Hebrew cannot be used in the same document (see supported-languages). +\end_layout \end_inset diff --git a/autotests/export/latex/luainputenc-utf8.lyx b/autotests/export/latex/luainputenc-utf8.lyx index 4be0e296a4..14e4c6b02d 100644 --- a/autotests/export/latex/luainputenc-utf8.lyx +++ b/autotests/export/latex/luainputenc-utf8.lyx @@ -218,23 +218,11 @@ literal "false" \end_layout \begin_layout Plain Layout -\begin_inset CommandInset include -LatexCommand input -filename "unicodesymbols/012-hebrew_he_HE8.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. +Hebrew does not work with LuaTeX and TeX-fonts, because it loads +\emph on +inputenc +\emph default + if not already loaded. \end_layout \end_inset diff --git a/autotests/export/latex/unicodesymbols/012-hebrew_HE8.lyx b/autotests/export/latex/unicodesymbols/012-hebrew_HE8.lyx new file mode 100644 index 0000000000..3e42d7bce2 --- /dev/null +++ b/autotests/export/latex/unicodesymbols/012-hebrew_HE8.lyx @@ -0,0 +1,212 @@ +#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 +\begin_preamble + +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding utf8 +\fontencoding HE8 +\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 false +\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 0 +\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 +\branch na +\selected 0 +\filename_suffix 0 +\color #faf0e6 +\end_branch +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\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 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Subsection* +12) Hebrew +\end_layout + +\begin_layout Standard +Hebrew characters are only available in the right font encoding (LHE or + HE8). + This file selects HE8 as custom font encoding under Document>Settings>Fonts. + The writing direction is unchanged, RTL support requires setting the text + language (cf. + 012-hebrew_he.lyx). +\end_layout + +\begin_layout Standard +590 +\begin_inset Branch na +inverted 0 +status open + +\begin_layout Standard +א֑ א֒ א֓ א֔ א֕ א֖ א֗ א֘ א֙ א֚ א֛ א֜ א֝ א֞ א֟ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +5A0 +\begin_inset Branch na +inverted 0 +status open + +\begin_layout Standard +א֠ א֡ א֢ א֣ א֤ א֥ א֦ א֧ א֨ א֩ א֪ א֫ א֬ א֭ א֮ א֯ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +5B0 אְ אֱ אֲ אֳ אִ אֵ אֶ אַ אָ אֹ +\begin_inset Branch na +inverted 0 +status open + +\begin_layout Standard +אֺ +\end_layout + +\end_inset + + אֻ אּ אֽ Ö¾ +\begin_inset Branch na +inverted 0 +status open + +\begin_layout Standard +אֿ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +5C0 +\begin_inset Branch na +inverted 0 +status open + +\begin_layout Standard +׀ +\end_layout + +\end_inset + +שׁ שׂ ׃ +\begin_inset Branch na +inverted 0 +status open + +\begin_layout Standard +אׄ אׅ ׆ א +\lang hebrew +ׇ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +5D0 א ב ג ד ה ו ז ח ט י ך כ ל ם מ ן +\end_layout + +\begin_layout Standard +5E0 ×  ס ×¢ ×£ פ ×¥ צ ק ר ש ת +\end_layout + +\begin_layout Standard +5F0 ×° ×± ײ +\begin_inset Branch na +inverted 0 +status open + +\begin_layout Standard +׳ ×´ +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/autotests/export/latex/unicodesymbols/012-hebrew_he.lyx b/autotests/export/latex/unicodesymbols/012-hebrew_he.lyx index 8e83d3af6a..02921b074f 100644 --- a/autotests/export/latex/unicodesymbols/012-hebrew_he.lyx +++ b/autotests/export/latex/unicodesymbols/012-hebrew_he.lyx @@ -1,5 +1,5 @@ #LyX 2.4 created this file. For more info see https://www.lyx.org/ -\lyxformat 571 +\lyxformat 573 \begin_document \begin_header \save_transient_properties true @@ -63,6 +63,11 @@ \filename_suffix 0 \color #faf0e6 \end_branch +\branch HE8-only +\selected 1 +\filename_suffix 0 +\color #faf0e6 +\end_branch \index Index \shortcut idx \color #008000 @@ -101,14 +106,18 @@ hebrew \begin_inset Quotes erd \end_inset - language in order to select the right font encoding (LHE or HE8). + language in order to select the right font encoding (LHE or HE8) and writing + direction (right-to-left). Hebrew 8-bit TeX fonts are not part of TeXLive. \end_layout \begin_layout Standard Babel-Hebrew defaults to the legacy font encoding LHE, that only supports the basic Hebrew alphabet. - +\end_layout + +\begin_layout Standard +LyX selects the HE8 font encoding if available. \end_layout \begin_layout Standard @@ -120,7 +129,7 @@ status open \begin_layout Standard \lang hebrew -א֑ א֒ א֓ א֔ א֕ א֖ א֗ א֘ א֙ א֚ א֛ א֜ א֝ א֞ א֟ +א֑ א֒ א֓ א֔ א֕ א֖ א֗ א֘ א֙ א֚ א֛ א֜ א֝ א֞ א֟ \end_layout \end_inset @@ -129,7 +138,7 @@ status open \end_layout \begin_layout Standard -5A0 +5A0 \begin_inset Branch na inverted 0 status open @@ -137,7 +146,7 @@ status open \begin_layout Standard \lang hebrew -א֠ א֡ א֢ א֣ א֤ א֥ א֦ א֧ א֨ א֩ א֪ א֫ א֬ א֭ א֮ א֯ +א֠ א֡ א֢ א֣ א֤ א֥ א֦ א֧ א֨ א֩ א֪ א֫ א֬ א֭ א֮ א֯ \end_layout \end_inset @@ -147,6 +156,21 @@ status open \begin_layout Standard 5B0 +\lang hebrew + +\begin_inset Branch HE8-only +inverted 0 +status open + +\begin_layout Standard + +\lang hebrew +אְ אֱ אֲ אֳ אִ אֵ אֶ אַ אָ אֹ +\end_layout + +\end_inset + + \begin_inset Branch na inverted 0 status open @@ -154,16 +178,44 @@ status open \begin_layout Standard \lang hebrew -אֻ אּ אֽ Ö¾ אֿ אְ אֱ אֲ אֳ אִ אֵ אֶ אַ אָ אֹ אֺ +אֺ \end_layout \end_inset + +\begin_inset Branch HE8-only +inverted 0 +status open + +\begin_layout Standard +\lang hebrew +אֻ אּ אֽ Ö¾ +\end_layout + +\end_inset + + +\begin_inset Branch na +inverted 0 +status open + +\begin_layout Standard + +\lang hebrew +אֿ +\end_layout + +\end_inset + + \end_layout \begin_layout Standard 5C0 +\lang hebrew + \begin_inset Branch na inverted 0 status open @@ -171,7 +223,33 @@ status open \begin_layout Standard \lang hebrew -שׁ שׂ ׃ אׄ אׅ ׆ אׇ ׀ +׀ +\end_layout + +\end_inset + + +\begin_inset Branch HE8-only +inverted 0 +status open + +\begin_layout Standard + +\lang hebrew +שׁ שׂ ׃ +\end_layout + +\end_inset + + +\begin_inset Branch na +inverted 0 +status open + +\begin_layout Standard + +\lang hebrew +אׄ אׅ ׆ אׇ \end_layout \end_inset @@ -182,7 +260,7 @@ status open \begin_layout Standard 5D0 \lang hebrew -א ב ג ד ה ו ז ח ט י ך כ ל ם מ ן +א ב ג ד ה ו ז ח ט י ך כ ל ם מ ן \end_layout \begin_layout Standard @@ -193,19 +271,34 @@ status open \begin_layout Standard 5F0 -\begin_inset Branch na +\lang hebrew + +\begin_inset Branch HE8-only inverted 0 status open \begin_layout Standard \lang hebrew -×° ×± ײ ׳ ×´ +×° ×± ײ \end_layout \end_inset +\begin_inset Branch na +inverted 0 +status open + +\begin_layout Standard + +\lang hebrew +׳ ×´ +\end_layout + +\end_inset + + \end_layout \end_body diff --git a/autotests/export/latex/unicodesymbols/012-hebrew_he_HE8.lyx b/autotests/export/latex/unicodesymbols/012-hebrew_he_HE8.lyx deleted file mode 100644 index 33694d6ecb..0000000000 --- a/autotests/export/latex/unicodesymbols/012-hebrew_he_HE8.lyx +++ /dev/null @@ -1,242 +0,0 @@ -#LyX 2.4 created this file. For more info see https://www.lyx.org/ -\lyxformat 571 -\begin_document -\begin_header -\save_transient_properties true -\origin unavailable -\textclass article -\begin_preamble -\def\HeblatexEncoding{HE8} -\end_preamble -\use_default_options false -\maintain_unincluded_children false -\language english -\language_package default -\inputencoding utf8 -\fontencoding HE8,T1 -\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 false -\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 0 -\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 -\branch na -\selected 0 -\filename_suffix 0 -\color #faf0e6 -\end_branch -\index Index -\shortcut idx -\color #008000 -\end_index -\secnumdepth 3 -\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 -\html_css_as_file 0 -\html_be_strict false -\end_header - -\begin_body - -\begin_layout Subsection* -12 Hebrew -\end_layout - -\begin_layout Standard -Hebrew text must be set to the -\begin_inset Quotes eld -\end_inset - -hebrew -\begin_inset Quotes erd -\end_inset - - language in order to select the right font encoding. -\end_layout - -\begin_layout Standard -This document uses the nonstandard Hebrew font encoding HE8 that includes - additional characters (see Document>Settings>Fonts and >User Preamble). -\end_layout - -\begin_layout Standard -590 -\begin_inset Branch na -inverted 0 -status open - -\begin_layout Standard - -\lang hebrew -א֑ א֒ א֓ א֔ א֕ א֖ א֗ א֘ א֙ א֚ א֛ א֜ א֝ א֞ א֟ -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -5A0 -\begin_inset Branch na -inverted 0 -status open - -\begin_layout Standard - -\lang hebrew -א֠ א֡ א֢ א֣ א֤ א֥ א֦ א֧ א֨ א֩ א֪ א֫ א֬ א֭ א֮ א֯ -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -5B0 -\lang hebrew - אְ אֱ אֲ אֳ אִ אֵ אֶ אַ אָ אֹ -\begin_inset Branch na -inverted 0 -status open - -\begin_layout Standard - -\lang hebrew -אֺ -\end_layout - -\end_inset - - אֻ אּ אֽ Ö¾ -\begin_inset Branch na -inverted 0 -status open - -\begin_layout Standard - -\lang hebrew -אֿ -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -5C0 -\lang hebrew - -\begin_inset Branch na -inverted 0 -status open - -\begin_layout Standard - -\lang hebrew -׀ -\end_layout - -\end_inset - - שׁ שׂ ׃ -\begin_inset Branch na -inverted 0 -status open - -\begin_layout Standard - -\lang hebrew -אׄ אׅ ׆ אׇ -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -5D0 -\lang hebrew -א ב ג ד ה ו ז ח ט י ך כ ל ם מ ן -\end_layout - -\begin_layout Standard -5E0 -\lang hebrew -×  ס ×¢ ×£ פ ×¥ צ ק ר ש ת -\end_layout - -\begin_layout Standard -5F0 -\lang hebrew -×° ×± ײ -\begin_inset Branch na -inverted 0 -status open - -\begin_layout Standard - -\lang hebrew -׳ ×´ -\end_layout - -\end_inset - - -\end_layout - -\end_body -\end_document