From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38405 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 09:37:08 +0100 Message-ID: <20080102093708.b7e8b7a2.schuster.wolfgang@googlemail.com> References: <20080102000916.598d07e0.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 1199265367 31037 80.91.229.12 (2 Jan 2008 09:16:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jan 2008 09:16:07 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 02 10:16:27 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 1J9zi2-0005bc-M8 for gctc-ntg-context-518@m.gmane.org; Wed, 02 Jan 2008 10:16:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D8FB01FB39; Wed, 2 Jan 2008 10:16:00 +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 03412-01-7; Wed, 2 Jan 2008 10:15:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 281421FB31; Wed, 2 Jan 2008 10:15:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DF4441FB30 for ; Wed, 2 Jan 2008 10:15:24 +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 03412-01-6 for ; Wed, 2 Jan 2008 10:14:53 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by ronja.ntg.nl (Postfix) with ESMTP id 35BC51FB4B for ; Wed, 2 Jan 2008 09:45:47 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id e12so3262253fga.8 for ; Wed, 02 Jan 2008 00:45:47 -0800 (PST) Original-Received: by 10.86.87.5 with SMTP id k5mr14266869fgb.51.1199263546962; Wed, 02 Jan 2008 00:45:46 -0800 (PST) Original-Received: from rover ( [84.149.82.123]) by mx.google.com with ESMTPS id 12sm15929560fgg.6.2008.01.02.00.45.45 (version=SSLv3 cipher=OTHER); Wed, 02 Jan 2008 00:45:45 -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:38405 Archived-At: On Tue, 01 Jan 2008 19:56:10 -0700 "Idris Samawi Hamid" wrote: > Hi Wolfgang, > > On Tue, 01 Jan 2008 16:09:16 -0700, Wolfgang Schuster > wrote: > > >> What is the official way to get old style numerals in 11pt in mkiv? I'm > >> just using lm. > > > > It depends what do you want to achieve, local changes can be done with > > \os, but this will use numbers from the math font. > > That's exactly why \os is almost useless (it messes up itemizations and > other stuff); better to \switchtotypeface, even for local changes. > > > option two is to write > > \setfontfeature{oldstyle} in the preamble of your document and ConTeXt > > use oldstyle numbers by default if present in the current font. > > 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" :-) > ========================================== > % engine=luatex > > \definefontfeature > [oldstyle] > [mode=node,language=dflt,script=latn,onum=yes,tnum=yes] > > \setfontfeature{oldstyle} > > \starttext > > 1234567890 > > \stoptext > ========================================== > > > There is currently no better way to enable oldstyle number for the > > whole document except you define your own typescripts and use them. > > I spent hours today writing and debugging a huge typescript for lm (all > those optical sizes, since i could not for the life of me get it to > piggy-back the def's in type-siz). I just got it working flawlessly a few > minutes ago -- sublime, a work of art even -- then I get your message > which would have saved me hours of work! I just needed that one command!!! > > You're an angel, just wish I got this this morning ;-) > > Best wishes > Idris > > 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[onum][onum=yes] \definefontfeature[lnum][lnum=yes] \definefontfeature[tnum][tnum=yes,onum=yes] \definefontfeature[pnum][pnum=yes] \starttext \setfontfeature{onum}123456789\par \setfontfeature{lnum}123456789\par \setfontfeature{tnum}123456789\par \setfontfeature{pnum}123456789\par \stoptext 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 ___________________________________________________________________________________