Re: [NTG-context] Opentype features and space after comma in math mode

2017-06-03 Thread Pablo Rodriguez
On 06/03/2017 09:58 AM, Jose Luis Arellano wrote:
> Thanks guys, but unfortunately the code provided doesn't works.
> 
> \definefontfeature[mathdigits][mode=base,tnum=yes,lnum=yes]
> \definefontfeature[mathdigits][tnum=yes,lnum=yes]

José Luis,

could you provide a minimal complete sample that shows the issue?

Pablo
-- 
http://www.ousia.tk
___
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] Opentype features and space after comma in math mode

2017-06-03 Thread Jose Luis Arellano
Thanks guys, but unfortunately the code provided doesn't works.

\definefontfeature[mathdigits][mode=base,tnum=yes,lnum=yes]
\definefontfeature[mathdigits][tnum=yes,lnum=yes]

2017-06-02 3:47 GMT-04:00 Hans Hagen :

> On 6/2/2017 7:40 AM, Pablo Rodriguez wrote:
>
>> On 06/02/2017 06:40 AM, Jose Luis Arellano wrote:
>>
>>> Dear Wolfgang.
>>>
>>> In recents versions of Context, what is the correct way to use lnum
>>> feature in maths?
>>>
>>> This doesn't works anymore:
>>>
>>> \definefontfeature[mathdigits][default][mode=base,tnum=yes,lnum=yes]
>>>
>>
>> José Luis,
>>
>> I think that line should read:
>>
>>  \definefontfeature[mathdigits][mode=base,tnum=yes,lnum=yes]
>>
>> But without a sample, I’m afraid I cannot test it.
>>
>> Just in case it might help,
>>
>> Pablo
>>
> most math setups have an (unset) mathextra featureset that you can use for
> such extra features and indeed one should not inherit from defult
>
>   \definefontfeature[mathdigits][tnum=yes,lnum=yes]
>
> of course it also depends on what a font provides (if we're talking
> alternates one can also use the normal 'alternates' feature switching in
> 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 / 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
___

Re: [NTG-context] Opentype features and space after comma in math mode

2017-06-02 Thread Hans Hagen

On 6/2/2017 7:40 AM, Pablo Rodriguez wrote:

On 06/02/2017 06:40 AM, Jose Luis Arellano wrote:

Dear Wolfgang.

In recents versions of Context, what is the correct way to use lnum
feature in maths?

This doesn't works anymore:

\definefontfeature[mathdigits][default][mode=base,tnum=yes,lnum=yes]


José Luis,

I think that line should read:

 \definefontfeature[mathdigits][mode=base,tnum=yes,lnum=yes]

But without a sample, I’m afraid I cannot test it.

Just in case it might help,

Pablo
most math setups have an (unset) mathextra featureset that you can use 
for such extra features and indeed one should not inherit from defult


  \definefontfeature[mathdigits][tnum=yes,lnum=yes]

of course it also depends on what a font provides (if we're talking 
alternates one can also use the normal 'alternates' feature switching in 
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 / 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] Opentype features and space after comma in math mode

2017-06-01 Thread Pablo Rodriguez
On 06/02/2017 06:40 AM, Jose Luis Arellano wrote:
> Dear Wolfgang.
> 
> In recents versions of Context, what is the correct way to use lnum
> feature in maths?
> 
> This doesn't works anymore:
> 
> \definefontfeature[mathdigits][default][mode=base,tnum=yes,lnum=yes]

José Luis,

I think that line should read:

\definefontfeature[mathdigits][mode=base,tnum=yes,lnum=yes]

But without a sample, I’m afraid I cannot test it.

Just in case it might help,

Pablo
-- 
http://www.ousia.tk
___
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] Opentype features and space after comma in math mode

2017-06-01 Thread Jose Luis Arellano
Dear Wolfgang.

In recents versions of Context, what is the correct way to use lnum feature
in maths?

This doesn't works anymore:

\definefontfeature[mathdigits][default][mode=base,tnum=yes,lnum=yes]
\definefallbackfamily[mainface][math][...][preset=math:digitsnormal,features
=mathdigits]

Thanks in advance.

2016-08-29 19:31 GMT-03:00 Jose Luis Arellano :

