From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90962 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Turning off French character spacing Date: Fri, 10 Apr 2015 12:18:45 +0200 Message-ID: References: <55279f46.c14cb40a.53c8.ffffbe23@mx.google.com> 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="===============1055620238==" X-Trace: ger.gmane.org 1428661173 25546 80.91.229.3 (10 Apr 2015 10:19:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Apr 2015 10:19:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 10 12:19:22 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 1YgW1v-0003yL-K0 for gctc-ntg-context-518@m.gmane.org; Fri, 10 Apr 2015 12:19:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B52D110222 for ; Fri, 10 Apr 2015 12:19:18 +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 ReATJZ0OJ1ia for ; Fri, 10 Apr 2015 12:19:17 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7C16D1028E for ; Fri, 10 Apr 2015 12:18:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1B4AD10219 for ; Fri, 10 Apr 2015 12:18:51 +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 TY5vVxDcVOKg for ; Fri, 10 Apr 2015 12:18:50 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 4567D10204 for ; Fri, 10 Apr 2015 12:18:50 +0200 (CEST) Original-Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t3AAIl0q012411 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 10 Apr 2015 12:18:48 +0200 Original-Received: by wiaa2 with SMTP id a2so20885903wia.0 for ; Fri, 10 Apr 2015 03:18:47 -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=UpzX3978DvbMc4Js2nVkbwCC96KwCPH8whR3t0IlVYU=; b=PBTOx0FtyewF2hEFHXt6Xj336uKiWuzPs4TGGZBns1ro0eVOmopCJ4dQYWXO/22Foo szL9EOBNhE7jDwiWI01q/PMlMqnXngZ4DqUX7oZ2Kin5SBDnXbClOlkNDee7Xgim00jS 2y8XOIDAJFSWbwchmzIeSUtLEbMGQvQUPwpLBhG4Obrewcw6n/2pDTsD3HFNql4VLHFz KCflqHSVd+yt8fhYzsfZs4UNhq6+K6IYX/66rFiN/a0q2rIE9hJOQb64J1I9KMo4MTIZ aD8NfkdZQ9dHjIqnvDvrgdTNxxoTt2nchnVQ/HZcy8NlM/J9nkClLTmoo/5acQYStbWU rivg== X-Received: by 10.194.187.41 with SMTP id fp9mr1758478wjc.58.1428661127495; Fri, 10 Apr 2015 03:18:47 -0700 (PDT) Original-Received: from keima.localdomain (x2f2258c.dyn.telefonica.de. [2.242.37.140]) by mx.google.com with ESMTPSA id v3sm2746288wix.8.2015.04.10.03.18.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 Apr 2015 03:18:46 -0700 (PDT) In-Reply-To: <55279f46.c14cb40a.53c8.ffffbe23@mx.google.com> 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:c05::234; 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: 07OeaiMIB - ce1920242579 - 20150410 (trained as not-spam) Received-SPF: pass (filter1-utr.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::234 as permitted sender) receiver=filter1-utr.mf.surf.net; client-ip=2a00:1450:400c:c05::234; envelope-from=; helo=mail-wi0-x234.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" X-Spam-Report: 5.0 points; * 3.2 RCVD_ILLEGAL_IP Received: contains illegal IP address * 0.0 HTML_MESSAGE BODY: HTML included in message * 1.8 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars Xref: news.gmane.org gmane.comp.tex.context:90962 Archived-At: --===============1055620238== Content-Type: multipart/alternative; boundary="Apple-Mail=_60CFE936-7A08-4C5E-B3B8-E779CB95914A" --Apple-Mail=_60CFE936-7A08-4C5E-B3B8-E779CB95914A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 10.04.2015 um 11:51 schrieb = : >=20 > Dear everyone, >=20 > I am writting a French document. > I would like to turn off the French character spacing temporarily in = order to > typeset English document title or URL. For instance, I would like to = define the commands >=20 > \def\englishtitle#1{\turnofffrenchcharacterspacing{\em = #1}\turnonfrenchcharacterspacing} > \def\url#1{\turnofffrenchcharacterspacing{\em = #1}\turnonfrenchcharacterspacing} You can use the \resetcharacterspacing command to disable the spacing. \setcharacterspacing[frenchpunctuation] \definestartstop [EnglishTitle] [commands=3D\resetcharacterspacing, style=3Ditalic] \starttext text: =C2=ABtext=C2=BB \EnglishTitle{text: =C2=ABtext=C2=BB} \stoptext > so that a title link =E2=80=9CExample: English Title=E2=80=9D will be = italicised and will not have a space before =E2=80=9C:=E2=80=9D; > and a URL like =E2=80=9Chttp://www.example.com = =E2=80=9D neither. The \url and \hyphenatedurl need to be fixed. Wolfgang --Apple-Mail=_60CFE936-7A08-4C5E-B3B8-E779CB95914A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Am 10.04.2015 um 11:51 schrieb <joasyannick@gmail.com> <joasyannick@gmail.com>:

Dear = everyone,

I am = writting a French document.
I would like to turn = off the French character spacing temporarily in order to
typeset English document title or URL. For instance, I would = like to define the commands

\def\englishtitle#1{\turnofffrenchcharacterspacing{\em = #1}\turnonfrenchcharacterspacing}
\def\url#1{\turnofffrenchcharacterspacing{\em = #1}\turnonfrenchcharacterspacing}

You can use the \resetcharacterspacing command to = disable the spacing.

\setcharacterspacing[frenchpunctuation]
\definestartstop
  = [EnglishTitle]
  = [commands=3D\resetcharacterspacing,
  =  style=3Ditalic]

\starttext

text:= =C2=ABtext=C2=BB \EnglishTitle{text: =C2=ABtext=C2=BB}

\stoptext

so that a title = link =E2=80=9CExample: English Title=E2=80=9D will be italicised = and will not have a space before =E2=80=9C:=E2=80=9D;
and a URL like =E2=80=9Chttp://www.example.com=E2=80= =9D neither.

The = \url and \hyphenatedurl need to be fixed.

Wolfgang

= --Apple-Mail=_60CFE936-7A08-4C5E-B3B8-E779CB95914A-- --===============1055620238== 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= --===============1055620238==--