Hello List,

As demonstrated in the following example, it does not seem possible to reset \setuphyphenatedurlbefore, after, or normal once changed from default. That is, the first change appears to be global and unchangeable.

If this is the case, can someone suggest a workaround?

(Use case: I want to break URLs at any place in a bibliography but have additional URLs in text that follows which should be broken only in more standard places.)

\starttext
\hsize 6em

Default: \hyphenatedurl{https://wiki.contextgarden.net/URL}

\blank

\bgroup
  \sethyphenatedurlnormal{:=?&/.0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ}
  \sethyphenatedurlbefore{:=?&/.0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ}
  \sethyphenatedurlafter{:=?&/.0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ}

In group: \hyphenatedurl{https://wiki.contextgarden.net/URL}

\blank
\egroup

  \sethyphenatedurlnormal{:=?&}
  \sethyphenatedurlbefore{?&}
  \sethyphenatedurlafter{:=}

Reset: \hyphenatedurl{https://wiki.contextgarden.net/URL}
\stoptext

--
Rik