From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Using stylistic sets in math
Date: Thu, 15 Jul 2010 21:45:57 +0200 [thread overview]
Message-ID: <4C3F6575.70202@wxs.nl> (raw)
In-Reply-To: <20100715192413.GA7177@khaled-laptop>
On 15-7-2010 9:24, Khaled Hosny wrote:
> In XITS I have stylistic sets (ss01-07) for accessing additional
> alphabets not bresent in Unicode, or variants of exising ones.
>
> For example, ss01 maps the script alphabets to an alternate calligraphic
> one, so I did:
>
> \starttext
> \setupbodyfont[xits]
> \ctxlua{fonts.otf.features.register_base_substitution('ss01')}
> \definefontfeature[ss01][mode=base,script=math,ss01=yes]
> $\addff{ss01}\cal ABCDEFG$
> \stoptext
>
> (I was not expecting \addff to work in math, but anyway).
>
> This works, however, but I don't want to set the feature globally:
>
> \starttext
> \ctxlua{fonts.otf.features.register_base_substitution('ss01')}
> \definefontfeature[math-text][mode=base,script=math,ss01=yes]
> \setupbodyfont[xits]
> $\cal ABCDEF$
> \stoptext
math currently operates in base mode; what i can do is map it onto some
private range; as the number of math fonts is small it's no big deal to
keep either a list of features that provide this; we'd best cook up such
a list in small committee
also, context does math different than e.g. latex so having the glyphs
in some well defined spot helps macro packages
actually, since there are probably more symbols not in unicode, i think
that we need to define some extensions ourselves in the private use
area.
so, to start with you need some 7 alphabets of 26 chars ? do you think
that there will be more? for instance we can reserve 0xFE700-0xFE8FF
0xFE700 ss01
0xFE720 ss02
0xFE740 ss03
0xFE760 ss04
0xFE780 ss05
0xFE7A0 ss06
0xFE7C0 ss07
or we could even move to a much lower range (taco might know a good
one); it does not matter much as we can define an offset
@aditya & mojca: didn't we have some pending symbols as well? I do use
some slots for some lm left-overs but there might be more.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-07-15 19:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-15 19:24 Khaled Hosny
2010-07-15 19:45 ` Hans Hagen [this message]
2010-07-17 3:49 ` Khaled Hosny
2010-07-17 5:43 ` Taco Hoekwater
2010-07-17 5:56 ` Khaled Hosny
2010-07-17 6:07 ` Taco Hoekwater
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=4C3F6575.70202@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).