From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2293 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: URL as parameter... Date: Tue, 13 Jun 2000 22:06:02 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20000613220602.00adbb20@pop.wxs.nl> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035393083 7657 80.91.224.250 (23 Oct 2002 17:11:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:11:23 +0000 (UTC) Cc: Original-To: Joop Susan In-Reply-To: <20000612204633.10077.qmail@crux.private.off-line> Xref: main.gmane.org gmane.comp.tex.context:2293 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2293 At 10:46 PM 6/12/2000 +0200, Joop Susan wrote: >> > Can anyone tell me how to pass a URL as a parameter to a >> > macro if there is >> > a tilde character present in the string. In the following >> >> Perhaps use something that really is a tilde: >> >> \def\MyTilde{\tttf ~} >> >> \useURL[test][test/\MyTilde test] >> > >\url seems to use a diferent mechnism. I was hoping there is something >similar for this case. I'm afraid I'm not very good at understanding >ConTEXt source. ;-) Indeed a different mechanism: ~ as well as \~ are handled. The \url macro takes care of sanitizing chars as well as breaking url's. The \useURL is more robust. Anyhow, it should work ok, even in situations where the url is passed as argument. I remember that tobias and I spend quite some time discussing the ways to hyphenate them,so there are even different strategies available. 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.nl -----------------------------------------------------------------