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

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

Reply via email to