[NTG-context] never add a hyphen to break a URL

Steffen Wolfrum context at st.estfiles.de
Tue Oct 25 12:11:17 CEST 2022



> Am 25.10.2022 um 11:47 schrieb Hans Hagen via ntg-context <ntg-context at ntg.nl>:
> 
> On 10/25/2022 11:05 AM, Steffen Wolfrum via ntg-context wrote:
>> This does not open the right link.
>> At least on my machine nothing happens when clicking on «litteraturbanken.se <http://litteraturbanken.se/>».
>> (And it looks as the link was cropped, only reads the first line?)
> 
> \setupinteraction[state=start]
> 
> \useurl
>  [litteraturbanken]
>  [https://litteraturbanken.se]
> [författare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil?show_search_work&s_query=retractata&s_lbworkid=lb487378&s_mediatype=faksimil&s_word_form_only]
>  [https://litteraturbanken.se]
> 
> \starttext
> 
>    before \goto{\url[litteraturbanken]}[url(litteraturbanken)] after
> 
>    before \from[litteraturbanken] after
> 
> \stoptext
> 
> beware of viewer behaviour: some viewers parse the displayed pdf
> 
> Hans



…. strange, on my machine your example doesn't open the link.

Please have a look here: only the last one («works …») opens the link. Why?


\setupinteraction[state=start]

\useurl
 [litteraturbanken]
 [https://litteraturbanken.se]
[författare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil?show_search_work&s_query=retractata&s_lbworkid=lb487378&s_mediatype=faksimil&s_word_form_only]
 [https://litteraturbanken.se]

\starttext

   before \goto{\url[litteraturbanken]}[url(litteraturbanken)] after

   before \from[litteraturbanken] after

   fails \useURL[test][https://litteraturbanken.se/författare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil? show_search_work&s_query=retractata&s_lbworkid=lb487378&s_mediatype=faksimil&s_word_form_only][][{https://litteraturbanken.se/författare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil? show_sear-ch_work&s_query=retractata&s_lbworkid=lb487378&s_mediatype=faksimil&s_word_form_only}]\from[test] after

   works \useURL[test][https://litteraturbanken.se/f\%C3\%B6rfattare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil? show_search_work&s_query=retractata&s_lbworkid=lb487378&s_mediatype=faksimil&s_word_form_only][][{https://litteraturbanken.se/författare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil? show_sear-ch_work&s_query=retractata&s_lbworkid=lb487378&s_mediatype=faksimil&s_word_form_only}]\from[test] after

\stoptext


Steffen


More information about the ntg-context mailing list