From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17161 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Re: the url color problem Date: Fri, 19 Nov 2004 16:54:10 +0100 Message-ID: <419E1722.7040601@wxs.nl> References: <20041119145403.GA9509@puritan.pcp.ath.cx> <20041119154420.17419@news.comp.lancs.ac.uk> 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 1100879792 26528 80.91.229.6 (19 Nov 2004 15:56:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Nov 2004 15:56:32 +0000 (UTC) Cc: Nikolai Weibull Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 19 16:56:16 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 1CVB7P-0005JV-00 for ; Fri, 19 Nov 2004 16:56:16 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8105A1278D; Fri, 19 Nov 2004 16:56:15 +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 20726-04; Fri, 19 Nov 2004 16:56:15 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B5A8612780; Fri, 19 Nov 2004 16:54:12 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5827412780 for ; Fri, 19 Nov 2004 16:54: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 20726-03-2 for ; Fri, 19 Nov 2004 16:54:11 +0100 (CET) Original-Received: from mailrelay02.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id A48DE126F8 for ; Fri, 19 Nov 2004 16:54:11 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id iAJFs8MH030486; Fri, 19 Nov 2004 16:54:08 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 310DD212E9; Fri, 19 Nov 2004 16:54:11 +0100 (CET) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 96FBD1837E; Fri, 19 Nov 2004 15:54:09 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <20041119154420.17419@news.comp.lancs.ac.uk> X-Virus-Scanned: ClamAV 0.80/540/Tue Oct 19 14:59:23 2004 clamav-milter version 0.80j on mailrelay02 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: , 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:17161 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17161 Adam Lindsay wrote: > Nikolai Weibull said this at Fri, 19 Nov 2004 15:54:03 +0100: > > >>Seems to work fine, thanks. > > Not here. It still gobbles spaces in the label: > > \unprotect > \def\dodouseURL[#1][#2][#3][#4]% > {\iffirstargument > \iffourthargument > \setgvalue{\v!file:::#1}{\doexternaldocument[#2][#3][#4]}% > \else\ifthirdargument > \setgvalue{\v!file:::#1}{\doexternalurl[#2][#3][#1]}% > \else\ifsecondargument > \setgvalue{\v!file:::#1}{\doexternalurl[#2][][#1]}% > \fi\fi\fi > \fi} > > \def\doexternalurl[#1][#2][#3]% > {\bgroup > \doifsomething\@@urstyle{\let\@@iastyle\@@urstyle\let\@@urstyle\empty}% > \doifsomething\@@urcolor{\let\@@iacolor\@@urcolor\let\@@urcolor\empty}% > \doexternaldocument[#1][#2][{\url[#3]}]% > \egroup} > > \protect > > \setupcolors [state=start] > \setupinteraction [state=start] > \setupurl [color=blue] > > \starttext > \useURL[something][something with a space][http://pragma-pod.com/] > link to \from[something] here. > \stoptext \setupcolors [state=start] \setupinteraction [state=start] \setupurl [color=blue] \starttext \useURL[something][http://pragma-pod.com/][][something with a space] link to \from[something] here. \stoptext second arg is url, third file, fourth text ----------------------------------------------------------------- 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 -----------------------------------------------------------------