> Thanks Wolfgang
>
___
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] Opentype features and space after comma in math mode

2016-08-29 Thread Jose Luis Arellano
Thanks Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Opentype features and space after comma in math mode

2016-08-29 Thread Wolfgang Schuster

Jose Luis Arellano 
29. August 2016 um 23:22
2016-08-29 18:02 GMT-03:00 Wolfgang Schuster:

Do you use Minion Math?

No, am using another commercial font (Fedra Serif B Pro) without math
support and \definefallbackfamily.
You last example was misleading because you tried to change the features 
of the math font.

Does this work (untested)?

No.
This is what am using:

\definefontfeature[default][default][tnum=yes,lnum=yes]
\definefontfeature[mathdigits][default][mode=base,tnum=yes,lnum=yes]
\definefontfamily[mainface][serif][...]
\definefallbackfamily[mainface][math][...][preset=math:digitsnormal,features=mathdigits]
\definefontfamily[mainface][math][DejaVu Math]
\setupbodyfont[mainface,10pt]

\starttext
0123456789\par
\m{0123456789}
\stoptext

You can see the result in the attached PDF.

I can reproduce it with one of my fonts but have no solution for it.

Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Opentype features and space after comma in math mode

2016-08-29 Thread Jose Luis Arellano
2016-08-29 18:02 GMT-03:00 Wolfgang Schuster :
> Do you use Minion Math?
No, am using another commercial font (Fedra Serif B Pro) without math
support and \definefallbackfamily.
> Does this work (untested)?
No.
This is what am using:

\definefontfeature[default][default][tnum=yes,lnum=yes]
\definefontfeature[mathdigits][default][mode=base,tnum=yes,lnum=yes]
\definefontfamily[mainface][serif][...]
\definefallbackfamily[mainface][math][...][preset=math:digitsnormal,features=mathdigits]
\definefontfamily[mainface][math][DejaVu Math]
\setupbodyfont[mainface,10pt]

\starttext
0123456789\par
\m{0123456789}
\stoptext

You can see the result in the attached PDF.


numbers.pdf
Description: Adobe PDF document
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Opentype features and space after comma in math mode

2016-08-29 Thread Wolfgang Schuster

Jose Luis Arellano 
29. August 2016 um 22:45
After some research, i founded (in Wiki) that space after a comma can
be avoided using: \setupmathematics[autopunctuation=all]. Sorry for
that.

So, only left second question. This is about opentype features,
specifically tabular numbers in math mode. This issue (i think) is
related to the commercial font that am using, because it have some OT
features enabled by default (eg: onum=yes, tnum=no and lnum=no).

Do you use Minion Math?

Curious is that i can only set lnum and onum but not tnum in math.

Does this work (untested)?

\definefontfamily[inlinemath][mode=base,lnum=yes] % tnum=yes etc.

\definefontfamily[…][mm][…][tf=features:inlinemath]

BTW: You can list all features of a font with "mtxrun --script fonts 
--list --info ".


Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Opentype features and space after comma in math mode

2016-08-29 Thread Jose Luis Arellano
After some research, i founded (in Wiki) that space after a comma can
be avoided using: \setupmathematics[autopunctuation=all]. Sorry for
that.

So, only left second question. This is about opentype features,
specifically tabular numbers in math mode. This issue (i think) is
related to the commercial font that am using, because it have some OT
features enabled by default (eg: onum=yes, tnum=no and lnum=no).
Curious is that i can only set lnum and onum but not tnum in math.
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Opentype features and space after comma in math mode

2016-08-29 Thread Jose Luis Arellano
Hello list,
Two questions:

1) How can i enable opentype features (onum, lnum, tnum) in math mode?
2) How can i avoid the space after comma in math mode?

I tried this without success:

\definefontfeature[default][default][onum=yes,lnum=no,tnum=no]
\definefontfeature[lnum][default][onum=yes,lnum=no,tnum=no,mode=base]
\definefontfamily[mainface][serif][TeX Gyre Pagella]
\definefontfamily[mainface][math][TeX Gyre Pagella Math][features=lnum]
\setupbodyfont[mainface]

\starttext
1,123\par
\m{1,123}\par
\stoptext

Thanks in advance...
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___