From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86919 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: [fontloader] does base mode support combining substitutions? Date: Sat, 05 Apr 2014 23:07:48 +0200 Message-ID: <534070A4.8080209@wxs.nl> References: <20140405143632.GA18348@acheron> <53405CD1.3010502@wxs.nl> <20140405195833.GA9647@acheron> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1396732098 17357 80.91.229.3 (5 Apr 2014 21:08:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Apr 2014 21:08:18 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 05 23:08:14 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WWXp0-0004ur-6G for gctc-ntg-context-518@m.gmane.org; Sat, 05 Apr 2014 23:08:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 816AA101E9 for ; Sat, 5 Apr 2014 23:08:13 +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 sj+gQX+Lndkg for ; Sat, 5 Apr 2014 23:08:13 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8FA3310220 for ; Sat, 5 Apr 2014 23:08:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5387F101E7 for ; Sat, 5 Apr 2014 23:08:04 +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 O+0xAdWmewQL for ; Sat, 5 Apr 2014 23:08:02 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 3AED6101E1 for ; Sat, 5 Apr 2014 23:07:52 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s35L7pXO027306 for ; Sat, 5 Apr 2014 23:07:51 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.104; Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP id 10304-1713362 for ; Sat, 05 Apr 2014 23:07:51 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: <20140405195833.GA9647@acheron> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=Provincie Overijssel; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06LKl7P26 - 5592d03d6802 - 20140405 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86919 Archived-At: On 4/5/2014 9:58 PM, Philipp Gesang wrote: > =B7=B7=B7=B7=B7=B7=B7=B7=B7 > >> On 4/5/2014 4:37 PM, Philipp Gesang wrote: >>> Hi Hans, >>> >>> when combining e.g. certain number substitutions like onum and >>> pnum or tnum and lnum, node mode seems to work fine. However, >>> those do have value in math mode as well which node mode does not >>> currently support. For comparison, here is a test file: >>> >>> https://bitbucket.org/phg/lua-la-tex-tests/raw/93745dba31e23febb0= 2191c039dea2de743ce77a/cnt-features-8-combined-num.tex >>> >>> Is there a way to define a font with the combination of, say tnum >>> and lnum that will work in math mode? If not, are there plans to >>> implement it in the future? >> >> basemode will always be limited because there we create static glyph >> sets; so. for complex substitutions node mode is the method to use >> >> what do you mean with math mode in this case; in math a digit is >> different from a digit in text mode; i think that if one uses *num >> digits we're talking text mode > > I=92m just relaying a question of a user who wishes to use those > combined lnum+tnum digits in math mode. > >> of course in context we can support whatever we want because we're not >> bound to rules, but the question is: does it make sense; > > Ultimately I can=92t judge that, the problem description does seem > valid though: http://tex.stackexchange.com/q/165238/14066 In math mode characters are organized in categories, e.g. letters are = grouped in alphabets. Now imagine that we start applying font features, = does that mean that a 'a' should become a small caps 'A'? And when are = features applied? Math is a tree and not per se sequential, so how about = ligatures? Ok, digits might be something special but even then, just = swapping one '1' for another one that is not math aware and then is = combined with other math characters (lik ein scripts) can have weird = side effects. This is not something generic. So, the only way to deal with that properly is to define a font where = certain rendering is replaced by another but in the same slot. Even then = one really needs to know if the font is suitable for it. I guess that = such oldstyle thingies are mostly for simple math that stays close to = text, but even then. In context I'd certainly not deal with that by features directly also = because the *num properties are not always implemented the same (we have = a mechanism for combining fonts anyway). If someone realy wants features applied to math (maybe after the math is = processed, then i can imagine that the node font handler is hooked into = the mlist_to_hlist callback so that they are applied afterwards. In any = case it's very macro package dependent. 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 t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________