From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20030 Path: news.gmane.org!not-for-mail From: Idris Samawi Hamid Newsgroups: gmane.comp.tex.context Subject: proposed convention for variation switching [wasRE:inheriting ... Date: Thu, 21 Apr 2005 12:36:55 -0600 Message-ID: <4275956D@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="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1114108379 26844 80.91.229.2 (21 Apr 2005 18:32:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2005 18:32:59 +0000 (UTC) Cc: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 21 20:32:56 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 1DOgTa-0007zJ-Hg for gctc-ntg-context-518@m.gmane.org; Thu, 21 Apr 2005 20:32:34 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4A0F71276C; Thu, 21 Apr 2005 20:37:05 +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 01766-01; Thu, 21 Apr 2005 20:37:01 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8F72D1276F; Thu, 21 Apr 2005 20:37:01 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5758C1276F for ; Thu, 21 Apr 2005 20:37:00 +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 01739-02 for ; Thu, 21 Apr 2005 20:36:59 +0200 (CEST) Original-Received: from eagle.colostate.edu (eagle.acns.colostate.edu [129.82.100.90]) by ronja.ntg.nl (Postfix) with ESMTP id DAA8C1276C for ; Thu, 21 Apr 2005 20:36:58 +0200 (CEST) Original-Received: from lamar.colostate.edu (lamar.acns.colostate.edu [129.82.100.75]) by eagle.colostate.edu (AIX5.1/8.11.6p2/8.11.0) with ESMTP id j3LIauS1403640; Thu, 21 Apr 2005 12:36:56 -0600 Original-Received: from webmail.colostate.edu (csunts4.acns.colostate.edu [129.82.100.135]) by lamar.colostate.edu (AIX5.1/8.11.6p2/8.11.0) with ESMTP id j3LIaVH166718; Thu, 21 Apr 2005 12:36:31 -0600 X-WebMail-UserID: ishamid Original-To: mailing list for ConTeXt users X-EXP32-SerialNo: 00002247, 00002264 X-Mailer: Infinite Mobile Delivery (Hydra) SMTP v3.62.01 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:20030 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20030 >===== Original Message From "Adam Lindsay" ===== >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. Hmm, I was a little worried at first about >2-char switches at first, till I noticed that type-siz.tex uses some four-letter switches as well, e.g. ============line-575============== \definebodyfont [12pt] [mm] [mrbf=xcmb12, exbf=cmex10 at 12pt, mibf=cmmib10 at 12pt, sybf=cmbsy10 at 12pt] ===================================== So I assumed that such a scheme would work. My suggestion: Either a) the \*a(b)(c) etc mechanism needs modification to accomodate >2-char switches, or b) an official 2-char switching convention for dealing with semibold and the standard five variants of small caps in ConTeXt is needed. Ideally users should not have to define switches for these standard variants anyway. Here is an idea (further discussion needed): a) Let's assume no change to the ConTeXt internals to accomodate >2-char switches. b) There are twelve basic style variants in a professional modern serif font (math, greek, etc excluded): six for lower case and six for small caps. On this basis, here is my suggestion for an official ConTeXt convention for professional fonts: %% lowercase % medium \tf % semibold \sb % bold \bf % italic \it % semibold italic \st % bold italic \bi %% small caps % medium \TF % semibold \SB % bold \BF % italic \IT % semibold italic \ST % bold italic \BI The small caps versions are identical to the lowercase versions, with the difference that the small caps versions use caps. This serves as a mnemonic device. We also need some long-winded control sequences: \definestyle [semiboldroman,semibold] [\sb][] \definestyle [semibolditalic] [\st][] \definestyle [smallcapssemibold,semiboldsmallcaps] [\SB][] \definestyle [smallcapsbold,boldsmallcaps] [\BF][] \definestyle [smallcapsitalic,italicsmallcaps] [\IT][] \definestyle [smallcapssemibolditalic,semibolditalicsmallcaps][\ST][] \definestyle [smallcapsbolditalic,bolditalicsmallcaps] [\BI][] An identical or similar analysis may work for sans-serif, but I have to check... Thank you very much for pinning down the source of this! Best Idris ============================ Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523