From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16149 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: typescript checking Date: Thu, 19 Aug 2004 00:19:04 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <4123D5D8.60809@wxs.nl> References: 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 1092901181 16064 80.91.224.253 (19 Aug 2004 07:39:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Aug 2004 07:39:41 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 19 09:39:34 2004 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 1BxhWI-0003hC-00 for ; Thu, 19 Aug 2004 09:39:34 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 465ED127B6; Thu, 19 Aug 2004 09:39:20 +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 03619-03-16; Thu, 19 Aug 2004 09:39:19 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 82DD6127AB; Thu, 19 Aug 2004 09:39:14 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6B6EB127A9 for ; Thu, 19 Aug 2004 09:39: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 03659-01-8 for ; Thu, 19 Aug 2004 09:39:08 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 3F53A127A0 for ; Thu, 19 Aug 2004 09:39:04 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i7J7d24R031208; Thu, 19 Aug 2004 09:39:02 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 0DB2B2EB4B; Thu, 19 Aug 2004 09:39:02 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 1881A2E8C9; Thu, 19 Aug 2004 07:39:00 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: "dr. Hans van der Meer" , c In-Reply-To: X-Virus-Scanned: clamd / ClamAV version 0.73, clamav-milter version 0.73a on mailrelay01.solcon.nl X-Virus-Status: Clean 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: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16149 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16149 dr. Hans van der Meer wrote: > Hi Hans, > > On my "travels" through ConTeXt's fonthandling I got the following > result on typescript matching: > enter[xyz][][] and check[xyz][pqr][] > does match. > > If I read the definition of \dochecktypescript#1#2#3 well, this is > because an empty argument #1 at once leads to a \donetrue. That makes > the checking of an empty argument equivalent to the checking with an > [all] key (but for the additional fact that [all] matches on both the > entered and the checked key). Then > > (enter[xyz][][] --- check[xyz][pqr][]) is equivalent with > (enter[xyz][all][] --- check[xyz][pqr][]) > > Isn't this counterintuitive? I would have expected empty matching > nothing at all, or at most matching another empty argument. The point > is, I wanted to do a nice structured setup, something like: > > \starttypescript [A] \usetypescript[A][AA] > \usetypescript[A][AB]\stoptypescript > \starttypescript [A][AA] ... > \starttypescript [A][AB] ... > etc. > > Now [A] matches[A][AA] (i.e. [A][][] matching [A][AA][]) and this > doesn't work. > It has the addtional problem that for example typescript [pos] in > type-pre.tex (by calling \setupbodyfont[pos]) has a sub-typescript > [all][times,helvetica,courier][texnansi] that now will match > typescript [A][][]. That was not meant to be the case! At least not by > me when I wrote the typesciprt. But if the file containing [A][][] is > in the searchpath it will be processed in each round. In some cases it > even can lead to an infinite recursion of typescripts. > > Setting up things from "back to front" ([AA}[A] etc.) alleviates some > of the problems, but does not stop the unwanted occasions where [A] > matches [all][other_things]. > > Do I have it all wrong? > Thanks to those who will take the trouble to look into this matter. > Hans van der Meer Ok, the next release will have: \usetypescriptexact where empty defaults to a false match, so that you can play a bit with that alternative. I'll send you the file. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------