From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114376 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Denis Maier via ntg-context Newsgroups: gmane.comp.tex.context Subject: \hyphenatedurl in non-hyphenation context Date: Mon, 14 Feb 2022 11:17:32 +0000 Message-ID: <2b64dde0f1d143888a379881db1ff518@unibe.ch> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8819187176396436546==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7651"; mail-complaints-to="usenet@ciao.gmane.io" Cc: denis.maier@unibe.ch To: Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 14 12:18:26 2022 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 1nJZN7-0001fC-JH for gctc-ntg-context-518@m.gmane-mx.org; Mon, 14 Feb 2022 12:18:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A0DFF2A2A66; Mon, 14 Feb 2022 12:17:42 +0100 (CET) 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 RrCE_VRqLfPj; Mon, 14 Feb 2022 12:17:40 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 69C6E2A2A54; Mon, 14 Feb 2022 12:17:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6F1D12A2A60 for ; Mon, 14 Feb 2022 12:17:38 +0100 (CET) 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 tEBoCUQFwtSm for ; Mon, 14 Feb 2022 12:17:36 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=130.92.0.84; helo=mailhub-lb3.unibe.ch; envelope-from=denis.maier@unibe.ch; receiver= Original-Received: from mailhub-lb3.unibe.ch (mailhub-lb3.unibe.ch [130.92.0.84]) (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 BFE9A2A2A4D for ; Mon, 14 Feb 2022 12:17:36 +0100 (CET) X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-03.campus.unibe.ch [130.92.13.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb3.unibe.ch (Postfix) with ESMTPS id 044BE50008F for ; Mon, 14 Feb 2022 12:17:32 +0100 (CET) Thread-Topic: \hyphenatedurl in non-hyphenation context Thread-Index: AdghknNHXRLDb0MdQWavsayzfOO1/w== Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [172.18.72.2] 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:114376 Archived-At: --===============8819187176396436546== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_2b64dde0f1d143888a379881db1ff518unibech_" --_000_2b64dde0f1d143888a379881db1ff518unibech_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I have defined chapter headings set to nothyphenated. Yet, sometimes occur = DOIs in these chapter headings, and I would obviously want those to be brok= en across lines. %%%%%%%%%%%%%%%%%%%%%%%%% \setuppapersize[A6] \setuphead[chapter][align=3D{right,nothyphenated}] \starttext \chapter[title=3D{asdf asdf \goto{\hyphenatedurl{https://doi.org/10.12345/1= 2345.12345}}[url(https://doi.org/10.12345/12345.12345)]}] bla \stoptext %%%%%%%%%%%%%%%%%%%%%%%%% For now, I'm changing the definition to \setuphead[chapter][align=3D{right,= lesshyphenation}], but is there a way to disable hyphenation, but still bre= ak urls across lines? Best, Denis --_000_2b64dde0f1d143888a379881db1ff518unibech_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I have defined chapter headings set to nothyphenated= . Yet, sometimes occur DOIs in these chapter headings, and I would obviously = want those to be broken across lines.

 

%%%%%%%%%%%%%%%%%%%%%%%%%<= /o:p>

\setuppapersize[A6]<= /span>

\setuphead[chapter][align=3D{ri= ght,nothyphenated}]

 

\starttext

 

\chapter[title=3D{asdf asdf \go= to{\hyphenatedurl{https://doi.org/10.12345/12345.12345}}[url(https://doi.org/10.12345/12345.12345)]}]

bla

\stoptext

%%%%%%%%%%%%%%%%%%%%%%%%%<= /o:p>

 

For now, I’m changing the= definition to \setuphead[chapter][align=3D{right,lesshyphenation}], but is= there a way to disable hyphenation, but still break urls across lines?

 

Best,

Denis

 

&nbs= p;

 

--_000_2b64dde0f1d143888a379881db1ff518unibech_-- --===============8819187176396436546== 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== --===============8819187176396436546==--