From 448faf396ed044bc0e1747855250b2e841bc82db Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnter=20Milde?= Date: Wed, 9 Jan 2019 14:12:37 +0100 Subject: [PATCH] unicodesymbols: support for LOW ASTERISK, use textcomp for (non-combining) Breve and Caron The textcomp Unicode support file "ts1enc.dfu" defines 0x204E Low Asterisk as \textasteriskcentered. LyX should follow suit. The ASTERISK OPERATOR (correctly) maps to the same macro, the "deprecated" tag marks the upstream mapping as preferred choice. --- ...general-punctuation-sub-super-currency.lyx | 34 ++++++++++++++----- lib/unicodesymbols | 11 +++--- 2 files changed, 32 insertions(+), 13 deletions(-) diff --git a/autotests/export/latex/unicodesymbols/070-72-general-punctuation-sub-super-currency.lyx b/autotests/export/latex/unicodesymbols/070-72-general-punctuation-sub-super-currency.lyx index a24a90ab1b..aebdfe00da 100644 --- a/autotests/export/latex/unicodesymbols/070-72-general-punctuation-sub-super-currency.lyx +++ b/autotests/export/latex/unicodesymbols/070-72-general-punctuation-sub-super-currency.lyx @@ -1,5 +1,5 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ -\lyxformat 515 +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 566 \begin_document \begin_header \save_transient_properties true @@ -10,7 +10,7 @@ \language english \language_package default \inputencoding utf8 -\fontencoding global +\fontencoding auto \font_roman "lmodern" "default" \font_sans "lmss" "default" \font_typewriter "lmtt" "default" @@ -22,11 +22,14 @@ \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 +\float_placement class +\float_alignment class \paperfontsize default \spacing single \use_hyperref false @@ -51,6 +54,7 @@ \suppress_date false \justification false \use_refstyle 1 +\use_minted 0 \branch na \selected 0 \filename_suffix 0 @@ -64,7 +68,10 @@ \tocdepth 3 \paragraph_separation indent \paragraph_indentation default -\quotes_language english +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 \papercolumns 1 \papersides 1 \paperpagestyle default @@ -78,12 +85,12 @@ \begin_body \begin_layout Subsection* -79 General Punctuation +70 General Punctuation \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -1F00                       ​ ‌ +1F00                       ​ ‌ \end_layout \begin_layout Labeling @@ -175,7 +182,18 @@ 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 @@ -360,7 +378,7 @@ status open \begin_layout Labeling \labelwidthstring 00.00.0000 -20C0 +20C0 \end_layout \end_body diff --git a/lib/unicodesymbols b/lib/unicodesymbols index c4460c484c..b0e4f79e42 100644 --- a/lib/unicodesymbols +++ b/lib/unicodesymbols @@ -620,7 +620,7 @@ #0x02c4 "" "" "" # MODIFIER LETTER UP ARROWHEAD #0x02c5 "" "" "" # MODIFIER LETTER DOWN ARROWHEAD 0x02c6 "\\^{ }" "" "" # MODIFIER LETTER CIRCUMFLEX ACCENT -0x02c7 "\\v{ }" "" "" # CARON +0x02c7 "\\textasciicaron" "textcomp" "" # CARON 0x02c8 "\\textprimstress" "tipa" "force" # MODIFIER LETTER VERTICAL LINE 0x02c9 "\\={ }" "" "force=utf8" # MODIFIER LETTER MACRON 0x02ca "\\'{ }" "" "force=utf8" # MODIFIER LETTER ACUTE ACCENT @@ -637,7 +637,7 @@ 0x02d5 "\\textlowering{ }" "tipa" "force" # MODIFIER LETTER DOWN TACK 0x02d6 "" "" "notermination=math,force=utf8;utf8x" "+" # MODIFIER LETTER PLUS SIGN 0x02d7 "" "" "notermination=math,force=utf8;utf8x" "-" # MODIFIER LETTER MINUS SIGN -0x02d8 "\\u{ }" "" "" # BREVE +0x02d8 "\\textasciibreve" "textcomp" "" # BREVE 0x02d9 "\\.{ }" "" "force=utf8" # DOT ABOVE 0x02da "\\r{ }" "" "force=utf8" # RING ABOVE 0x02db "\\k{ }" "" "force=utf8" # OGONEK @@ -1801,13 +1801,14 @@ 0x2047 "??" "" "notermination=text,force=utf8;utf8x" "??" "" # DOUBLE QUESTION MARK # ≈ 2×QUESTION MARK 0x2048 "?!" "" "notermination=text,force=utf8;utf8x" "" "" # QUESTION EXCLAMATION MARK 0x2049 "!?" "" "notermination=text,force=utf8;utf8x" "" "" # EXCLAMATION QUESTION MARK +0x204e "\\textasteriskcentered" "textcomp" "force=utf8x" "\\ast" "" # LOW ASTERISK 0x2052 "\\textdiscount" "textcomp" "force=utf8x" # COMMERCIAL MINUS SIGN 0x205d "" "" "force=utf8;utf8x" "\\vdots" ""# TRICOLON # ≈ VERTICAL ELLIPSIS, fails in text mode, if "mathdots" is loaded. #0x205e "" "" "" "" "" # VERTICAL FOUR DOTS 0x205f "" "" "notermination=math,force=utf8" "\\:" "" # MEDIUM MATHEMATICAL SPACE #0x2060 "" "" "" "" "" # WORD JOINER # -# superscripts and subscripts +# 71 Superscripts and Subscripts # 0x2070 "\\textsuperscript{0}" "" "force=utf8" "{{}^0}" "" # SUPERSCRIPT ZERO 0x2071 "\\textsuperscript{i}" "" "force=utf8" "{{}^i}" "" # SUPERSCRIPT LATIN SMALL LETTER I @@ -1905,7 +1906,7 @@ 0x2128 "" "" "force=utf8" "\\mathfrak{Z}" "amssymb" # BLACK-LETTER CAPITAL Z #0x2129 "" "" "" "" "" # TURNED GREEK SMALL LETTER IOTA 0x212a "K" "" "notermination=text" "" "" # KELVIN SIGN -0x212b "\\AA" "" "force=utf8,deprecated" "" "" # ANGSTROM SIGN +0x212b "\\AA" "" "force=utf8;utf8-cjk,deprecated" "" "" # ANGSTROM SIGN 0x212c "" "" "force=utf8" "\\mathscr{B}" "mathrsfs" # SCRIPT CAPITAL B 0x212d "" "" "force=utf8" "\\mathfrak{C}" "amssymb" # BLACK-LETTER CAPITAL C 0x212e "\\textestimated" "textcomp" "force=utf8x" # ESTIMATED SYMBOL @@ -2149,7 +2150,7 @@ 0x2214 "" "" "force!=utf8x" "\\dotplus" "amssymb" # DOT PLUS 0x2215 "" "" "force!=utf8x" "\\slash" # DIVISION SLASH 0x2216 "" "" "force!=utf8x" "\\setminus" "" # SET MINUS -0x2217 "\\textasteriskcentered" "textcomp" "force!=utf8x" "\\ast" "" # ASTERISK OPERATOR +0x2217 "\\textasteriskcentered" "textcomp" "force!=utf8x,deprecated" "\\ast" "" # ASTERISK OPERATOR 0x2218 "" "" "force!=utf8x" "\\circ" "" # RING OPERATOR 0x2219 "" "" "force!=utf8x" "\\centerdot" "amssymb" # BULLET OPERATOR 0x221a "\\textsurd" "textcomp" "force!=utf8x" "\\surd" "" # SQUARE ROOT -- 2.39.5