From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3896 Path: main.gmane.org!not-for-mail From: Joop Susan Newsgroups: gmane.comp.tex.context Subject: URL again... Date: Sun, 28 Jan 2001 22:05:00 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <20010128210500.6006.qmail@crux.private.off-line> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035394603 21079 80.91.224.250 (23 Oct 2002 17:36:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:36:43 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:3896 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3896 Hello, Is there a way to prevent '\url' from stripping trailing '/'s in the printed document? The '/' in the URL passed to the webbrowser is still there (as it should be). I use the following code: ----------------- % output=PDF \setupurl [style=\ss] \setupbodyfont[ss,10pt] \setupwhitespace[medium] \def\utest#1% {{\let~\tildeletter\useURL[tmp][#1]% \strut\useexternalfigure[web][web][factor=10]% \inframed[offset=none,frame=off]{\externalfigure[web]}\kern0.7mm% \goto{\url[tmp]}[URL(tmp)]}} \setupcolors[state=start] \setupinteraction[state=start,color=darkred,contrastcolor=red] \starttext \utest{http://www.xs4all.nl/~vnf/index.html} We must be safe for tildes. \utest{http://www.xs4all.nl/~vnf/} This one should have a trailing '/'. Why hasn't it? \utest{http://www.xs4all.nl/~vnf/index_fi.html} We must be safe for underscores. \utest{http://localhost/~jgsusan/main.pl?type=5&lang=nl&name=abc\%20def&use=9} We must be safe for some more funnies... \stoptext ------------------- pdfeTeX, Version 3.14159-14f-released-20000525-2.1 (Web2C 7.3.2x) ConTeXt ver: 2000.9.21 fmt: 2001.1.26 int: english mes: english Joop