Re: [NTG-context] resetting setuphyphenatedurl...
On 10/24/2021 06:37, Hans Hagen wrote: On 10/23/2021 4:53 AM, Rik Kabel via ntg-context wrote: 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? in lmtx i can add support for grouping (in mkiv it would be a fragile hack; these settings happen in lua not in tex) Hans Grouping would be great, since one does not have to keep track of the setting outside the immediate scope. However, since this is a setup function (per the name), perhaps a setup reset function would be an option. Could that be done in MkIV as well? In either case, the user must be able to assign new values to all three. Otherwise, an LMTX-only function is preferable to not having a way to do it at all. -- 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 ___
Re: [NTG-context] resetting setuphyphenatedurl...
On 10/23/2021 4:53 AM, Rik Kabel via ntg-context wrote: 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? in lmtx i can add support for grouping (in mkiv it would be a fragile hack; these settings happen in lua not in tex) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 ___
[NTG-context] resetting setuphyphenatedurl...
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 ___