From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17916 Path: main.gmane.org!not-for-mail From: Thomas A.Schmitz Newsgroups: gmane.comp.tex.context Subject: processaction in keyval lists Date: Sat, 22 Jan 2005 16:01:00 +0100 Message-ID: <6DAABEA8-6C86-11D9-92C7-000A95B9ADE2@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1106406266 21110 80.91.229.6 (22 Jan 2005 15:04:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Jan 2005 15:04:26 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 22 16:04:20 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CsMoG-0004uw-00 for ; Sat, 22 Jan 2005 16:04:20 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6E6F3127A4; Sat, 22 Jan 2005 16:04:18 +0100 (CET) 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 18362-03; Sat, 22 Jan 2005 16:04:17 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7D2871277E; Sat, 22 Jan 2005 16:04:16 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6D0411277E for ; Sat, 22 Jan 2005 16:04:14 +0100 (CET) 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 18267-05 for ; Sat, 22 Jan 2005 16:04:13 +0100 (CET) Original-Received: from mailout08.sul.t-online.com (unknown [194.25.134.20]) by ronja.ntg.nl (Postfix) with ESMTP id 750591276D for ; Sat, 22 Jan 2005 16:04:13 +0100 (CET) Original-Received: from fwd03.aul.t-online.de by mailout08.sul.t-online.com with smtp id 1CsMo9-00047u-01; Sat, 22 Jan 2005 16:04:13 +0100 Original-Received: from [192.168.0.2] (GQAnE4ZfoetC7ads5raoway1J6oZmmf4t4bVupAuvs-yvsspqodnsw@[62.158.132.87]) by fmrl03.sul.t-online.com with esmtp id 1CsMnu-0pEs1g0; Sat, 22 Jan 2005 16:03:58 +0100 Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.619) X-ID: GQAnE4ZfoetC7ads5raoway1J6oZmmf4t4bVupAuvs-yvsspqodnsw@t-dialin.net X-TOI-MSGID: 59139049-70d2-4d20-a11f-530735a10d16 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: main.gmane.org gmane.comp.tex.context:17916 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17916 All, I couldn't resist spending some time today working on the Greek problem. I'm trying to write a proper module that would allow me to set up definitions for fonts and scaling. But I'm running into a problem that is beyond my meagre TeX abilities. I want to define the setup-command like so (using code that Taco send to the list a couple of months ago and that can be found on the wiki): \unprotect \def\setupgreek{\dodoubleempty\dosetupgreek} \def\dosetupgreek#1[#2]{% \getparameters[GG][Scale=,Font=,#2]%Font,Scale \edef\MyScale{\GGScale}% \expandafter\processaction\expandafter[\GGFont] [SomeFont1 =>\def\MyFont{somefont }, SomeFont2 =>\def\MyFont{someotherfont }] } \protect \definebodyfont[4pt,5pt,6pt,7pt,8pt,9pt,10pt,10.5pt,11pt,12pt,14pt,14.4p t,16pt,18pt,20pt,22pt][rm][Gf=\MyFont sa \MyScale] So I want this setup \setupgreek[Scale=1.5,Font=SomeFont1] to be expanded to somefont scaled at 1.5. However, when I process a file, I always get this error: ! Undefined control sequence. \MyFont sa \MyScale \parsefontspec #1->\xdef \somefontspec {#1 \space }\@EA \doparsefontspec \som... \xxdododefinefont ...tsize {#2}\parsefontspec {#4} \newfontidentifier \let \l... \fontstrategy ...ame #1\csname #2#3#4#5\endcsname \tryingfontfalse \fi ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \ifskipfontchar... ... When I add this line \def\MyFont{somefont } to the module, files compile without problems. So I conclude: the mistake is not in the definiton of MyFont itself, but my values are not getting processed the proper way; something in the \processaction part must be wrong. But I'm "stymied" here. Any suggestions would be most welcome! Best Thomas