From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38421 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: old style nums Date: Wed, 2 Jan 2008 16:05:37 +0100 Message-ID: <20080102160537.045a900f.schuster.wolfgang@googlemail.com> References: <20080102000916.598d07e0.schuster.wolfgang@googlemail.com> <20080102093708.b7e8b7a2.schuster.wolfgang@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199286664 5160 80.91.229.12 (2 Jan 2008 15:11:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jan 2008 15:11:04 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 02 16:11:24 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1JA5Fb-0003st-Jc for gctc-ntg-context-518@m.gmane.org; Wed, 02 Jan 2008 16:11:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C0DA91FC6B; Wed, 2 Jan 2008 16:10:52 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10708-02-4; Wed, 2 Jan 2008 16:09:45 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 21E241FC06; Wed, 2 Jan 2008 16:09:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6771E1FBD4 for ; Wed, 2 Jan 2008 16:09:20 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12804-01 for ; Wed, 2 Jan 2008 16:08:22 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by ronja.ntg.nl (Postfix) with ESMTP id 80A6A1FBB5 for ; Wed, 2 Jan 2008 16:05:41 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id e12so3326664fga.8 for ; Wed, 02 Jan 2008 07:05:40 -0800 (PST) Original-Received: by 10.86.54.3 with SMTP id c3mr3485114fga.24.1199286340789; Wed, 02 Jan 2008 07:05:40 -0800 (PST) Original-Received: from rover ( [84.149.98.29]) by mx.google.com with ESMTPS id l19sm16249933fgb.3.2008.01.02.07.05.39 (version=SSLv3 cipher=OTHER); Wed, 02 Jan 2008 07:05:40 -0800 (PST) In-Reply-To: X-Mailer: Sylpheed 2.4.8 (GTK+ 2.10.14; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:38421 Archived-At: On Wed, 02 Jan 2008 07:40:33 -0700 "Idris Samawi Hamid" wrote: > On Wed, 02 Jan 2008 01:37:08 -0700, Wolfgang Schuster > wrote: > > >> You also have to define "oldstyle" :-) > > > > No, you don't have to, because oldstyle is predefined in type-ini.tex, > > two other predefined fontfeatures are "default" and "smallcaps" :-) > > Did you try it? worketh not ;-) It did work for me but I got a error message for the next line, error: ...2tex/share/texmf-local/tex/context/base/font-otf.lua:2018: attempt to index field 'description' (a nil value) . l.12 ? My testfile: 01 % engine=luatex 02 03 \definefontfeature 04 [oldstyle] 05 [liga=yes,kern=yes,tlig=yes,trep=yes,onum=yes] % texligatures=yes,texquotes=yes 06 07 \setfontfeature{oldstyle} 08 09 \starttext 10 11 123456789 12 13 \stoptext I could set "tlig=no" and the error message vanishes. > >> ========================================== > % engine=luatex > > \setfontfeature{oldstyle} > > \starttext > > test > > 1234567890 > > \stoptext > >> PS Note that tnum (tabular version) looks better than onum alone, but > >> is a > >> function of onum in the font so cannot be invoked unless onum is invoked > >> first. > > > \definefontfeature[tnum][tnum=yes,onum=yes] > > Hmm, I assumed the order would be [onum=yes,tnum=yes], or does the order > not matter? I think not in this case, but a few OpenType features disable other (e.g. onum and lnum) and the order could be in souch a case. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________