From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114380 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jbf via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: \hyphenatedurl in non-hyphenation context Date: Tue, 15 Feb 2022 10:16:16 +1100 Message-ID: References: <2b64dde0f1d143888a379881db1ff518@unibe.ch> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5310974722070618554==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15414"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Cc: jbf To: Denis Maier via ntg-context , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 15 00:17:11 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 1nJkal-0003r9-Hp for gctc-ntg-context-518@m.gmane-mx.org; Tue, 15 Feb 2022 00:17:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 66C102A2A52; Tue, 15 Feb 2022 00:16:27 +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 nGTT7Kns10Ux; Tue, 15 Feb 2022 00:16:25 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C0AA62A2A6A; Tue, 15 Feb 2022 00:16:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 684CC2A2A6A for ; Tue, 15 Feb 2022 00:16:24 +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 cADqG22pGAlZ for ; Tue, 15 Feb 2022 00:16:23 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.216.47; helo=mail-pj1-f47.google.com; envelope-from=roma83537@gmail.com; receiver= Original-Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A79FB2A282D for ; Tue, 15 Feb 2022 00:16:22 +0100 (CET) Original-Received: by mail-pj1-f47.google.com with SMTP id r64-20020a17090a43c600b001b8854e682eso587003pjg.0 for ; Mon, 14 Feb 2022 15:16:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to; bh=LsW62Ehx4dlSQfjezSTiuSiVyOgbMEANQ46At3oBj3g=; b=nZ2r5rIQ4OQfiz7F2mbMNX3aV+ZWWZewmGzi522uoBYsp+SziT2SYvqwrXvcMnRIhp f35OBbe/h3RhrvzhZ4wiL9q0DmNk5oUkKe3M9JLLmsfzzJKIiSF0peeUNNlsbpCvY/rO rR3Zftqzpr9fitiuYqkpFjFLeij8c/n1xLVMz6tdsKI/za4DB0+NVPusdLsYKteXB1Wx BVMQukeDAMvy+yWu9vbc8HDQZsIekrv/0yXKmbm6PT370EZLNOQRIEuCJNYkLapcEXCa q93LaU6/w9WeZHsAovm6oqSwB//ewD6P5f6/YEU3hdtXYs794Lue+lDZ7Weftr4zfUER 2EYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to; bh=LsW62Ehx4dlSQfjezSTiuSiVyOgbMEANQ46At3oBj3g=; b=uT7IIvO03m4nLcMpEhhqTZBZjRIzzPRdaJvBRChnF9DSE2tY17NaNtbMX4wFYsD7Vp l0vehzcP0+uGmbLffhO1ICBNPm99nzX8Bx19jacK8CKIFjX7dKQ41AjgX/RgHdsuw9OD AffJfsjT+yolGjHLHpgWiNagl7mnwInpkTXvzQ6tThfK1uGfcfxwPDmgH4Izfot7fRY9 RTk9I2oeWba74D7WQZvOrqABlGgQ6N7dGw1DBDFs95O3S7FshxSZK3JEXbVkcnHs9WyC 2flyA7D9BEaTA+7Ww2Elr9YuA18wgvc5mijhLAilDpj9KzUimVUvEKlOT7q5uDW0TJu6 uLDg== X-Gm-Message-State: AOAM532elIjgw8nRW4nxPC92op23xA9rDyetPDyi4G9bRaALc4jvS76N 9KonzO79Ht4fSz8za+dNDlNk2rAkC0k= X-Google-Smtp-Source: ABdhPJwnqxhONlZR/n4dQ6m3x5MmWXl/Bc0f8Hk1i271onnzz/uCtBok9P5I0M9T4YeEDncolc1YzQ== X-Received: by 2002:a17:90b:1d8c:: with SMTP id pf12mr1087911pjb.229.1644880580556; Mon, 14 Feb 2022 15:16:20 -0800 (PST) Original-Received: from [192.168.0.100] ([120.21.109.121]) by smtp.gmail.com with ESMTPSA id pf14sm10413629pjb.16.2022.02.14.15.16.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Feb 2022 15:16:20 -0800 (PST) Content-Language: en-US In-Reply-To: <2b64dde0f1d143888a379881db1ff518@unibe.ch> 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:114380 Archived-At: This is a multi-part message in MIME format. --===============5310974722070618554== Content-Type: multipart/alternative; boundary="------------CSXDOgXckw7C2rCsT6SmHelh" Content-Language: en-US This is a multi-part message in MIME format. --------------CSXDOgXckw7C2rCsT6SmHelh Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit You could try this (note the url setup then called in before \hyphenatedurl): \setuppapersize[A6] \setuphead[chapter][align={right,nothyphenated}] \startsetupsurl \setupalign[hyphenated] \stopsetups \starttext \chapter[title={asdfasdf\goto{\setup[url]\hyphenatedurl{https://doi.org/10.12345/12345.12345}}[url(https://doi.org/10.12345/12345.12345)]}] bla \stoptext Julian On 14/2/22 22:17, Denis Maier via ntg-context wrote: > > 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. > > %%%%%%%%%%%%%%%%%%%%%%%%% > > \setuppapersize[A6] > > \setuphead[chapter][align={right,nothyphenated}] > > \starttext > > \chapter[title={asdf asdf > \goto{\hyphenatedurl{https://doi.org/10.12345/12345.12345}}[url(https://doi.org/10.12345/12345.12345)]}] > > bla > > \stoptext > > %%%%%%%%%%%%%%%%%%%%%%%%% > > For now, I’m changing the definition to > \setuphead[chapter][align={right,lesshyphenation}], but is there a way > to disable hyphenation, but still break urls across lines? > > Best, > > Denis > > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ --------------CSXDOgXckw7C2rCsT6SmHelh Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

You could try this (note the url setup then called in before \hyph= enatedurl):

\setuppapersize[A6]

    
\setuphead[chapter][a=
lign=3D{right,nothyphenated}]
    

    
 \startsetups<=
span style=3D" color:#000000;"> url
\setupalign[hyphenate=
d]
\stopsetups

    
\starttext

    
 

    
\cha=
pter[title=3D{asdf asdf \goto{\setup[url]\hyphenatedurl{https://doi.org/10.12345/12345.12345}}[url(https://doi.org/10.123=
45/12345.12345)]}]

    
bla

    
\stoptext

<= /p>

Julian

On 14/2/22 22:17, Denis Maier via ntg-context wrote:

Hi,

=C2=A0

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

=C2=A0

%%%%%%%%%%%%%%%%%%%%%= %%%%

\setuppapersize[A6]

\setuphead[chapter][a= lign=3D{right,nothyphenated}]

=C2=A0

\starttext=

=C2=A0

\chapter[title=3D{asd= f asdf \goto{\hyphenatedurl{https://doi.org/10.12345/12345.12345<= /a>}}[url(https://doi.org/10.12345/1234= 5.12345)]}]

bla=

\stoptext<= /span>

%%%%%%%%%%%%%%%%%%%%%= %%%%

=C2=A0

For now, I=E2=80=99m = changing the definition to \setuphead[chapter][align=3D{right,lesshyphena= tion}], but is there a way to disable hyphenation, but still break urls a= cross lines?

=C2=A0

Best,

Denis

=C2=A0

=C2=A0

=C2=A0


____________________________=
_______________________________________________________
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/m=
ailman/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
_________________________________________________________________________=
__________
--------------CSXDOgXckw7C2rCsT6SmHelh-- --===============5310974722070618554== 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== --===============5310974722070618554==--