From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19699 Path: news.gmane.org!not-for-mail From: Idris Samawi Hamid Newsgroups: gmane.comp.tex.context Subject: RE: Defining new font switches (solved?) Date: Fri, 8 Apr 2005 15:43:49 -0600 Message-ID: <4267D445@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 1112996516 13357 80.91.229.2 (8 Apr 2005 21:41:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Apr 2005 21:41:56 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 08 23:41:54 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 1DK1EN-00057j-2W for gctc-ntg-context-518@m.gmane.org; Fri, 08 Apr 2005 23:41:35 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 867CB1278E; Fri, 8 Apr 2005 23:43:58 +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 15353-06; Fri, 8 Apr 2005 23:43:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0A99912795; Fri, 8 Apr 2005 23:43:54 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B401912795 for ; Fri, 8 Apr 2005 23:43:52 +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 15696-01 for ; Fri, 8 Apr 2005 23:43:51 +0200 (CEST) Original-Received: from eagle.colostate.edu (eagle.acns.colostate.edu [129.82.100.90]) by ronja.ntg.nl (Postfix) with ESMTP id 6B10B1278E for ; Fri, 8 Apr 2005 23:43:51 +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 j38LhoS1624142 for ; Fri, 8 Apr 2005 15:43:50 -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 j38LhhH646642 for ; Fri, 8 Apr 2005 15:43:43 -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:19699 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19699 Ok, I think I have come closer to understanding the \definestyle problem. The problem (bug?) is in \definetypeface. Consider the following test typescript: ==============type-testlm.tex=============== \definestyle [mvmystyle] [\mv] [] \starttypescript [serif] [mystyle] [name] \definefontsynonym [MySerif] [cmcsc10] \definefontsynonym [Serif] [MySerif] \stoptypescript \starttypescript [serif] [mystyle] [size] \definebodyfont [20.7pt,17.3pt,14.4pt,12pt,11pt,10pt, 9pt,8pt,7pt,6pt,5pt,4pt] [rm] [tf=Serif sa 1, mv=Serif sa 1] \stoptypescript \starttypescript [MYTest] \definebodyfontenvironment [mytest] [default] [interlinespace=2.8ex] \definetypeface [mytest] [rm] [serif] [mystyle] %[mystyle] [encoding=default] \stoptypescript ============================================== Now consider the following test file: ===========test.tex================ % output=pdf interface=en \usetypescriptfile[type-testlm] \usetypescript[MYTest] \setupbodyfont[mytest,12pt] \starttext {\tf This is a test.} {\normal This is a test.} {\mv This is a test.} {\mvmystyle This is a test.} \stoptext ================================= Consider the \definetypeface line. If we leave the comment in place, then the \tf switch will work (and give us small caps) while the \mv switch will give an undefined control sequence. If we uncomment the last two options in \definetypeface, then \mv will also work. Why do predefined switches like \tf work with 4 options while user-defined style options fail? Is this a bug or feature (seems inconsistent)? Thnx in advance as always, and happy weekend Idris ============================ Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523