From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92772 Path: news.gmane.org!not-for-mail From: Rik Newsgroups: gmane.comp.tex.context Subject: Re: Obtaining features from EBGaramond font in ConTeXt Date: Fri, 23 Oct 2015 17:33:59 -0400 Message-ID: <562AA7C7.5090002@panix.com> References: <6dd901eeb83146d58f400358ef338686@gmail.com> <562A42F0.8060005@rik.users.panix.com> <562A8F63.8060001@rik.users.panix.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1652596578==" X-Trace: ger.gmane.org 1445636126 3358 80.91.229.3 (23 Oct 2015 21:35:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 21:35:26 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 23 23:35:12 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 1ZpjzU-0001UP-2t for gctc-ntg-context-518@m.gmane.org; Fri, 23 Oct 2015 23:35:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8ED831021D for ; Fri, 23 Oct 2015 23:35:11 +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 Ix8G9PjHRrXe for ; Fri, 23 Oct 2015 23:35:10 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A5BB41022D for ; Fri, 23 Oct 2015 23:34:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9F9F3101F6 for ; Fri, 23 Oct 2015 23:34:32 +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 22jwYv5jKgwH for ; Fri, 23 Oct 2015 23:34:31 +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 665F2101E8 for ; Fri, 23 Oct 2015 23:34:31 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter1-til.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t9NLYFpu019036 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 23 Oct 2015 23:34:21 +0200 Original-Received: from [192.168.201.10] (cpe-74-76-74-238.nycap.res.rr.com [74.76.74.238]) by mailbackend.panix.com (Postfix) with ESMTPSA id 37BCB163B4 for ; Fri, 23 Oct 2015 17:34:14 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: 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: 0RPwJyfxv - d21d53d3f0a8 - 20151023 (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:92772 Archived-At: This is a multi-part message in MIME format. --===============1652596578== Content-Type: multipart/alternative; boundary="------------070009040509070005070507" This is a multi-part message in MIME format. --------------070009040509070005070507 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable On 2015-10-23 16:47, josephcanedo@gmail.com wrote: > At the moment, I use =E2=80=9C\,=E2=80=9D between word and question mar= ks. Also =E2=80=9C~=E2=80=9D=20 > between word and =E2=80=9C:=E2=80=9D. I guess the \definecharacterspaci= ng is more=20 > flexible and transparent from text input point of view (only write=20 > normal space). IIRC both \, and ~ also avoids line breaking at their=20 > location. Is there a way to specify this too please ? > The characterspacing commands can take care of it. The following example=20 demonstrates this (I used the value 2 just to make it clear what is=20 happening). It appears that alternative=3D1 inhibits breaks, while=20 alternative=3D0 (or leaving alternative=3D out completely) allows breaks.= I=20 have not seen documentation; what I know about it comes from tests like=20 the example below. \definecharacterspacing[test] \setupcharacterspacing[test]["003A][left=3D2,alternative=3D1] % : \setupcharacterspacing[test]["003B][left=3D2,alternative=3D0] % ; \setupcharacterspacing[test]["00BF][right=3D2,alternative=3D0] % =C2=BF \starttext \hsize4cm xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:\par xxxxxxxxxxxxxxxxxxxxxxxxxxxxx :\par =C2=BFxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;\par =C2=BF xxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;\par \setcharacterspacing[test] xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:\par xxxxxxxxxxxxxxxxxxxxxxxxxxxxx :\par =C2=BFxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;\par =C2=BF xxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;\par \stoptext (Many ConTeXt commands have a \defineABC[somename] and a=20 \setupABC[somename][options=3D=E2=80=A6]. This can often, as is the case = with=20 characterspacing, be shortened into one command,=20 \defineABC[somename][options=3D=E2=80=A6], but I think not always.) --=20 Rik --------------070009040509070005070507 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On 2015-10-23 16:47, josephcanedo@gmail.com wrote:
At the moment, I use=C2=A0=E2=80=9C\,=E2=80=9D between word = and question marks. Also=C2=A0=E2=80=9C~=E2=80=9D between word and=C2=A0=E2=80=9C:=E2= =80=9D. I guess the \definecharacterspacing is more flexible and transparent from text input point of view (only write normal space). IIRC both \, and ~ also avoids line breaking at their location. Is there=C2=A0a way to specify this too please ?

The characterspacing commands can take care of it. The following example demonstrates this (I used the value 2 just to make it clear what is happening). It appears that alternative=3D1 inhibits breaks, while alternative=3D0 (or leaving alternative=3D out completely) allo= ws breaks. I have not seen documentation; what I know about it comes from tests like the example below.

\definecharacterspacing[test]
\setupcharacterspacing[test]["003A][left=3D2,alternative=3D1] % :=
\setupcharacterspacing[test]["003B][left=3D2,alternative=3D0] % ;=
\setupcharacterspacing[test]["00BF][right=3D2,alternative=3D0] % = =C2=BF
\starttext
\hsize4cm
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:\par
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx :\par
=C2=BFxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;\par
=C2=BF xxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;\par
\setcharacterspacing[test]
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:\par
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx :\par
=C2=BFxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;\par
=C2=BF xxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;\par
\stoptext

(Many ConTeXt commands have a \defineABC[somename] and a \setupABC[somename][options=3D=E2=80=A6]. This can often, as is the c= ase with characterspacing, be shortened into one command, \defineABC[somename][options=3D=E2=80=A6], but I think not always.)
--
Rik


--------------070009040509070005070507-- --===============1652596578== 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= --===============1652596578==--