ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: URL as parameter...
Date: Wed, 14 Jun 2000 15:58:26 +0200	[thread overview]
Message-ID: <3.0.6.32.20000614155826.0161dcd0@pop.wxs.nl> (raw)
In-Reply-To: <20000614100157.11715.qmail@crux.private.off-line>

>The following source still does not work. The typesetting is correct, but 
>the url passed to Netscape is still incorrect. The tilde is expanded 
>somewhere. The url that is mangled by the macro, is passed to netscape as:
>"http://www.xs4all.nl/ ormalpenalty 10000 vnf/" instead of
>"http://www.xs4all.nl/~vnf/". Netscape does not appreciate this...

Ah, you're talking about the non typeset one. I can fix that one, but it
must be done careful, so I'll do it when I have time for it. The problem is
in passing the dangerous ~ as argument, and \useURL handles that in a
special way, but only outside macros. You can define your test as: 

\def\utest#1%
  {{\def~{\string~}\useURL[tmp][#1]\goto{\url[tmp]}[URL(tmp)]}}

\def\utest#1%
  {{\let~\tildeletter\useURL[tmp][#1]\goto{\url[tmp]}[URL(tmp)]}}

\def\utest#1%
  {\convertargument#1\to\ascii
   \expanded{\useURL[tmp][\ascii]}%
   \goto{\url[tmp]}[URL(tmp)]}

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
-----------------------------------------------------------------


       reply	other threads:[~2000-06-14 13:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20000614100157.11715.qmail@crux.private.off-line>
2000-06-14 13:58 ` Hans Hagen [this message]
     [not found] <Your message of "Mon, 12 Jun 2000 20:16:57 +0200." <00c001bfd49a$659c08c0$0321a8c0@bmach.nederware.nl>
2000-06-12 20:46 ` Joop Susan
2000-06-13 20:06   ` Hans Hagen
2000-06-12 14:47 Joop Susan
2000-06-12 18:16 ` Berend de Boer
2000-06-13 20:03 ` 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=3.0.6.32.20000614155826.0161dcd0@pop.wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.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).