]> git.lyx.org Git - features.git/commitdiff
Fix/update inpuencoding / unicodesymbols ctests.
authorGünter Milde <milde@lyx.org>
Fri, 10 May 2019 14:21:09 +0000 (16:21 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:28 +0000 (15:48 +0200)
autotests/export/latex/inputenc-cp858.lyx
autotests/export/latex/luainputenc-utf8.lyx
autotests/export/latex/unicodesymbols/012-hebrew_HE8.lyx [new file with mode: 0644]
autotests/export/latex/unicodesymbols/012-hebrew_he.lyx
autotests/export/latex/unicodesymbols/012-hebrew_he_HE8.lyx [deleted file]

index 2cd2a3c7d77e1a0e7c332b752acd69f4580ae949..a34ec444fdacec546ed9c26ca618cc3146075658 100644 (file)
@@ -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
 
index 4be0e296a484ea00ff645bc79456c6b82ad1458c..14e4c6b02df7ef9ea96e9e97d45ba9fe5b5f5302 100644 (file)
@@ -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 (file)
index 0000000..3e42d7b
--- /dev/null
@@ -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
index 8e83d3af6af804a4be0cba1f1d201591e5608fc9..02921b074f3a844b1712181790a807913b11e1d1 100644 (file)
@@ -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
 \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
\90Ö» ×\90Ö¼ ×\90Ö½ Ö¾ ×\90Ö¿ ×\90Ö° ×\90Ö± ×\90Ö² ×\90Ö³ ×\90Ö´ ×\90Öµ ×\90Ö¶ ×\90Ö· ×\90Ö¸ ×\90Ö¹ ×\90Öº
+אֺ
 \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 (file)
index 33694d6..0000000
+++ /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