]> git.lyx.org Git - features.git/commitdiff
Do not force the use of the HE8 font encoding for Hebrew.
authorGünter Milde <milde@lyx.org>
Tue, 2 Apr 2019 11:13:13 +0000 (13:13 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:23 +0000 (15:48 +0200)
While HE8 provides more characters and prevents use of bitmap fonts,
forcing its use may break older installations.

The dedicated test file 012_hebrew_he_HE8.lyx provides an
example for use of HE8 encoded fonts with babel-hebrew.

autotests/export/latex/unicodesymbols/012-31-hebrew_he-thai.lyx
autotests/export/latex/unicodesymbols/012-hebrew_he_HE8.lyx [new file with mode: 0644]
autotests/export/latex/unicodesymbols/152-modifiers-presentation_he.lyx
lib/languages

index 76f4fc3ddaaa3f844af193b26133012f9d320305..a02e1bd3cc38b1f83af5222103a5c7deae255712 100644 (file)
@@ -1,5 +1,5 @@
 #LyX 2.4 created this file. For more info see https://www.lyx.org/
-\lyxformat 567
+\lyxformat 569
 \begin_document
 \begin_header
 \save_transient_properties true
@@ -78,6 +78,7 @@
 \papercolumns 1
 \papersides 1
 \paperpagestyle default
+\tablestyle default
 \tracking_changes false
 \output_changes false
 \html_math_output 0
 12) Hebrew
 \end_layout
 
+\begin_layout Standard
+Babel-Hebrew defaults to the legacy font encoding LHE, that only supports
+ the basic Hebrew alphabet.
+ Hebrew 8-bit fonts are not part of TeXLive.
+\end_layout
+
 \begin_layout Standard
 590 
 \begin_inset Branch na
@@ -127,8 +134,6 @@ status open
 
 \begin_layout Standard
 5B0
-\lang hebrew
- אְ אֱ אֲ אֳ אִ אֵ אֶ אַ אָ אֹ 
 \begin_inset Branch na
 inverted 0
 status open
@@ -136,31 +141,16 @@ 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 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
@@ -168,25 +158,12 @@ status open
 \begin_layout Standard
 
 \lang hebrew
©×\81 ×©×\82 ×\83 ×\90×\84 ×\90×\85 ×\86 ×\90×\87 ×\80
 \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
@@ -203,8 +180,6 @@ status open
 
 \begin_layout Standard
 5F0 
-\lang hebrew
-װ ױ ײ 
 \begin_inset Branch na
 inverted 0
 status open
@@ -212,7 +187,7 @@ status open
 \begin_layout Standard
 
 \lang hebrew
-׳ ״
° ×± ×² ×³ ×´
 \end_layout
 
 \end_inset
diff --git a/autotests/export/latex/unicodesymbols/012-hebrew_he_HE8.lyx b/autotests/export/latex/unicodesymbols/012-hebrew_he_HE8.lyx
new file mode 100644 (file)
index 0000000..692c256
--- /dev/null
@@ -0,0 +1,230 @@
+#LyX 2.4 created this file. For more info see https://www.lyx.org/
+\lyxformat 569
+\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
+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
index 3d8ec509484a30213bfed02f4e2a741fe6da1f42..313fc70951bb756a840553d71b70642e864e0565 100644 (file)
@@ -5,15 +5,18 @@
 \save_transient_properties true
 \origin unavailable
 \textclass article
+\begin_preamble
+\def\HeblatexEncoding{HE8}
+\end_preamble
 \use_default_options true
 \maintain_unincluded_children false
 \language english
 \language_package default
 \inputencoding utf8
-\fontencoding auto
+\fontencoding HE8,T1
 \font_roman "lmodern" "default"
-\font_sans "lmss" "default"
-\font_typewriter "lmtt" "default"
+\font_sans "default" "default"
+\font_typewriter "default" "default"
 \font_math "auto" "auto"
 \font_default_family default
 \use_non_tex_fonts false
@@ -28,6 +31,8 @@
 \output_sync 0
 \bibtex_command default
 \index_command default
+\float_placement class
+\float_alignment class
 \paperfontsize default
 \spacing single
 \use_hyperref false
 152 Alphabetic Presentation Forms
 \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 Labeling
 \labelwidthstring 00.00.0000
 FB00 ff fi fl ffi ffl 
@@ -150,6 +160,20 @@ status open
 \end_inset
 
  שׁ שׂ שּׁ שּׂ אַ אָ
+\lang english
+\begin_inset Note Note
+status open
+
+\begin_layout Plain Layout
+The character 
+\backslash
+hebvarayin (ﬠ) is present in HE8 culmus fonts but not defined in he8enc.def.
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Labeling
index 89ecabf75435239f55c9721e1c3535e4d0db7179..a39c5c75286e4eb6bceb95ea5dc1d6c604ea83df 100644 (file)
@@ -768,8 +768,6 @@ Language hebrew
        # Define the font encoding the babel-hebrew way and
        # work around too simple test for article-like classes in rlbabel.def.
        PreBabelPreamble
-         \def\HeblatexEncoding{HE8}
-         \def\HeblatexEncodingFile{he8enc}
          \providecommand{\l@chapter}{\relax}
        EndPreBabelPreamble
        DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"