From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91022 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Character spacing and url Date: Mon, 13 Apr 2015 21:02:58 +0200 Message-ID: References: <5527D09D.4040605@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/mixed; boundary="===============0334596995==" X-Trace: ger.gmane.org 1428952068 28370 80.91.229.3 (13 Apr 2015 19:07:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Apr 2015 19:07:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 13 21:07:32 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 1Yhjhj-0007OI-Sj for gctc-ntg-context-518@m.gmane.org; Mon, 13 Apr 2015 21:07:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F3C0110248 for ; Mon, 13 Apr 2015 21:07: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 F4AzNoK8hMdN for ; Mon, 13 Apr 2015 21:07:30 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 812291024D for ; Mon, 13 Apr 2015 21:07:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B45BB10201 for ; Mon, 13 Apr 2015 21:06:58 +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 rKoggiYD7S7j for ; Mon, 13 Apr 2015 21:06:57 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id E57A810200 for ; Mon, 13 Apr 2015 21:03:24 +0200 (CEST) Original-Received: from mail-wg0-x22f.google.com (mail-wg0-x22f.google.com [IPv6:2a00:1450:400c:c00::22f]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t3DJ3NUj027552 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 13 Apr 2015 21:03:24 +0200 Original-Received: by wgsk9 with SMTP id k9so91631494wgs.3 for ; Mon, 13 Apr 2015 12:03:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=u2SKqAx9b+6FoJY42DSN9mXXFRfKwiM1V0O59zSKQAs=; b=ohMN5AXETWanojb3/bEL7aztVjtbu4cF707pcVb91NSs2Om/gvmfqgh3FOTHuMdA2u 0IbynoiUyw7K24MJx0VxYWWapa9PTTpPDNvw3QwrV+EQ1oa6JdCLmDqvPueFrzYaJXhJ 76N6OPedceU8qMHnHEKcZ9pZpNjlIab3Hed9tN3OCIEBUgoMSCPH1O1be4NTBU9pRDZj NW8iNMm6WC6FD+0YtXGbxxNid6CQ23JK1ClGMJqjaymlVk0AXC+rEHyiuLDhMDp3/VV1 9FRBAfZhgMOxjzBJg0lmjM3GZLiVm3z3OSJeXCw7wts2hT0HsDwu255VpVlcb/DqHifK YBvA== X-Received: by 10.194.179.38 with SMTP id dd6mr31277484wjc.149.1428951803801; Mon, 13 Apr 2015 12:03:23 -0700 (PDT) Original-Received: from keima.localdomain (x2f28141.dyn.telefonica.de. [2.242.129.65]) by mx.google.com with ESMTPSA id ey10sm14012906wib.2.2015.04.13.12.03.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 13 Apr 2015 12:03:23 -0700 (PDT) In-Reply-To: <5527D09D.4040605@wxs.nl> X-Mailer: Apple Mail (2.2098) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::22f; country=IE; latitude=53.3478; longitude=-6.2597; http://maps.google.com/maps?q=53.3478,-6.2597&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01Ofv3oD0 - 5247099baa89 - 20150413 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c00::22f as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2a00:1450:400c:c00::22f; envelope-from=; helo=mail-wg0-x22f.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) 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:91022 Archived-At: --===============0334596995== Content-Type: multipart/alternative; boundary="Apple-Mail=_35AB5A96-CEF4-45FD-9509-2A16580550D9" --Apple-Mail=_35AB5A96-CEF4-45FD-9509-2A16580550D9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 10.04.2015 um 15:31 schrieb Hans Hagen : >=20 > On 4/10/2015 12:26 PM, Wolfgang Schuster wrote: >> Hi Hans, >>=20 >> the character spacing mechanism should be disabled for certain = commands because it produces unwanted spaces >> when you want to typeset a URL. >>=20 >>=20 >> \setcharacterspacing[frenchpunctuation] >>=20 >> \useurl[google][https://www.google.com] >>=20 >> \starttext >>=20 >> text: =C2=ABtext=C2=BB >>=20 >> = \goto{\hyphenatedurl{https://www.google.com}}[url(https://www.google.com)]= \vrule >>=20 >> = \goto{\resetcharacterspacing\hyphenatedurl{https://www.google.com}}[url(ht= tps://www.google.com)]\vrule >>=20 >> \url[google]\vrule >>=20 >> \resetcharacterspacing\url[google]\vrule >>=20 >> \stoptext >=20 > like this? >=20 > \appendtoks > \resetfontfeature > \resetcharacterspacing > \to \everyhyphenatedurl Looks good. Wolfgang= --Apple-Mail=_35AB5A96-CEF4-45FD-9509-2A16580550D9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Am 10.04.2015 um 15:31 schrieb Hans Hagen = <pragma@wxs.nl>:

On 4/10/2015 12:26 PM, Wolfgang Schuster = wrote:
Hi Hans,

the character = spacing mechanism should be disabled for certain commands because it = produces unwanted spaces
when you want to typeset a = URL.


\setcharacterspacing[frenchpunctuation]

\useurl[google][https://www.google.com]

\starttext

text: =C2=ABtext=C2=BB<= br class=3D"">
\goto{\hyphenatedurl{https://www.google.com}}[url(https://www.google.com)]\vrule

\goto{\resetcharacterspacing\hyphenatedurl{https://www.google.com}}[url(https://www.google.com)]\vrule

\url[google]\vrule

\resetcharacterspacing\url[google]\vrule

\stoptext

like this?

\appendtoks
   \resetfontfeature
   \resetcharacterspacing\to \everyhyphenatedurl

Looks = good.

Wolfgang
= --Apple-Mail=_35AB5A96-CEF4-45FD-9509-2A16580550D9-- --===============0334596995== 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= --===============0334596995==--