From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44131 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: XeTeX old style numerals Date: Fri, 19 Sep 2008 20:57:52 +0200 Message-ID: <6faad9f00809191157u67b00f5fx2f205b4fa53d85a2@mail.gmail.com> References: 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 1221850779 19259 80.91.229.12 (19 Sep 2008 18:59:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2008 18:59:39 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 19 21:00:35 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 1KglDU-0001m2-CY for gctc-ntg-context-518@m.gmane.org; Fri, 19 Sep 2008 21:00:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2D26F1FE5F; Fri, 19 Sep 2008 20:59:28 +0200 (CEST) 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 08757-04-4; Fri, 19 Sep 2008 20:58:35 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E69831FE39; Fri, 19 Sep 2008 20:58:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 603D71FE3D for ; Fri, 19 Sep 2008 20:58:30 +0200 (CEST) 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 08539-08-2 for ; Fri, 19 Sep 2008 20:57:54 +0200 (CEST) Original-Received: from yx-out-1718.google.com (yx-out-1718.google.com [74.125.44.155]) by ronja.ntg.nl (Postfix) with ESMTP id DD2D11FE39 for ; Fri, 19 Sep 2008 20:57:53 +0200 (CEST) Original-Received: by yx-out-1718.google.com with SMTP id 3so96770yxi.74 for ; Fri, 19 Sep 2008 11:57:52 -0700 (PDT) Original-Received: by 10.150.11.14 with SMTP id 14mr3639306ybk.38.1221850672369; Fri, 19 Sep 2008 11:57:52 -0700 (PDT) Original-Received: by 10.150.137.7 with HTTP; Fri, 19 Sep 2008 11:57:52 -0700 (PDT) In-Reply-To: Content-Disposition: inline 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:44131 Archived-At: On Fri, Sep 19, 2008 at 8:07 PM, Mohamed Bana wrote: > Hi guys, > > Why doesn't this definition use the old style numerals that come with the font? > It seems to use the latin modern font when I try to use \os. Small caps are > working fine. > > I'd like all the numbers in the document to be typeset in old style numerals > unless I tell it otherwise, btw how do I achieve the latter? I didn't tell you that: \definefontfeature [default] [script=latn,language=dflt,liga=yes,kern=yes,tlig=yes,onum=yes] (the important setting is only "onum=yes") The problem is that that's only a dirty trick that is not supposed to work and might stop working in the future, so I would rather try not to rely on it. A better interface for XeTeX typescripts (something similar to fontspec) is missing heavily. ------------ Concerning your first problem: I have tried patching Xsans definitions with \definefontfeature [oldstyle] [script=latn,language=dflt,liga=yes,kern=yes,tlig=yes,onum=yes] \starttypescript[Xserif][all][name] \definefontsynonym [DummyOldStyle] [name:\typescripttwo] [features=oldstyle] %\definefontsynonym [DummyOldStyle] [name:'\typescripttwo'] [features=oldstyle] \definefontsynonym [OldStyle] [DummyOldStyle] \stoptypescript \definetypeface[myface][rm][Xserif][Warnock Pro] \setupbodyfont[myface, 11pt] \starttext {\os 123456789} \stoptext but I have no idea why it fails. kpathsea: Invalid fontname `name:Warnock', contains ':' ! Font \thedefinedfont=name:Warnock not loadable: Metric (TFM) file or installe d font not found. P name:Warnock P ro \dotruefontname ... #1\endcsname *#2#3\fi \else #1 \ifx #2\empty \else *#2#3\... \dotruefontname ... \??ff \fontclass #1\endcsname \else \@EA \redotruefontna... \dotruefontname ... \??ff \fontclass #1\endcsname \else \@EA \redotruefontna... \symbolicsizedfont ...ntname {\glyphfontfile {#3}} at \currentfontbodyscale ... l.32 {\os 123456789} The alternative fails with kpathsea: Invalid fontname `name:Warnock Pro*oldstyle', contains ':' ! Font \thedefinedfont="name:Warnock Pro*oldstyle" at 11.0pt not loadable: Metr ic (TFM) file or installed font not found. \scaledfont \symbolicsizedfont ...ntfontbodyscale \scaledfont \thedefinedfont l.32 {\os 123456789} Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________