From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113199 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rik Kabel via ntg-context Newsgroups: gmane.comp.tex.context Subject: resetting setuphyphenatedurl... Date: Fri, 22 Oct 2021 22:53:21 -0400 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2085543288957666198==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29627"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.2.0 Cc: Rik Kabel To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Oct 23 04:53:51 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1me7AM-0007W3-Rc for gctc-ntg-context-518@m.gmane-mx.org; Sat, 23 Oct 2021 04:53:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7E557267CA2; Sat, 23 Oct 2021 04:53:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J78HcZ3cio8A; Sat, 23 Oct 2021 04:53:28 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4AAA8267C92; Sat, 23 Oct 2021 04:53:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0AC05267C92 for ; Sat, 23 Oct 2021 04:53:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id emMCkFOuqlKI for ; Sat, 23 Oct 2021 04:53:24 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=166.84.1.89; helo=mailbackend.panix.com; envelope-from=context@rik.users.panix.com; receiver= Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 58A49267C91 for ; Sat, 23 Oct 2021 04:53:24 +0200 (CEST) Original-Received: from [192.168.1.106] (cpe-69-204-136-231.nycap.res.rr.com [69.204.136.231]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4Hbm4L578tz4BvM for ; Fri, 22 Oct 2021 22:53:22 -0400 (EDT) Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:113199 Archived-At: This is a multi-part message in MIME format. --===============2085543288957666198== Content-Type: multipart/alternative; boundary="------------Ru72BOayF4scD6FvzX9eKA91" Content-Language: en-US This is a multi-part message in MIME format. --------------Ru72BOayF4scD6FvzX9eKA91 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------Ru72BOayF4scD6FvzX9eKA91 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

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


--------------Ru72BOayF4scD6FvzX9eKA91-- --===============2085543288957666198== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2085543288957666198==--