From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17921 Path: main.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: finishing a module Date: Sun, 23 Jan 2005 10:33:08 +0100 Message-ID: <41F36F54.1040000@elvenkind.com> References: <05DB4B12-6CB6-11D9-92C7-000A95B9ADE2@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1106472909 15102 80.91.229.6 (23 Jan 2005 09:35:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Jan 2005 09:35:09 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 23 10:35:03 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 1Cse99-000731-00 for ; Sun, 23 Jan 2005 10:35:03 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E4B5D1278C; Sun, 23 Jan 2005 10:35:02 +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 28755-01; Sun, 23 Jan 2005 10:35:02 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C15AC12789; Sun, 23 Jan 2005 10:33:14 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AF08412789 for ; Sun, 23 Jan 2005 10:33:12 +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 28454-05 for ; Sun, 23 Jan 2005 10:33:11 +0100 (CET) Original-Received: from post-23.mail.nl.demon.net (unknown [194.159.73.193]) by ronja.ntg.nl (Postfix) with ESMTP id CAED9126F8 for ; Sun, 23 Jan 2005 10:33:11 +0100 (CET) Original-Received: from boo.demon.nl ([82.161.175.147]:58412 helo=[192.168.1.3]) by post-23.mail.nl.demon.net with esmtp (Exim 4.43) id 1Cse7L-0006YV-LH for ntg-context@ntg.nl; Sun, 23 Jan 2005 09:33:11 +0000 User-Agent: Mozilla Thunderbird 1.0 (X11/20041216) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <05DB4B12-6CB6-11D9-92C7-000A95B9ADE2@uni-bonn.de> 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:17921 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17921 Thomas A.Schmitz wrote: > I spent some (too much) time today improving my Greek module. For the > time being, two questions remain; I'm confident that they're not too > difficult for the experts; any help would be appreciated. See below for my (adjusted) input file, I hope it helps. > (The space after "somefont" looks ugly, but I haven't figured out how > to get rid of it; TeX will always complain if I delete it.) Using \getvalue{MyFont} instead of \MyFont will allow you to remove the space from the definition, but that may not be what you want, because it is more cumbersome. If that is the case, just leave the space there. > 1. After this definition, this will work: > \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] > > This, however, will not work: > \definefont[Gf][\MyFont sa \MyScale] Both work for me. Unless I misunderstood what it is supposed to do. > 2. In my module, I define some special symbols: > \define\koppa{\getglyph{\MyFont}{\char37}} Rude, but effective: \define\koppa {{\Gf \char37}} Greetings, Taco ---------- \def\setupgreek#1[#2]{% \getparameters[GG][Scale=,Font=,#2] \edef\MyScale{\GGScale}% \processaction[\GGFont] [ SomeFont1=>\def\MyFont{cmbx10}, SomeFont2=>\def\MyFont{cmtt10}]% } \setupgreek[Scale=5,Font=SomeFont1] \definebodyfont[4pt,5pt,6pt,7pt,8pt,9pt,10pt,10.5pt,11pt,12pt,14pt,14.4pt,16pt,18pt,20pt,22pt][rm][rm=\getvalue{MyFont} sa \MyScale] \definefont[Gf][\getvalue{MyFont} sa \MyScale] \starttext Beo {\switchtobodyfont[20pt]Beolarge} Beo {\Gf Beolarge} \stoptext