From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35384 Path: news.gmane.org!not-for-mail From: Christopher Creutzig Newsgroups: gmane.comp.tex.context Subject: Re: :: in xml? Date: Wed, 11 Jul 2007 11:29:33 +0200 Message-ID: <4694A2FD.4030608@creutzig.de> References: <46935418.7020108@creutzig.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1184146208 5394 80.91.229.12 (11 Jul 2007 09:30:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2007 09:30:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 11 11:30:06 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1I8YWH-0006jY-By for gctc-ntg-context-518@m.gmane.org; Wed, 11 Jul 2007 11:30:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 66FFE203E4; Wed, 11 Jul 2007 11:30:00 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18884-08; Wed, 11 Jul 2007 11:29:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9E9C62023D; Wed, 11 Jul 2007 11:29:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8F68F2023D for ; Wed, 11 Jul 2007 11:29:44 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18669-04-2 for ; Wed, 11 Jul 2007 11:29:35 +0200 (CEST) Original-Received: from www.mupad.org (s15254672.onlinehome-server.info [87.106.132.82]) by ronja.ntg.nl (Postfix) with ESMTP id 1616120224 for ; Wed, 11 Jul 2007 11:29:35 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by www.mupad.org (Postfix) with ESMTP id 851BB1ABD0 for ; Wed, 11 Jul 2007 11:29:34 +0200 (CEST) Original-Received: from www.mupad.org ([127.0.0.1]) by localhost (s15254672 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05405-10 for ; Wed, 11 Jul 2007 11:29:34 +0200 (CEST) Original-Received: from [10.1.9.255] (dsl.sciface.com [87.139.67.248]) by www.mupad.org (Postfix) with ESMTP id 3391A1A11C for ; Wed, 11 Jul 2007 11:29:34 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.0 In-Reply-To: <46935418.7020108@creutzig.de> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at example.com X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:35384 Archived-At: Christopher Creutzig wrote: > \starttext > \startXML > a::b > \stopXML > \stoptext The problem is the \setpretty`\:=10 in \XMLsetspecials in verb-xml.tex. This should only be done inside <...>. Suggested patch (I hope it survives being sent by mail): --- verb-xml.tex.orig 2007-07-11 11:08:45.000000000 +0200 +++ verb-xml.tex 2007-07-11 11:26:59.000000000 +0200 @@ -108,12 +108,13 @@ \setpretty`\(=30 \setpretty`\)=30 \setpretty`\,=30 \setpretty`\*=30 \setpretty`\+=30 \setpretty`\#=30 % \setpretty`\:=30 - \setpretty`\:=10 % better for tags + \setpretty`\:=18 % better for tags \setpretty`\&=41 \setpretty`\;=42 } \gdef\XMLsethandlers% {\installprettyhandler 17 \XMLnormal \installprettyhandler 10 \XMLwhattag + \installprettyhandler 18 \XMLmaybewhattag \installprettyhandler 11 \XMLstoptag \installprettyhandler 12 \XMLtypeonetwo \installprettyhandler 13 \XMLtypeonethree @@ -142,7 +143,15 @@ \gdef\XMLnormal#1{\getpretty{#1}} \gdef\XMLwhattag% - {\handlenextnextpretty\XMLdowhattag\XMLstarttag} + {\handlenextnextpretty\XMLdowhattag\XMLstarttag}% + +% For :, use \XMLwhattag inside tag names, \XMLnormal otherwise +\gdef\XMLmaybewhattag% + {\ifinXMLtagname + \expandafter\XMLwhattag + \else + \expandafter\getpretty + \fi} \gdef\XMLdowhattag#1#2% {\ifinXMLcomment ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________