From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37766 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: showfont with xetex (syntax changed?) Date: Thu, 06 Dec 2007 18:58:39 +0100 Message-ID: <4758384F.9060204@wxs.nl> References: <91844FC2-0148-4347-A206-4B22915EBDE3@st.estfiles.de> <6faad9f00712060332s32be7922yf9b7e7788b4197f4@mail.gmail.com> <4757FDC7.5050103@wxs.nl> <9FBA9A9B-B215-4016-B29B-01B2BC4EB2BA@st.estfiles.de> <115224fb0712060637i7fa3b7ffsf8ddfee203cc0d38@mail.gmail.com> <8C390B2E-12F2-4F31-ADBA-9A5591B88C2C@st.estfiles.de> <115224fb0712060933h7cd3d049we4923f93ce2eb562@mail.gmail.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 1196964288 9024 80.91.229.12 (6 Dec 2007 18:04:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Dec 2007 18:04:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 06 19:04:56 2007 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 1J0L5g-0001nq-N7 for gctc-ntg-context-518@m.gmane.org; Thu, 06 Dec 2007 19:04:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C02CA1FB01; Thu, 6 Dec 2007 19:04:35 +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 10062-05; Thu, 6 Dec 2007 19:04:33 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 04D361FD7D; Thu, 6 Dec 2007 18:59:55 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CD3A21FD7D for ; Thu, 6 Dec 2007 18:59: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 13753-01-2 for ; Thu, 6 Dec 2007 18:59:21 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id 2BAA41FD60 for ; Thu, 6 Dec 2007 18:59:15 +0100 (CET) Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 1543 for ; Thu, 06 Dec 2007 18:59:15 +0100 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <115224fb0712060933h7cd3d049we4923f93ce2eb562@mail.gmail.com> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 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:37766 Archived-At: Wolfgang Schuster wrote: > 2007/12/6, Steffen Wolfrum : >> Am 06.12.2007 um 15:37 schrieb Wolfgang Schuster: >> >>> 2007/12/6, Steffen Wolfrum : >>>> Am 06.12.2007 um 14:48 schrieb Hans Hagen: >>>> >>>>> something numbers=oldstyle could be supported but i see no real >>>>> reason >>>>> for it since then we end up in endless lists of possibilities >>>>> (given all >>>>> kind of combinations) >>>> I have not yet played with Lua, thus I can't follow your and Mojca's >>>> discussion at that point. >>>> But to have a handy way to switch on/off oldstyle figures would be >>>> very useful! >>>> >>>> "numbers=oldstyle" shouldn't be considered as a theoretical >>>> possibility, it is needed quite often. >>>> >>>> Steffen >>> The following should work, can't test it at the moment >>> >>> \definefontfeature[enableoldstyle][onum=yes] >>> \definefontfeature[disableoldstyle][onum=no] >>> >>> \starttext >>> >>> 123 \setfontfeature{enableoldstyle} 456 \setfontfeature >>> {disableoldstyle} 789 >>> >>> \stoptext >> >> you mean typeset with Lua, right? with XeTeX it yields >> >> ! Undefined control sequence. >> l.20 \setfontfeature! > > This is a new feature introduced only for LuaTeX, not XeTeX > and allows you to choose a different fontfeature in your document. > > Could be used overwrite the defaults for \os and \sc. > > \def\os{\setfonrfeature{oldstyle}} > \def\sc{\setfonrfeature{smallscaps}} if you set auto=yes, this mechanism also adapts itself to the language, which for instance for palatino-nova means that in german one does not get an ij lig but in dutch it magically shows up (or ae ligature in french but not english) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________