From 80b6a0038ac160d4c5142d7c062c36afa76ab5a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Milde?= Date: Fri, 22 Mar 2019 23:54:35 +0100 Subject: [PATCH] Add lib/unicodesymbols support for Hebrew. Hebrew language must be set (otherwise character macros are not defined) but this is normally no problem because it is also neede for RTL support. --- ...-31-cyrillic-thai.lyx => 009-cyrillic.lyx} | 33 +-- .../unicodesymbols/012-31-hebrew_he-thai.lyx | 255 ++++++++++++++++++ lib/examples/he/Welcome.lyx | 13 +- lib/unicodesymbols | 61 +++++ 4 files changed, 325 insertions(+), 37 deletions(-) rename autotests/export/latex/unicodesymbols/{009-31-cyrillic-thai.lyx => 009-cyrillic.lyx} (93%) create mode 100644 autotests/export/latex/unicodesymbols/012-31-hebrew_he-thai.lyx diff --git a/autotests/export/latex/unicodesymbols/009-31-cyrillic-thai.lyx b/autotests/export/latex/unicodesymbols/009-cyrillic.lyx similarity index 93% rename from autotests/export/latex/unicodesymbols/009-31-cyrillic-thai.lyx rename to autotests/export/latex/unicodesymbols/009-cyrillic.lyx index 50b28a71fe..0070627ae3 100644 --- a/autotests/export/latex/unicodesymbols/009-31-cyrillic-thai.lyx +++ b/autotests/export/latex/unicodesymbols/009-cyrillic.lyx @@ -1,5 +1,5 @@ #LyX 2.4 created this file. For more info see https://www.lyx.org/ -\lyxformat 566 +\lyxformat 567 \begin_document \begin_header \save_transient_properties true @@ -323,37 +323,6 @@ status open \end_inset -\end_layout - -\begin_layout Subsection* -31 Thai -\end_layout - -\begin_layout Labeling -\labelwidthstring 00.00.0000 -3640 -\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 \end_body diff --git a/autotests/export/latex/unicodesymbols/012-31-hebrew_he-thai.lyx b/autotests/export/latex/unicodesymbols/012-31-hebrew_he-thai.lyx new file mode 100644 index 0000000000..0fe2331d6c --- /dev/null +++ b/autotests/export/latex/unicodesymbols/012-31-hebrew_he-thai.lyx @@ -0,0 +1,255 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 567 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\begin_preamble +\usepackage{textalpha} +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding utf8 +\fontencoding auto +\font_roman "lmodern" "default" +\font_sans "lmss" "default" +\font_typewriter "lmtt" "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 +\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 +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 + +\begin_layout Subsection* +31 Thai +\end_layout + +\begin_layout Labeling +\labelwidthstring 00.00.0000 +3640 +\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 + +\end_body +\end_document diff --git a/lib/examples/he/Welcome.lyx b/lib/examples/he/Welcome.lyx index 9633df7981..cab45c2063 100644 --- a/lib/examples/he/Welcome.lyx +++ b/lib/examples/he/Welcome.lyx @@ -1,4 +1,4 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ \lyxformat 544 \begin_document \begin_header @@ -7,14 +7,17 @@ \textclass heb-article \begin_preamble \frenchspacing + +% use Culmus vector fonts if available +%\IfFileExists{culmus.sty}{\usepackage{culmus}}{} \end_preamble \use_default_options false \maintain_unincluded_children false \language hebrew \language_package default \inputencoding auto -\fontencoding OT1 -\font_roman "default" "FreeSerif" +\fontencoding global +\font_roman "lmodern" "FreeSerif" \font_sans "default" "FreeSans" \font_typewriter "default" "FreeMono" \font_math "auto" "auto" @@ -272,13 +275,13 @@ For example on the Linux distributions \family sans Debian \family default - the package name for the German language is + the package name for the Hebrew language is \begin_inset Quotes eld \end_inset \family typewriter -texlive-lang-german +texlive-lang-other \family default \begin_inset Quotes erd diff --git a/lib/unicodesymbols b/lib/unicodesymbols index e72e3362b2..5752216224 100644 --- a/lib/unicodesymbols +++ b/lib/unicodesymbols @@ -1098,6 +1098,67 @@ 0x04f8 "\\\"\CYRERY" "textcyrillic" "" # CYRILLIC CAPITAL LETTER YERU WITH DIAERESIS 0x04f9 "\\\"\cyrery" "textcyrillic" "" # CYRILLIC SMALL LETTER YERU WITH DIAERESIS # +# 12 Hebrew +# +#0x0591 "" "" "combining,force" "" "" # HEBREW ACCENT ETNAHTA +# +0x05b0 "\\sheva" "" "combining,force" "" "" # HEBREW POINT SHEVA +0x05b1 "\\hatafsegol" "" "combining,force" "" "" # HEBREW POINT HATAF SEGOL +0x05b2 "\\hatafpatah" "" "combining,force" "" "" # HEBREW POINT HATAF PATAH +0x05b3 "\\hatafqamats" "" "combining,force" "" "" # HEBREW POINT HATAF QAMATS +0x05b4 "\\hiriq" "" "combining,force" "" "" # HEBREW POINT HIRIQ +0x05b5 "\\tsere" "" "combining,force" "" "" # HEBREW POINT TSERE +0x05b6 "\\segol" "" "combining,force" "" "" # HEBREW POINT SEGOL +0x05b7 "\\patah" "" "combining,force" "" "" # HEBREW POINT PATAH +0x05b8 "\\qamats" "" "combining,force" "" "" # HEBREW POINT QAMATS +0x05b9 "\\holam" "" "combining,force" "" "" # HEBREW POINT HOLAM +#0x05ba "" "" "combining,force" "" "" # HEBREW POINT HOLAM HASER FOR VAV +0x05bb "\\qubuts" "" "combining,force" "" "" # HEBREW POINT QUBUTS +0x05bc "\\dagesh" "" "combining,force" "" "" # HEBREW POINT DAGESH OR MAPIQ +0x05bd "\\meteg" "" "combining,force" "" "" # HEBREW POINT METEG +0x05be "\\maqaf" "" "force=cp1255;utf8;utf8-cjk" "" "" # HEBREW PUNCTUATION MAQAF +#0x05bf "" "" "combining,force" "" "" # HEBREW POINT RAFE +#0x05c0 "" "" "" "" "" # HEBREW PUNCTUATION PASEQ +0x05c1 "\\shindot" "" "combining,force" "" "" # HEBREW POINT SHIN DOT +0x05c2 "\\sindot" "" "combining,force" "" "" # HEBREW POINT SIN DOT +0x05c3 "\\sofpasuq" "" "force=cp1255;utf8;utf8-cjk" "" "" # HEBREW PUNCTUATION SOF PASUQ +#0x05c4 "" "" "combining,force" "" "" # HEBREW MARK UPPER DOT +#0x05c5 "" "" "combining,force" "" "" # HEBREW MARK LOWER DOT +#0x05c6 "" "" "" "" "" # HEBREW PUNCTUATION NUN HAFUKHA +#0x05c7 "" "" "combining,force" "" "" # HEBREW POINT QAMATS QATAN +0x05d0 "\\hebalef" "" "force=utf8;utf8-cjk" "\\aleph" "amssymb" # HEBREW LETTER ALEF +0x05d1 "\\hebbet" "" "force=utf8;utf8-cjk" "\\beth" "amssymb" # HEBREW LETTER BET +0x05d2 "\\hebgimel" "" "force=utf8;utf8-cjk" "\\gimel" "amssymb" # HEBREW LETTER GIMEL +0x05d3 "\\hebdalet" "" "force=utf8;utf8-cjk" "\\daleth" "amssymb" # HEBREW LETTER DALET +0x05d4 "\\hebhe" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER HE +0x05d5 "\\hebvav" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER VAV +0x05d6 "\\hebzayin" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER ZAYIN +0x05d7 "\\hebhet" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER HET +0x05d8 "\\hebtet" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER TET +0x05d9 "\\hebyod" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER YOD +0x05da "\\hebfinalkaf" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER FINAL KAF +0x05db "\\hebkaf" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER KAF +0x05dc "\\heblamed" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER LAMED +0x05dd "\\hebfinalmem" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER FINAL MEM +0x05de "\\hebmem" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER MEM +0x05df "\\hebfinalnun" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER FINAL NUN +0x05e0 "\\hebnun" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER NUN +0x05e1 "\\hebsamekh" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER SAMEKH +0x05e2 "\\hebayin" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER AYIN +0x05e3 "\\hebfinalpe" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER FINAL PE +0x05e4 "\\hebpe" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER PE +0x05e5 "\\hebfinaltsadi" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER FINAL TSADI +0x05e6 "\\hebtsadi" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER TSADI +0x05e7 "\\hebqof" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER QOF +0x05e8 "\\hebresh" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER RESH +0x05e9 "\\hebshin" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER SHIN +0x05ea "\\hebtav" "" "force=utf8;utf8-cjk" "" "" # HEBREW LETTER TAV +0x05f0 "\doublevav" "" "force=cp1255;utf8;utf8-cjk" "" "" # HEBREW LIGATURE YIDDISH DOUBLE VAV +0x05f1 "\vavyod" "" "force=cp1255;utf8;utf8-cjk" "" "" # HEBREW LIGATURE YIDDISH VAV YOD +0x05f2 "\doubleyod" "" "force=cp1255;utf8;utf8-cjk" "" "" # HEBREW LIGATURE YIDDISH DOUBLE YOD +#0x05f3 "" "" "" "" "" # HEBREW PUNCTUATION GERESH +#0x05f4 "" "" "" "" "" # HEBREW PUNCTUATION GERSHAYIM +# # 31 Thai # 0x0e3f "\\textbaht" "textcomp" "" # THAI CURRENCY SYMBOL BAHT