From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37866 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: showfont with xetex (syntax changed?) Date: Mon, 10 Dec 2007 13:20:43 +0100 Message-ID: <115224fb0712100420i3f4a197dt96ba8aae8b3129e7@mail.gmail.com> 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> <47599A6D.2010009@wxs.nl> <20071209131301.7c97c371.schuster.wolfgang@googlemail.com> <475D2C80.3050901@wxs.nl> 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 1197289263 26565 80.91.229.12 (10 Dec 2007 12:21:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Dec 2007 12:21:03 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 10 13:21:12 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 1J1hdG-0008Mj-GP for gctc-ntg-context-518@m.gmane.org; Mon, 10 Dec 2007 13:21:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 850671FC00; Mon, 10 Dec 2007 13:20: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 22105-02-10; Mon, 10 Dec 2007 13:20:47 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 38D861FC03; Mon, 10 Dec 2007 13:20:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 827F51FC03 for ; Mon, 10 Dec 2007 13:20:46 +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 22105-02-9 for ; Mon, 10 Dec 2007 13:20:43 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by ronja.ntg.nl (Postfix) with ESMTP id A44E41FB0B for ; Mon, 10 Dec 2007 13:20:43 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id q2so1460442uge for ; Mon, 10 Dec 2007 04:20:43 -0800 (PST) Original-Received: by 10.67.116.9 with SMTP id t9mr6217615ugm.1197289243222; Mon, 10 Dec 2007 04:20:43 -0800 (PST) Original-Received: by 10.67.122.17 with HTTP; Mon, 10 Dec 2007 04:20:42 -0800 (PST) In-Reply-To: <475D2C80.3050901@wxs.nl> 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:37866 Archived-At: 2007/12/10, Hans Hagen : > Wolfgang Schuster wrote: > > On Fri, 07 Dec 2007 20:09:33 +0100 > > Hans Hagen wrote: > > > >> Wolfgang Schuster wrote: > >>> 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 > >> btw, these are attributes and therefore can be used grouped > >> > >> 123 {\setfontfeature{enableoldstyle} 456} 789 > > > > Is it also possible to inherit the values from the previuos change, > > e.g. I have enabled smallcaps and I want to enable oldstyle numerals > > with another command, I tried this but the old setting is forgotten and > > only the new setting work, how can I do this. > > > > \usetypescript[palatino] > > \setupbodyfont[palatino] > > > > \definefontfeature[caps][smcp=yes,lnum=yes] > > \definefontfeature[onum][onum=yes] > > > > \def\sc{\setfontfeature{caps}} > > \def\os{\setfontfeature{onum}} > > > > \starttext > > > > Text 123 \sc Text 123 \os Text 123 > > i assume ... > > Text 123 {\sc Text 123 \os Text} 123 > > ... is meant no, why should I write this, this make absolutely no sense because why should I enable odlstyle numerals and close the group before I get them. Grouping make sense in real documents but this was only a example and I don't nedd it here. What I want is, write the first "Text 123" write the normal font settings, enable for second "Text 123" small caps but use linings figures or whatever else is the default value, this make sense in tables where I want to use smallcaps e.g. in a title row but the numbers should remain in the local style e.g. table numerals. My third "Text 123" pair should now be written in smallcaps because I set it with \sc and use now oldstyle numerals. > > \stoptext > > accumulated features is something on the agenda, but we need a proper > definition interface for that; sometimes one wants to accumulate, > sometines not; sometime one even wants to kill features I can wait for this but it should be integrated in a not so distand future. > > PS: Will the smallcaps key also work in a feature release of the latin > > modern fonts, thid didn't work at the moment and I was forced to use > > the Pagella fonts. > > maybe there will be a lmroman10 once that has the features merged > > Hans No longer oldstyle numerals from the math fonts for latin modern, this sound very good. 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 ___________________________________________________________________________________