From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15300 Path: main.gmane.org!not-for-mail From: Nikolai Weibull Newsgroups: gmane.comp.tex.context Subject: Re: Wrapping \type{} Date: Tue, 1 Jun 2004 23:24:23 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <20040601212422.GA2739@puritan.pcp.ath.cx> References: <20040529232021.GA3268@puritan.pcp.ath.cx> <6.1.1.1.2.20040601203125.07daf140@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1086125238 10816 80.91.224.253 (1 Jun 2004 21:27:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Jun 2004 21:27:18 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Tue Jun 01 23:26:54 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BVGmb-000404-00 for ; Tue, 01 Jun 2004 23:26:53 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 1305410B4C; Tue, 1 Jun 2004 23:21:56 +0200 (MEST) Original-Received: from mxfep02.bredband.com (mxfep02.bredband.com [195.54.107.73]) by ref.ntg.nl (Postfix) with ESMTP id 4EC2610B3A for ; Tue, 1 Jun 2004 23:19:29 +0200 (MEST) Original-Received: from puritan.pcp.ath.cx ([213.112.43.196] [213.112.43.196]) by mxfep02.bredband.com with ESMTP id <20040601212421.EKZF29954.mxfep02.bredband.com@puritan.pcp.ath.cx> for ; Tue, 1 Jun 2004 23:24:21 +0200 Original-Received: by puritan.pcp.ath.cx (Postfix, from userid 1000) id 07FE8ADFDF; Tue, 1 Jun 2004 23:24:23 +0200 (CEST) Original-To: ntg-context@ntg.nl Content-Disposition: inline In-Reply-To: <6.1.1.1.2.20040601203125.07daf140@server-1> User-Agent: Mutt/1.5.6i Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:15300 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15300 * Hans Hagen [Jun 01, 2004 21:20]: > \definestartstop[BNF][before=\startlines\setups{myBNF},after=\stoplines] > > \startsetups[myBNF] > \defineactivecharacter " > {\bgroup\tttf\setupinlineverbatim\defineactivecharacter " {\egroup}} > \defineactivecharacter < {\mathematics{\string<}} > \defineactivecharacter > {\mathematics{\string>}} > \stopsetups > > \starttext > > \startBNF > : ; , "|", . > \stopBNF > > \stoptext > > (cross your fingers that this does not interfere with reading files, but > normally < > " are taken care of) It actually worked! Thank you so much for the example. I'll probably rewrite my module a bit to work more like your example above actually, but it even worked in the context of my module. Wow, this really saved my ass. > an alternative is to write a plugin forthe verbatim environment (see > verb-ini to get an idea of what nasty things are involved with catcode > changes). Yeah, I was thinking of that actually, but didn't realize it as a possibility until I'd written a lot of code...guess I should rethink now. Thank you Hans, nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}