ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: font features in math
Date: Wed, 4 May 2016 09:53:14 +0200	[thread overview]
Message-ID: <9d8c4bbd-2f9c-02d8-60b6-1a5231f65f74@wxs.nl> (raw)
In-Reply-To: <18712lpul4xrr.dlg@nililand.de>

On 5/3/2016 12:13 AM, Ulrike Fischer wrote:
> Am Mon, 2 May 2016 18:47:36 +0200 schrieb Philipp Gesang:
>
>>> How can you switch a feature like mode=node to mode=base for
>>> every font in math?
>
>> Define two fonts: one for use in math mode, another for where you
>> really, really require node mode.
>
> That's easy if one can select the fonts explicitly, but the question
> was triggered by the url package which internally switches to math.
>
> Also in the context example there aren't two font definitions:
>
> \starttext
>
> \font\test= {name:TeX-Gyre-Termes:+onum}
> \test 0123456789
> $\fam0 \textfont0=\test 0123456789$
> \stoptext
>
> Nevertheless "\test" seems to use mode=node outside math and
> mode=base inside math and I would like to know where the code is
> that does it.

in your font definition you use a low level xetex like specification so 
you bypass the normal feature definition mechanism which means that as 
you don't specify a mode, you get base mode which in turn means that the 
onum is applied to the font immediately and as you use the same font in 
math you get onum there too

{name:TeX-Gyre-Termes:+onum;mode=node}

gives you onum in text as a result of node mode processing but then the 
math is normal digits because the font is pass as-is

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2016-05-04  7:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-01  9:22 Ulrike Fischer
2016-05-01  9:45 ` Philipp Gesang
2016-05-01 10:53   ` Ulrike Fischer
2016-05-01 12:46     ` Hans Hagen
2016-05-02 16:47     ` Philipp Gesang
2016-05-02 17:51       ` jfbu
2016-05-02 18:15         ` jfbu
2016-05-02 18:35           ` jfbu
2016-05-03  9:11             ` NEW : ConTeXt documentation in French (Wikibook) Jean-Pierre Delange
2016-05-03  9:49               ` Otared Kavian
2016-05-02 22:13       ` font features in math Ulrike Fischer
2016-05-03  7:25         ` jfbu
2016-05-04  7:53         ` Hans Hagen [this message]
2016-05-04  8:38           ` Ulrike Fischer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9d8c4bbd-2f9c-02d8-60b6-1a5231f65f74@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).