From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90978 Path: news.gmane.org!not-for-mail From: Rik Newsgroups: gmane.comp.tex.context Subject: \hyphenatedurl problem Date: Sat, 11 Apr 2015 01:20:27 -0400 Message-ID: <5528AF1B.30008@panix.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0321545826==" X-Trace: ger.gmane.org 1428729680 16821 80.91.229.3 (11 Apr 2015 05:21:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Apr 2015 05:21:20 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 11 07:21:07 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ygnqs-0003o1-P5 for gctc-ntg-context-518@m.gmane.org; Sat, 11 Apr 2015 07:21:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E8D211028C for ; Sat, 11 Apr 2015 07:21:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nYJu3D_0LFmb for ; Sat, 11 Apr 2015 07:21:05 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8100410293 for ; Sat, 11 Apr 2015 07:20:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C84D10205 for ; Sat, 11 Apr 2015 07:20:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3noKQQjYe90s for ; Sat, 11 Apr 2015 07:20:37 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id D319610202 for ; Sat, 11 Apr 2015 07:20:32 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t3B5KV6f027921 for ; Sat, 11 Apr 2015 07:20:31 +0200 Original-Received: from [192.168.201.10] (cpe-67-240-48-174.nycap.res.rr.com [67.240.48.174]) by mailbackend.panix.com (Postfix) with ESMTPSA id 974AA15014 for ; Sat, 11 Apr 2015 01:20:29 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=166.84.1.89; country=US; region=New York; city=New York; latitude=40.7553; longitude=-73.9924; http://maps.google.com/maps?q=40.7553,-73.9924&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0ROetkvOz - 82820209eef2 - 20150411 (trained as not-spam) Received-SPF: pass (filter1-til.mf.surf.net: domain of rik@panix.com designates 166.84.1.89 as permitted sender) receiver=filter1-til.mf.surf.net; client-ip=166.84.1.89; envelope-from=; helo=mailbackend.panix.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:90978 Archived-At: This is a multi-part message in MIME format. --===============0321545826== Content-Type: multipart/alternative; boundary="------------010909030807060907000209" This is a multi-part message in MIME format. --------------010909030807060907000209 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit With versions from 20150325 and earlier, the following example code produced nicely wrapped URLs. With current betas, the URLs do not wrap. (Perhaps this is what Wolfgang meant when he wrote, in a reply in the thread _Turning off French character spacing_: The \url and \hyphenatedurl need to be fixed but I do not know that for sure.) \setupinteraction[state=start] \starttexdefinition href #1 \goto{\hyphenatedurl{#1}}[url(#1)] \stoptexdefinition \useURL[aUrl][https://Some.awfullylong.net/url_with_lots_of_places_to.html?make=a_reasonable] \useURL[bUrl][https://Some.awfullylong.net/url_with_lots_of_places_to.html?make=a_reasonable][][\hyphenatedurl{https://Some.awfullylong.net/url_with_lots_of_places_to.html?make=a_reasonable}] \starttext goto href macro: \href{https://Some.awfullylong.net/url_with_lots_of_places_to.html?make=a_reasonable}\par useURL without hyphenatedurl \from[aUrl]\par useURL with hyphenatedurl \from[bUrl]\par \stoptext -- Rik Kabel --------------010909030807060907000209 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable With versions from 20150325 and earlier, the following example code produced nicely wrapped URLs. With current betas, the URLs do not wrap.

(Perhaps this is what Wolfgang meant when he wrote, in a reply in the thread _Turning off French character spacing_:
The \url and \hyphenatedurl need to be fixed
but I do not know that for sure.)

\setupinteraction[state=3Dstart]
\starttexdefinition href #1
=C2=A0 \goto{\hyphenatedurl{#1}}[url(#1)]
\stoptexdefinition
\useURL[aUrl][https://Some.awfullylong.net/url_with_lots_of_places_to.html?make=3Da_= reasonable]
\useURL[bUrl][https://Some.awfullylong.net/url_with_lots_of_places_to.html?make=3Da_= reasonable][][\hyphenatedurl{https://Some.awfullylong.net/url_with_lots_of_places_to.html?ma= ke=3Da_reasonable}]
\starttext
goto href macro: \href{https://Some.aw= fullylong.net/url_with_lots_of_places_to.html?make=3Da_reasonable}\pa= r
useURL without hyphenatedurl \from[aUrl]\par
useURL with hyphenatedurl \from[bUrl]\par
\stoptext
--
Rik Kabel


--------------010909030807060907000209-- --===============0321545826== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0321545826==--