From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60216 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Using stylistic sets in math Date: Thu, 15 Jul 2010 21:45:57 +0200 Message-ID: <4C3F6575.70202@wxs.nl> References: <20100715192413.GA7177@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1279223221 5330 80.91.229.12 (15 Jul 2010 19:47:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Jul 2010 19:47:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 15 21:46:59 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OZUOY-0003qT-VY for gctc-ntg-context-518@m.gmane.org; Thu, 15 Jul 2010 21:46:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 42B6CC9C9F; Thu, 15 Jul 2010 21:46:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nKeixqEA8CrE; Thu, 15 Jul 2010 21:46:55 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 46EA2C9C8C; Thu, 15 Jul 2010 21:46:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 86903C9C8C for ; Thu, 15 Jul 2010 21:46:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FmDaAwh2Z6aj for ; Thu, 15 Jul 2010 21:46:52 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (sc-162.r-213-125-29.schoolconnect.nu [213.125.29.162]) by balder.ntg.nl (Postfix) with ESMTP id 39028C9C89 for ; Thu, 15 Jul 2010 21:46:52 +0200 (CEST) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 4.3g4) with ESMTP id 1336-1713362 for multiple; Thu, 15 Jul 2010 21:46:26 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.10) Gecko/20100512 Lightning/1.0b1 Thunderbird/3.0.5 ThunderBrowse/3.3.1 In-Reply-To: <20100715192413.GA7177@khaled-laptop> X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:60216 Archived-At: 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 ___________________________________________________________________________________