ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Joop Susan <jgsusan@xs4all.nl>
Subject: URL again...
Date: Sun, 28 Jan 2001 22:05:00 +0100	[thread overview]
Message-ID: <20010128210500.6006.qmail@crux.private.off-line> (raw)

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


             reply	other threads:[~2001-01-28 21:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-28 21:05 Joop Susan [this message]
2001-01-29  7:58 ` Hans Hagen
2001-08-09 11:12 Joop Susan
2001-08-09 12:36 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010128210500.6006.qmail@crux.private.off-line \
    --to=jgsusan@xs4all.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).