From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: Denis Maier <denismaier@mailbox.org>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: URLs in XML, escaping special characters
Date: Wed, 7 Oct 2020 17:19:57 +0200 [thread overview]
Message-ID: <b6078aa8-e51e-4beb-b0ac-7ad7f2831c6c@gmail.com> (raw)
In-Reply-To: <f8b13759-4310-bcfc-c165-67ac1fd93a13@mailbox.org>
Denis Maier schrieb am 07.10.2020 um 17:16:
> Am 07.10.2020 um 16:47 schrieb Wolfgang Schuster:
>> Denis Maier schrieb am 07.10.2020 um 15:42:
>>> Hi,
>>>
>>> I'm struggling with getting hyphenated URLs to work from XML input.
>>> How do you enter ampersands and percent signs correctly so that they
>>> can be used in links?
>>>
>>> This here doesn't really works:
>>>
>>> ================
>>> \startxmlsetups xml:test
>>> \xmlsetsetup{#1}{*}{-}
>>> % Hauptgruppen
>>> \xmlsetsetup{#1}{article|ext-link}{xml:*}
>>> \stopxmlsetups
>>>
>>> \xmlregistersetup{xml:test}
>>>
>>> \startxmlsetups xml:article
>>> \starttext
>>> \xmlflush{#1}
>>> \stoptext
>>> \stopxmlsetups
>>>
>>> \startxmlsetups xml:ext-link
>>> \goto{\hyphenatedurl{\xmlflush{#1}}}[url(\xmlflush{#1})]
>>> \stopxmlsetups
>>
>> \startxmlsetups xml:ext-link
>> \begingroup
>> \expandUx
>> \expanded{\goto{\hyphenatedurl{\xmlflush{#1}}}[url(\xmlflush{#1})]}
>> \endgroup
>> \stopxmlsetups
>>
>> Wolfgang
>
> Thanks, Wolfgang.
>
> Unfortunately, the clickable link is still not correct. What am I doing
> wrong?
Add
\setupinteraction[state=start]
to your document.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2020-10-07 15:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-07 13:42 Denis Maier
2020-10-07 14:47 ` Wolfgang Schuster
2020-10-07 15:16 ` Denis Maier
2020-10-07 15:19 ` Wolfgang Schuster [this message]
2020-10-07 15:34 ` Denis Maier
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=b6078aa8-e51e-4beb-b0ac-7ad7f2831c6c@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=denismaier@mailbox.org \
--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).