From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20028 Path: news.gmane.org!not-for-mail From: "Adam Lindsay" Newsgroups: gmane.comp.tex.context Subject: Re: inheriting size characteristics Date: Thu, 21 Apr 2005 17:53:30 +0100 Message-ID: <20050421175330.20070@mail.comp.lancs.ac.uk> References: <4272C946@webmail.colostate.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1114102248 5500 80.91.229.2 (21 Apr 2005 16:50:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2005 16:50:48 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 21 18:50:42 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOes4-0000lr-UO for gctc-ntg-context-518@m.gmane.org; Thu, 21 Apr 2005 18:49:44 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BAFC7127E7; Thu, 21 Apr 2005 18:54:14 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00642-08; Thu, 21 Apr 2005 18:54:10 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9F14E127B8; Thu, 21 Apr 2005 18:54:10 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A8271127B8 for ; Thu, 21 Apr 2005 18:54:09 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00976-03 for ; Thu, 21 Apr 2005 18:54:08 +0200 (CEST) Original-Received: from mail.comp.lancs.ac.uk (mail.comp.lancs.ac.uk [148.88.3.45]) by ronja.ntg.nl (Postfix) with ESMTP id B7438127B0 for ; Thu, 21 Apr 2005 18:54:08 +0200 (CEST) Original-Received: from [194.80.37.193] (localhost [127.0.0.1]) by mail.comp.lancs.ac.uk (8.12.10/8.12.10) with ESMTP id j3LGrVIk002695 for ; Thu, 21 Apr 2005 17:53:31 +0100 (BST) Original-To: "mailing list for ConTeXt users" In-Reply-To: <4272C946@webmail.colostate.edu> X-Mailer: CTM PowerMail version 5.1 build 4340 English X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20028 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20028 Idris Samawi Hamid said this at Tue, 19 Apr 2005 10:04:28 -0600: >Given predefined switches like \tf and \bf, one inherits the size >characteristics of the one already declared. But for user-defined switches >this does not work. The following minimal files (typescript and test) is >a bit >long, but it accurately illustrates the problem and uses the default >fonts. My >user-defined switch works, but does not inherit from, e.g., \tfc. But \bf >does >inherit. Idris, I don't have time to really delve into the implementation details, but it looks like the difference is that ConTeXt isn't so responsive with user- defined alternatives with more than two characters. Compare the stripped down version with your own. Your \scsb has been changed to \SB, effectively. Note the tricks that can happen behind the scenes: \SBc isn't defined, but still \SB gets scaled at `c'. \SBb is defined as scaled to something different, and the switch picks up that fact. In short, there's a lot of subtle, tricky stuff going on behind the scenes that I don't understand fully: %D The in-file typescript requires a recent beta! \starttypescript[serif] [lm][default] \definefontsynonym [LM] [texnansi-lmr12] \definefontsynonym [LMBold] [texnansi-lmbx12] \definefontsynonym [LMSemiboldCaps] [texnansi-lmro12] \stoptypescript \starttypescript[serif] [lm] [size] \definebodyfont [12pt] [rm] [tf=LM sa 1, bf= LMBold sa 1, SB= LMSemiboldCaps sa 1, SBa=LMSemiboldCaps sa a, SBb=LMSemiboldCaps sa d, % !!! % SBc=LMSemiboldCaps sa c, % !!! SBd=LMSemiboldCaps sa d] \stoptypescript \definetypeface [lmtest] [rm] [serif] [lm] [lm] \setupbodyfont[lmtest,12pt] \starttext \tfc This is a test of stacking font commands. 123467689 \bf This is a test of stacking font commands. 123467689 \SB This is a test of stacking font commands. 123467689 \textrule \tfb This is a test of stacking font commands. 123467689 \SB This picks up the unusual size implicitly. 123467689 \bf This is a test of stacking font commands. 123467689 \stoptext -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-