From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109555 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: Problem with setupcharacterspacing and comma Date: Sat, 21 Nov 2020 09:08:16 -0500 Message-ID: References: <4380b9fc-9613-bb1c-64e6-9af410f2bae0@rik.users.panix.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4791397753290598606==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29832"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.4.3 To: Hans Hagen , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 21 15:08:57 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kgTZR-0007eA-7j for gctc-ntg-context-518@m.gmane-mx.org; Sat, 21 Nov 2020 15:08:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8F90A1AA2EF; Sat, 21 Nov 2020 15:08:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yCLRaMF_o6Yh; Sat, 21 Nov 2020 15:08:23 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AA5011AA4BA; Sat, 21 Nov 2020 15:08:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F3AC51AA4B8 for ; Sat, 21 Nov 2020 15:08:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fLAXhkiT8a-O for ; Sat, 21 Nov 2020 15:08:22 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=166.84.1.89; helo=mailbackend.panix.com; envelope-from=context@rik.users.panix.com; receiver= Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 39ECA1AA2EF for ; Sat, 21 Nov 2020 15:08:22 +0100 (CET) Original-Received: from [192.168.0.13] (cpe-24-194-28-156.nycap.res.rr.com [24.194.28.156]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4CdZyC3Kc6z1FWX; Sat, 21 Nov 2020 09:08:19 -0500 (EST) In-Reply-To: Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:109555 Archived-At: This is a multi-part message in MIME format. --===============4791397753290598606== Content-Type: multipart/alternative; boundary="------------9E0DC2FA45801EB9ABB87210" Content-Language: en-US This is a multi-part message in MIME format. --------------9E0DC2FA45801EB9ABB87210 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 11/21/2020 04:46, Hans Hagen wrote: > On 11/21/2020 4:57 AM, Rik Kabel wrote: >> Hello all, >> >> Playing with define/setup/set characterspacing, I have come across >> some odd, perhaps buggy, behavior. This applies to both MkIV >> 2020.11.19 11:23 and LMTX 2020.11.19 11:28. >> >> The problem is that character spacing is not effected for the left >> side of the comma character. It is handled as expected for other >> characters that I have tested, but I have not performed extensive tests. >> >> Example code: >> >>     \definecharacterspacing[Test] >>     \setupcharacterspacing [Test] ["002C] [left >>     =.25,right=1,alternative=1] % , >>     \setupcharacterspacing [Test] ["0065] >>     [left=0.5,right=1,alternative=1] % e >>     \setupcharacterspacing [Test] ["003B] >>     [left=0.5,right=1,alternative=1] % e >>     \startTEXpage[offset=1em] >>     abc; def, g >> >>     \setcharacterspacing[Test]abc; def, g >>     \stopTEXpage > remove the space between "left" and "=" > I should have know better than to copy as I did from the source code without analyzing it sufficiently! In typo-spa.mkiv I found: \setupcharacterspacing [frenchpunctuation] ["003A] [\c!left =.25,\c!alternative=1] % : ... I see (now) that the space disappears when the \c!left macro is processed. Mea culpa. I owe you a beer. -- Rik --------------9E0DC2FA45801EB9ABB87210 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 11/21/2020 04:46, Hans Hagen wrote:
On 11/21/2020 4:57 AM, Rik Kabel wrote:
Hello all,

Playing with define/setup/set characterspacing, I have come across some odd, perhaps buggy, behavior. This applies to both MkIV 2020.11.19 11:23 and LMTX 2020.11.19 11:28.

The problem is that character spacing is not effected for the left side of the comma character. It is handled as expected for other characters that I have tested, but I have not performed extensive tests.

Example code:

    \definecharacterspacing[Test]
    \setupcharacterspacing [Test] ["002C] [left
    =.25,right=1,alternative=1] % ,
    \setupcharacterspacing [Test] ["0065]
    [left=0.5,right=1,alternative=1] % e
    \setupcharacterspacing [Test] ["003B]
    [left=0.5,right=1,alternative=1] % e
    \startTEXpage[offset=1em]
    abc; def, g

    \setcharacterspacing[Test]abc; def, g
    \stopTEXpage
remove the space between "left" and "="

I should have know better than to copy as I did from the source code without analyzing it sufficiently! In typo-spa.mkiv I found:

\setupcharacterspacing [frenchpunctuation] ["003A] [\c!left =.25,\c!alternative=1] % : ...

I see (now) that the space disappears when the \c!left macro is processed. Mea culpa. I owe you a beer.

--
Rik

--------------9E0DC2FA45801EB9ABB87210-- --===============4791397753290598606== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4791397753290598606==--