The version in tex/texmf-context/tex/context/fonts/mkiv/type-imp-mathdigits.mkiv
is a typescript.  Here is a simpler version using defintfontfamily and
definefallbackfamily, which doesn't work in the recent beta (but worked
well back in January).


\definefontfamily     [minionmath] [rm] [Minion Pro]
\definefallbackfamily [minionmath] [mm] [dejavusansmono]
[range=digitsextendedarabicindic,offset=digitsnormal]
\definefallbackfamily [minionmath] [mm] [dejavusansmono]
[range=digitsextendedarabicindic,offset=digitsbold,tf=style:bold]
\definefontfamily     [minionmath] [mm] [TeX Gyre Pagella Math]

\startttext

\switchtobodyfont[minionmath]

\startformula
{\tf xyz} xyz {\bf xyz} {\bi xyz}, 2+3, {\bf 2+3}
\stopformula

\stoptext


With beta version 2017.01.17 17:37 it used to work and change the digits to
Indic inside math.  With beta version 2017.04.27 01:00, the digits do not
change to Indic.  However, everything in math changes to dejavusansmono
(bold, because that was the last fallback definition?).

On Fri, May 12, 2017 at 7:34 PM, Mohammad Hossein Bateni <bat...@gmail.com>
wrote:

> Hi,
>
> The example for replacing Arabic numerals by Indic digits inside math used
> to work (at least) until version 2017.01.17 17:37.
>
> tex/texmf-context/tex/context/fonts/mkiv/type-imp-mathdigits.mkiv
>
> Now in version 2017.04.27 01:00, this does not produce the desired output:
> it's all "Latin" digits.
>
> Has something changed regarding fontfallback definitions?
>
> Thanks,
> MHB
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to