Many thanks for this, Wolfgang. That is very helpful. Right now, then, I have:

\definefallbackfamily [mainface] [rm] [Brill] 
[tf=style:italic, range={0x03B8}, offset={0x03D1}]%Greek theta

[range={0x30-0x39}] %oldstyle numerals, normal

\definefallbackfamily [mainface] [mm] [Brill] [preset=math:lowercasenormal]
\definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math:lowercaseitalic]
\definefallbackfamily [mainface] [mm] [Brill] [preset=math:uppercasenormal]
\definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math:uppercaseitalic]

\definefallbackfamily [mainface] [mm] [Brill] [preset=math:lowercasegreeknormal]
\definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math:lowercasegreekitalic]
\definefallbackfamily [mainface] [mm] [Brill][preset=math:uppercasegreeknormal]
\definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math:uppercasegreekitalic]

\definefontfamily[mainface][mm][TeX Gyre Termes Math][scale=0.94]

\setupmathematics[ucgreek=normal, lcgreek=italic]



normal: 1234567890\quad math: \m{1234567890}

normal: ABCDEFabcdef\quad italic: \emph{ABCDEFabcdef}\quad math: \m{\red ABCDEFabcdef}

normal: ΑΒΓΔΕΘαβγδεθ\quad slanted: \emph{ΑΒΓΔΕΘαβγδεθ}\quad math: \m{\red ΑΒΓΔΕΘαβγδεθ}

Greek theta: \emph{θ}


As you can see, all I need is to get the Brill lowercase Greek in mathmode and the proper slanted Greek theta. I have tried this with Pagella and Cambria instead of the Brill font and the problem persists. So I must be doing something wrong. But what?


On Wed, Oct 18, 2017 at 2:27 PM, Wolfgang Schuster <> wrote:

2. Oktober 2017 um 14:04
I need to substitute the regular and italic characters of a publisher’s non-math font (Unicode) for those in a math font.

The non-math addresses are:
0041-005A, 0061-007A %italic uppercase and lowercase
0391-03A9, 03B1-03C9  %slanted Greek uppercase and lowercase

The math addresses are:
1D434-1D44D, 1D44E-1D467 %italic uppercase and lowercase
1D6E2-1D6FA, 1D6FC-1D714  %slanted Greek uppercase and lowercase

Is there a way to use the \definefallbackfamily mechanism that does not assume that the characters have the same Unicode addresses? Or is some other approach required?
The fallback mechanism provides a offset key which lets you replace a math character with a normal text character.

\definefontfamily     [mainface] [ss] [TeX Gyre Heros]

\definefallbackfamily [mainface] [mm] [TeX Gyre Heros] [preset=math:lowercasenormal]
\definefallbackfamily [mainface] [mm] [TeX Gyre Heros] [preset=math:lowercaseitalic]
\definefallbackfamily [mainface] [mm] [TeX Gyre Heros] [tf=style:italic,range=0x68,offset=0x210E]% lowercase italic h
\definefallbackfamily [mainface] [mm] [TeX Gyre Heros] [preset=math:lowercasebold]
\definefallbackfamily [mainface] [mm] [TeX Gyre Heros] [preset=math:uppercasenormal]
\definefallbackfamily [mainface] [mm] [TeX Gyre Heros] [preset=math:uppercaseitalic]
\definefallbackfamily [mainface] [mm] [TeX Gyre Heros] [preset=math:uppercasebold]

\definefontfamily     [mainface] [mm] [TeX Gyre Pagella Math]



Lowercase: $ {\tf abc} {\it abc} {\bf abc} $

Uppercase: $ {\tf ABC} {\it ABC} {\bf ABC} $


Lowercase: $ {\tf abc} {\it abch} {\bf abc} $

Uppercase: $ {\tf ABC} {\it ABC} {\bf ABC} $



If your question is of interest to others as well, please add an entry to the Wiki!

maillist : /
webpage  : /
archive  :
wiki     :