From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84654 Path: news.gmane.org!not-for-mail From: Marco Patzer Newsgroups: gmane.comp.tex.context Subject: Re: hyphenate urls in a non hyphenated text Date: Tue, 8 Oct 2013 19:35:55 +0200 Message-ID: <20131008173555.GO18324@homerow> References: <52541804.1020908@stdin.fr> <52543B22.8000608@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0191698270==" X-Trace: ger.gmane.org 1381253763 4768 80.91.229.3 (8 Oct 2013 17:36:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Oct 2013 17:36:03 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 08 19:36:08 2013 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 1VTbCY-0008FS-Jr for gctc-ntg-context-518@m.gmane.org; Tue, 08 Oct 2013 19:36:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 860B1101F1; Tue, 8 Oct 2013 19:33:35 +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 ng50GYLfF7Bk; Tue, 8 Oct 2013 19:33:32 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 395AD101E5; Tue, 8 Oct 2013 19:33:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B099B101E5 for ; Tue, 8 Oct 2013 19:33:30 +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 cqN2T0BA-XrO for ; Tue, 8 Oct 2013 19:33:29 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 6DD34101DE for ; Tue, 8 Oct 2013 19:33:29 +0200 (CEST) Original-Received: from forward5l.mail.yandex.net (forward5l.mail.yandex.net [IPv6:2a02:6b8:0:1819::5]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r98HZwPV023707 for ; Tue, 8 Oct 2013 19:35:59 +0200 Original-Received: from smtp12.mail.yandex.net (smtp12.mail.yandex.net [95.108.131.191]) by forward5l.mail.yandex.net (Yandex) with ESMTP id 1F782C40D97 for ; Tue, 8 Oct 2013 21:35:58 +0400 (MSK) Original-Received: from smtp12.mail.yandex.net (localhost [127.0.0.1]) by smtp12.mail.yandex.net (Yandex) with ESMTP id D38FC16A08C3 for ; Tue, 8 Oct 2013 21:35:57 +0400 (MSK) Original-Received: from unknown (unknown [83.68.239.193]) by smtp12.mail.yandex.net (nwsmtp/Yandex) with ESMTP id LGP30898Ll-Zv0CrMjt; Tue, 8 Oct 2013 21:35:57 +0400 Mail-Followup-To: ntg-context@ntg.nl In-Reply-To: <52543B22.8000608@wxs.nl> X-PGP-Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xB8CFCB65D4F08C27 User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a02:6b8:0:1819::5; country=RU X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WKyFzWhn - b20073247795 - 20131008 X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84654 Archived-At: --===============0191698270== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JfVplkuTfB13Rsg5" Content-Disposition: inline --JfVplkuTfB13Rsg5 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2013=E2=80=9310=E2=80=9308 Hans Hagen wrote: > >\hyphenateurl{} works only when setupalign[] is set to hyphenated. > > > >Is there a way to hyphenate only URLs? >=20 > You need to provide a few more options to \setupalign: Why? > \appendtoks\tttf\to\everyhyphenatedurl % maybe we need a proper setup Isn't that what \url is for? It has a setup command and uses \hyphenatedurl. > \setupalign[nothyphenated,stretch,tolerant] This does not only change how URLs are typeset, but it also affects the main text, which might not be desirable. > [=E2=80=A6] I don't see a single hyphenated URL in your result. The OP failing to provide a minimal example, let me provide my interpretation of the problem: \useurl [somelink] [http://bits.blogs.nytimes.com/2010/03/05/a-former-book-designer-says-goo= d-riddance-to-print/?hpw&_r=3D0] \setupalign [nothyphenated] \starttext \url [somelink] \input knuth \stoptext I don't know how to start and stop hyphenation within a paragraph. Allowing hyphenation for the entire paragraph is easy. Marco --JfVplkuTfB13Rsg5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) iQEcBAEBAgAGBQJSVEJ7AAoJEPGqVaNSn0iKmbAIAIKnUs+joGwGwqw8RJD8rXFy 3+pmhdTJqCgookS5wBMMa1kyeZENULHmB8Nlc3dN3+HjcFGGGw4DHIxGsdP92S71 OZRETJiS6WLUHognqlve1OhZv/BZ+gaw0DRYGnPKRGs3luiQ2NVbltZ57LYtKKWX KrDBxwj8ElopDgJdzd2INck32pH4AGqpJHiVu57H/6vSjQFlVYnTy7kMtIOBkYAD zzItzchRIlUAHo7Okswyo1ydOS2zo7PJLqleo6OZFJwMeBtMaEWDk9XLhNnJzWcy PxMXxT+gAwsCj98CIahIXCbdFRgGmICxoooQ5Rds0zuhQfWAaSSJLgE1MNfKPkA= =9my/ -----END PGP SIGNATURE----- --JfVplkuTfB13Rsg5-- --===============0191698270== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0191698270==--