From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44138 Path: news.gmane.org!not-for-mail From: Mohamed Bana Newsgroups: gmane.comp.tex.context Subject: Re: XeTeX old style numerals Date: Sat, 20 Sep 2008 03:09:18 +0100 Message-ID: References: <6faad9f00809191157u67b00f5fx2f205b4fa53d85a2@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0292870893==" X-Trace: ger.gmane.org 1221877026 7576 80.91.229.12 (20 Sep 2008 02:17:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Sep 2008 02:17:06 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 20 04:18:02 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 1Kgs2s-0008O4-7z for gctc-ntg-context-518@m.gmane.org; Sat, 20 Sep 2008 04:18:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B5AF91FE40; Sat, 20 Sep 2008 04:16:58 +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 31914-02; Sat, 20 Sep 2008 04:15:58 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 42B051FCF6; Sat, 20 Sep 2008 04:15:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9C90D1FCF6 for ; Sat, 20 Sep 2008 04:15:48 +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 27691-02-18 for ; Sat, 20 Sep 2008 04:15:04 +0200 (CEST) Original-Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by ronja.ntg.nl (Postfix) with ESMTP id 4F3981FBF1 for ; Sat, 20 Sep 2008 04:15:03 +0200 (CEST) Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Kgrzy-0003cL-Lh for ntg-context@ntg.nl; Sat, 20 Sep 2008 02:15:02 +0000 Original-Received: from 87-194-191-26.bethere.co.uk ([87.194.191.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 20 Sep 2008 02:15:02 +0000 Original-Received: from mohamed.bana.lists by 87-194-191-26.bethere.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 20 Sep 2008 02:15:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 128 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 87-194-191-26.bethere.co.uk User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) In-Reply-To: <6faad9f00809191157u67b00f5fx2f205b4fa53d85a2@mail.gmail.com> 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:44138 Archived-At: --===============0292870893== Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Mojca Miklavec wrote:
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 numer=
als
unless I tell it otherwise, btw how do I achieve the latter?
    

I didn't tell you that:

\definefontfeature
 [default]
 [script=3Dlatn,language=3Ddflt,liga=3Dyes,kern=3Dyes,tlig=3Dyes,onum=3Dy=
es]

(the important setting is only "onum=3Dyes")

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 wi=
th

\definefontfeature
  [oldstyle]
  [script=3Dlatn,language=3Ddflt,liga=3Dyes,kern=3Dyes,tlig=3Dyes,onum=3D=
yes]

\starttypescript[Xserif][all][name]
\definefontsynonym [DummyOldStyle]  [name:\typescripttwo]   [features=3Do=
ldstyle]
%\definefontsynonym [DummyOldStyle]  [name:'\typescripttwo']
[features=3Doldstyle]
\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=3Dname:Warnock not loadable: Metric (TFM) file or =
installe
d font not found.
<to be read again>
                   P
<argument> 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 \redotruefon=
tna...

\dotruefontname ... \??ff \fontclass #1\endcsname
                                                  \else \@EA \redotruefon=
tna...

\symbolicsizedfont ...ntname {\glyphfontfile {#3}}
                                                   at \currentfontbodysca=
le ...
l.32 {\os
          123456789}

The alternative fails with

kpathsea: Invalid fontname `name:Warnock Pro*oldstyle', contains ':'
! Font \thedefinedfont=3D"name:Warnock Pro*oldstyle" at 11.0pt not loadab=
le: Metr
ic (TFM) file or installed font not found.
<recently read> \scaledfont

\symbolicsizedfont ...ntfontbodyscale \scaledfont
                                                  \thedefinedfont
l.32 {\os
          123456789}


Mojca
  
I got something similar;


! Font \thedefinedfont=3Dname:Warnock not loadable: Metric (TFM) file or installe
d font not found.
<to be read again>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 P
<argument> name:Warnock P
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ro<= br> \dotruefontname ... #1\endcsname *#2#3\fi \else #1
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \if= x #2\empty \else *#2#3\...

\dotruefontname ... \??ff \fontclass #1\endcsname
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \el= se \@EA \redotruefontna...

\dotruefontname ... \??ff \fontclass #1\endcsname
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \el= se \@EA \redotruefontna...

\symbolicsizedfont ...ntname {\glyphfontfile {#3}}
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= at \currentfontbodyscale ...
l.7 {\os
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 123456789}
?
--===============0292870893== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0292870893==--