Re: [NTG-context] mathdigits no longer works

2017-05-15 Thread Mohammad Hossein Bateni
Thanks, Hans!  It seems to work in the latest beta.

On Mon, May 15, 2017 at 5:36 AM, Hans Hagen  wrote:

> On 5/15/2017 5:37 AM, Mohammad Hossein Bateni wrote:
>
>> 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?).
>>
>
> there has been some fixes in the math fallbacks recently so only report
> issues that fail in the *latest* garden version
>
> 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 / http://www.ntg.nl/mailman/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
>
___
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
___

[NTG-context] mathdigits no longer works

2017-05-15 Thread Akira Kakuto

The small modification I was talking about ...


The following change for Mohammad's one may also be ok:

\startttext

\switchtobodyfont[minionmath]

--->

\switchtobodyfont[minionmath]

\starttext

Best,
Akira

___
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
___

Re: [NTG-context] mathdigits no longer works

2017-05-15 Thread Otared Kavian
Dear Mohammad Hossein,

The small modification I was talking about has nothing to do with the 
definition of fonts. In any case here is the file I used to typeset your 
example (I think you had \startttext instead of \starttext, and also you used 
\switchtobodyfont instead of \setupbodyfont: however I am not sure whether this 
is important or not) :

 begin

\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]

%\switchtobodyfont[minionmath]
\setupbodyfont[minionmath]
\starttext

\startformula
{\tf xyz} xyz {\bf xyz} {\bi xyz}, 
\stopformula

\startformula
2+3+4+5+6+7+8+9+10 = {\bf 2+3+4+5+6+7+8+9+10}
\stopformula

\stoptext

 end

Best regrads: Otared K.

> On 15 May 2017, at 11:00, Mohammad Hossein Bateni  wrote:
> 
> Dear Otared, what is the small modification you mentioned?  Could you share 
> the code you shared to get this output in the latest beta?
> 
> On Mon, May 15, 2017 at 3:27 AM, Otared Kavian  > wrote:
> Hi Mohammad Hossein,
> 
> I don’t get what you expected to obtain in your message, but typesetting your 
> example code (with a small modification) I get the attached PDF file, which 
> seems correct to me.
> I am using ConTeXt  version 2017.05.12 22 :40 MKIV beta, 
> with LuaTeX version 1.0.4 on MacOS 10.12.5.
> 
> Best regards: Otared K.
> 
> 
> 
> 
> 
> 
> > On 15 May 2017, at 05:37, Mohammad Hossein Bateni  > > wrote:
> >
> > 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  > > 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 
> > ___
> 
> 
> ___
> 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 
> ___
> 
> ___
> If your ques

Re: [NTG-context] mathdigits no longer works

2017-05-15 Thread Hans Hagen

On 5/15/2017 5:37 AM, Mohammad Hossein Bateni wrote:

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?).


there has been some fixes in the math fallbacks recently so only report 
issues that fail in the *latest* garden version


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 / 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
___

Re: [NTG-context] mathdigits no longer works

2017-05-15 Thread Mohammad Hossein Bateni
Dear Otared, what is the small modification you mentioned?  Could you share
the code you shared to get this output in the latest beta?

On Mon, May 15, 2017 at 3:27 AM, Otared Kavian  wrote:

> Hi Mohammad Hossein,
>
> I don’t get what you expected to obtain in your message, but typesetting
> your example code (with a small modification) I get the attached PDF file,
> which seems correct to me.
> I am using ConTeXt  version 2017.05.12 22:40 MKIV beta, with LuaTeX
> version 1.0.4 on MacOS 10.12.5.
>
> Best regards: Otared K.
>
>
>
>
>
>
> > On 15 May 2017, at 05:37, Mohammad Hossein Bateni 
> wrote:
> >
> > 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
> > 
> ___
>
>
> 
> ___
> 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
> 
> ___
>
___
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
___

Re: [NTG-context] mathdigits no longer works

2017-05-15 Thread Otared Kavian
Hi Mohammad Hossein,

I don’t get what you expected to obtain in your message, but typesetting your 
example code (with a small modification) I get the attached PDF file, which 
seems correct to me.
I am using ConTeXt  version 2017.05.12 22:40 MKIV beta, with LuaTeX version 
1.0.4 on MacOS 10.12.5.

Best regards: Otared K.






mathdigits.pdf
Description: Adobe PDF document

> On 15 May 2017, at 05:37, Mohammad Hossein Bateni  wrote:
> 
> 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  
> 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
> ___

___
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
___

Re: [NTG-context] mathdigits no longer works

2017-05-14 Thread Mohammad Hossein Bateni
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 
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
___

[NTG-context] mathdigits no longer works

2017-05-12 Thread Mohammad Hossein Bateni
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
___