[LyX/master] Math.lyx: add fallbacks for missing glyphs
Juergen Spitzmueller <[email protected]>
| Newsgroups | gmane.editors.lyx.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 575e9d05c2d76af84001019b45d9640136fc07e7 Author: Juergen Spitzmueller <[email protected]> Date: Sun Mar 15 10:16:59 2026 +0100 Math.lyx: add fallbacks for missing glyphs latinmodern with fontspec is missing combining cedilla with XeTeX, Å is missing as well This will fix some inverted tests --- lib/doc/Math.lyx | 13 +++++++++++++ lib/doc/de/Math.lyx | 13 +++++++++++++ lib/doc/es/Math.lyx | 13 +++++++++++++ lib/doc/fr/Math.lyx | 13 +++++++++++++ lib/doc/ru/Math.lyx | 13 +++++++++++++ 5 files changed, 65 insertions(+) diff --git a/lib/doc/Math.lyx b/lib/doc/Math.lyx index cd1dfb9019..9557303e57 100644 --- a/lib/doc/Math.lyx +++ b/lib/doc/Math.lyx @@ -132,6 +132,19 @@ {\usepackage{upgreek} \setboolean{upgreek}{true}} {\setboolean{upgreek}{false}} + +\usepackage{iftex} +\iftutex + % latinmodern (used with non-TeX fonts) does not have a combining cedilla + % fake it (https://tex.stackexchange.com/a/164270/19291) + \def\c#1{{\setbox0=\hbox{#1}\ifdim\ht0=1ex \accent184 #1% + \else\ooalign{\unhbox0\crcr\hidewidth\char184\hidewidth}\fi}} +\fi +\ifxetex + % latinmodern (with XeTeX) does not feature Å + \usepackage{newunicodechar} + \newunicodechar{Å}{\AA} +\fi \end_preamble \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading \use_default_options false diff --git a/lib/doc/de/Math.lyx b/lib/doc/de/Math.lyx index fe4c7f8ca8..529087fb0d 100644 --- a/lib/doc/de/Math.lyx +++ b/lib/doc/de/Math.lyx @@ -144,6 +144,19 @@ % benötigt für Kommas in Formeln, siehe Kap. 22.3 \IfFileExists{icomma.sty} {\usepackage{icomma}}{} + +\usepackage{iftex} +\iftutex + % latinmodern (mit Nicht-TeX-Schriften verwendet) hat keine kombinierende Cedille. + % Baue sie nach (https://tex.stackexchange.com/a/164270/19291) + \def\c#1{{\setbox0=\hbox{#1}\ifdim\ht0=1ex \accent184 #1% + \else\ooalign{\unhbox0\crcr\hidewidth\char184\hidewidth}\fi}} +\fi +\ifxetex + % latinmodern (mit XeTeX) unterstützt Å nicht + \usepackage{newunicodechar} + \newunicodechar{Å}{\AA} +\fi \end_preamble \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading \use_default_options false diff --git a/lib/doc/es/Math.lyx b/lib/doc/es/Math.lyx index fdc7b625bd..3718ffc869 100644 --- a/lib/doc/es/Math.lyx +++ b/lib/doc/es/Math.lyx @@ -131,6 +131,19 @@ {\usepackage{upgreek} \setboolean{upgreek}{true}} {\setboolean{upgreek}{false}} + +\usepackage{iftex} +\iftutex + % latinmodern (used with non-TeX fonts) does not have a combining cedilla + % fake it (https://tex.stackexchange.com/a/164270/19291) + \def\c#1{{\setbox0=\hbox{#1}\ifdim\ht0=1ex \accent184 #1% + \else\ooalign{\unhbox0\crcr\hidewidth\char184\hidewidth}\fi}} +\fi +\ifxetex + % latinmodern (with XeTeX) does not feature Å + \usepackage{newunicodechar} + \newunicodechar{Å}{\AA} +\fi \end_preamble \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading \use_default_options false diff --git a/lib/doc/fr/Math.lyx b/lib/doc/fr/Math.lyx index f87be2806b..aa23c8f2c7 100644 --- a/lib/doc/fr/Math.lyx +++ b/lib/doc/fr/Math.lyx @@ -131,6 +131,19 @@ {\usepackage{upgreek} \setboolean{upgreek}{true}} {\setboolean{upgreek}{false}} + +\usepackage{iftex} +\iftutex + % latinmodern (used with non-TeX fonts) does not have a combining cedilla + % fake it (https://tex.stackexchange.com/a/164270/19291) + \def\c#1{{\setbox0=\hbox{#1}\ifdim\ht0=1ex \accent184 #1% + \else\ooalign{\unhbox0\crcr\hidewidth\char184\hidewidth}\fi}} +\fi +\ifxetex + % latinmodern (with XeTeX) does not feature Å + \usepackage{newunicodechar} + \newunicodechar{Å}{\AA} +\fi \end_preamble \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading \use_default_options false diff --git a/lib/doc/ru/Math.lyx b/lib/doc/ru/Math.lyx index 4df4b17402..4a484b4afe 100644 --- a/lib/doc/ru/Math.lyx +++ b/lib/doc/ru/Math.lyx @@ -135,6 +135,19 @@ % Use serif font \addtokomafont{disposition}{\rmfamily} \addtokomafont{descriptionlabel}{\rmfamily} + +\usepackage{iftex} +\iftutex + % latinmodern (used with non-TeX fonts) does not have a combining cedilla + % fake it (https://tex.stackexchange.com/a/164270/19291) + \def\c#1{{\setbox0=\hbox{#1}\ifdim\ht0=1ex \accent184 #1% + \else\ooalign{\unhbox0\crcr\hidewidth\char184\hidewidth}\fi}} +\fi +\ifxetex + % latinmodern (with XeTeX) does not feature Å + \usepackage{newunicodechar} + \newunicodechar{Å}{\AA} +\fi \end_preamble \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading \use_default_options false -- lyx-cvs mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-cvs