From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43931 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: One very silly question Date: Fri, 12 Sep 2008 08:29:31 +0200 Message-ID: <115224fb0809112329m6b79dee3tb7871e0f1e26cde9@mail.gmail.com> References: <68bfdc900809110821p18fa137cl77c0829c230f224f@mail.gmail.com> <48C94B39.9080002@wxs.nl> <68bfdc900809112313w2ea5a403s2a6c622af94190bf@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 1221201077 23896 80.91.229.12 (12 Sep 2008 06:31:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2008 06:31:17 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 12 08:32:12 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 1Ke2CS-0000bf-1Q for gctc-ntg-context-518@m.gmane.org; Fri, 12 Sep 2008 08:32:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 88FA61FF86; Fri, 12 Sep 2008 08:31:09 +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 28180-02; Fri, 12 Sep 2008 08:30:13 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A47CD1FF76; Fri, 12 Sep 2008 08:30:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9FF2A1FF76 for ; Fri, 12 Sep 2008 08:30:09 +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 26011-03-3 for ; Fri, 12 Sep 2008 08:29:33 +0200 (CEST) Original-Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.177]) by ronja.ntg.nl (Postfix) with ESMTP id 251091FF51 for ; Fri, 12 Sep 2008 08:29:33 +0200 (CEST) Original-Received: by el-out-1112.google.com with SMTP id s27so318383ele.20 for ; Thu, 11 Sep 2008 23:29:31 -0700 (PDT) Original-Received: by 10.103.242.7 with SMTP id u7mr2624067mur.125.1221200971058; Thu, 11 Sep 2008 23:29:31 -0700 (PDT) Original-Received: by 10.103.215.10 with HTTP; Thu, 11 Sep 2008 23:29:31 -0700 (PDT) In-Reply-To: <68bfdc900809112313w2ea5a403s2a6c622af94190bf@mail.gmail.com> 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:43931 Archived-At: On Fri, Sep 12, 2008 at 8:13 AM, Yue Wang wrote: > Hi, Hans: > >> no, in such cases, just create another typeface with relevant fonts >> using smallcaps and then switch to that typeface > > OK. I see. Thanks. > >> hm, it's nbot that complex, just define a featureset and use it; one can >> even adapt features in between if needed (dynamic features) > > How to use dynamic features? it is not documented in co-typography and co-fonts. > is there such interface like: > > \definefeature[onum][onum=yes] > \definefeature[smcp][smcp=yes] \def\onum{\setfontfeature{onum}} > {\rm\bf\onum\smcp Hello 2008!} Don't do this, this has nothing to do with logical markup and the better way is to write {\definedfont[SerifBold*onum]Hello 2008!} ... >> you can be pretty sure that whatever you 'predefine' >> (font-blabla-using-oldstyle-and-smallcaps) will have exceptions and then >> we end up with n! possible combinations > > not n!, but 2^n. > > last question: is it possible to add fontconfig-like interface? if I > define to use minion famaily, then all the alternatives are > automatically defined like xetex? Hans need fonts to test this but I could provide you a typescript based solution, it's not so elegant as the XeTeX method but it works. 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 ___________________________________________________________________________________