On 2/8/2025 3:05 PM, Mohammad Hossein Bateni wrote:
Hello,
I use fallbacks to substitute "Arabic" digits in math to Indic ones. The
mechanism doesn't work in the newest context. I tried it with mkxl
version in 2025.02.04 17:52 in a clean install. The email is a bit long,
but please bear with me, so I can learn a few other things along the way.
\definefontfallback [Math] [dejavusansmono] [0x0660-0x0669]
[check=yes,force=yes,offset=digitsnormal]
\setupbodyfont[dejavu,sans]
\starttext
\startlines
1 : \im{3+2=5 \quad \bf 3+2=5} math with fallback
2 : {\bf \im{3+2=5 \quad \bf 3+2=5} bold math}
3 : {۳ + ۲ = ۵ \bf ۳ + ۲ = ۵ text Indic digits}
4 : {3 + 2 = 5 \bf 3 + 2 = 5 text Arabic diigts}
5 : \dm{\sum_{i=1}^{8} x^2 = \pi\alpha + e^{-\beta}}
\stoplines
\stoptext
%$$\sum_{i=1}^{8} x^2 = \pi\alpha + e^{-\beta}$$
>
If the last line is uncommented, I ran into the following error.
In ConTeXt the $$ is just seen as $ (inline math).
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________