From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20139 Path: news.gmane.org!not-for-mail From: "Adam Lindsay" Newsgroups: gmane.comp.tex.context Subject: Re: Old-style figures throughout the document Date: Wed, 27 Apr 2005 23:12:00 +0100 Message-ID: <20050427231200.20212@mail.comp.lancs.ac.uk> References: <23106.1114608792@www9.gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1114689391 27626 80.91.229.2 (28 Apr 2005 11:56:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2005 11:56:31 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 28 13:56:26 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DR7cr-0008Un-D7 for gctc-ntg-context-518@m.gmane.org; Thu, 28 Apr 2005 13:56:13 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 433A312813; Thu, 28 Apr 2005 14:01:46 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17730-07; Thu, 28 Apr 2005 14:01:42 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 47D5412807; Thu, 28 Apr 2005 14:01:42 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6D54812807 for ; Thu, 28 Apr 2005 14:01:41 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17774-03-3 for ; Thu, 28 Apr 2005 14:01:40 +0200 (CEST) Original-Received: from mail.comp.lancs.ac.uk (mail.comp.lancs.ac.uk [148.88.3.45]) by ronja.ntg.nl (Postfix) with ESMTP id DFBD612806 for ; Thu, 28 Apr 2005 14:01:40 +0200 (CEST) Original-Received: from [10.10.31.9] (localhost [127.0.0.1]) by mail.comp.lancs.ac.uk (8.12.10/8.12.10) with ESMTP id j3SC1c69020322 for ; Thu, 28 Apr 2005 13:01:39 +0100 (BST) Original-To: "mailing list for ConTeXt users" In-Reply-To: <23106.1114608792@www9.gmx.net> X-Mailer: CTM PowerMail version 5.1 build 4340 English X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20139 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20139 Viktor Varheit said this at Wed, 27 Apr 2005 15:33:12 +0200: >ConTeXt ver: 2005.01.31 fmt: 2005.4.27 int: english mes: english > >Maybe I have to set up anything else? I'm not entirely certain the magic mapfile is in the main release. (Can't check--on the road currently.) >\usetypescript[adobekb][\defaultencoding] This is an unnecessary line. >\usetypescript [modern][\defaultencoding] >\usetypescript [map] [latin-modern-os] [\defaultencoding] >\setupbodyfont[modern] Okay, this should (once you get it to work with the LM fonts) work, but only partially to your requirements--the mapfile magic re-encodes all fonts so all numerals are text figures. In order to get lining figures on command in every context, it'll take a bunch more typescripts (and a few fontvariants defined). For something a little more tractable, we can have a (not very robust) hack that switches to math mode (and therefore CM, not LM) when you want the occasional lining figure. I'll leave auto detection of bold vs normal weight as an exercise for the reader: \usetypescript [modern][\defaultencoding] \usetypescript [map] [latin-modern-os] [\defaultencoding] \definetypeface[boldmath][mm][boldmath][computer-modern] [computer-modern][encoding=default] \setupbodyfont[modern] \def\Lining{\formula} \def\BoldLining{\formula[boldmath]} \starttext test 1234 test \ss test 1234 test \rm test \Lining{1234} test \bf test \BoldLining{1234} test \stoptext And this is all pretty much specific to Latin Modern at the moment. You're looking at fontvariants, most likely, if you want it with your own fonts. (Recommendation (and PracTeX Journal plug:) this is done fairly easily with rich OpenType fonts.) -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-