ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Found a weird URL that breaks things
@ 2021-12-19 17:12 Bruce Horrocks via ntg-context
  2021-12-19 17:37 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Horrocks via ntg-context @ 2021-12-19 17:12 UTC (permalink / raw)
  To: Bruce Horrocks via ntg-context; +Cc: Bruce Horrocks

Hi,

The following MWE won't compile for me:

\setupinteraction [state=start]
\starttext
Click me: 
\goto{https://forum.swissmicros.com/viewtopic.php?f=2&p=22236#p22236}
[url(https://forum.swissmicros.com/viewtopic.php?f=2&p=22236#p22236)]
\stoptext

under "mtx-context     | current version: 2021.12.10 11:41"

\useURL fails as well so I assume it's in the URL parser.

—
Bruce Horrocks
Hampshire, UK

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Found a weird URL that breaks things
  2021-12-19 17:12 Found a weird URL that breaks things Bruce Horrocks via ntg-context
@ 2021-12-19 17:37 ` Wolfgang Schuster via ntg-context
  2021-12-20  0:21   ` Bruce Horrocks via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-12-19 17:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Bruce Horrocks via ntg-context
  Cc: Wolfgang Schuster

Bruce Horrocks via ntg-context schrieb am 19.12.2021 um 18:12:
> Hi,
>
> The following MWE won't compile for me:
>
> \setupinteraction [state=start]
> \starttext
> Click me:
> \goto{https://forum.swissmicros.com/viewtopic.php?f=2&p=22236#p22236}
> [url(https://forum.swissmicros.com/viewtopic.php?f=2&p=22236#p22236)]
> \stoptext
>
> under "mtx-context     | current version: 2021.12.10 11:41"
>
> \useURL fails as well so I assume it's in the URL parser.

The hash (#) is a special character in TeX and you have to either 
replace it with something safe like \letterhash or in case of \useurl 
you can put all settings in a asciimode block, e.g.

\startasciimode
\useurl [...]
\stopasciimode

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Found a weird URL that breaks things
  2021-12-19 17:37 ` Wolfgang Schuster via ntg-context
@ 2021-12-20  0:21   ` Bruce Horrocks via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Bruce Horrocks via ntg-context @ 2021-12-20  0:21 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: Bruce Horrocks, mailing list for ConTeXt users

Thanks Wolfgang. I had tried \# which I normally use to escape a hash but it didn't work. I was unaware of \letterhash.

> On 19 Dec 2021, at 17:37, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
> 
> Bruce Horrocks via ntg-context schrieb am 19.12.2021 um 18:12:
>> Hi,
>> 
>> The following MWE won't compile for me:
>> 
>> \setupinteraction [state=start]
>> \starttext
>> Click me:
>> \goto{https://forum.swissmicros.com/viewtopic.php?f=2&p=22236#p22236}
>> [url(https://forum.swissmicros.com/viewtopic.php?f=2&p=22236#p22236)]
>> \stoptext
>> 
>> under "mtx-context     | current version: 2021.12.10 11:41"
>> 
>> \useURL fails as well so I assume it's in the URL parser.
> 
> The hash (#) is a special character in TeX and you have to either replace it with something safe like \letterhash or in case of \useurl you can put all settings in a asciimode block, e.g.
> 
> \startasciimode
> \useurl [...]
> \stopasciimode
> 
> Wolfgang

—
Bruce Horrocks
Hampshire, UK

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-20  0:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-19 17:12 Found a weird URL that breaks things Bruce Horrocks via ntg-context
2021-12-19 17:37 ` Wolfgang Schuster via ntg-context
2021-12-20  0:21   ` Bruce Horrocks via ntg-context

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