From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114884 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Denis Maier via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: blockligatures removing characters Date: Mon, 9 May 2022 07:56:48 +0000 Message-ID: References: <55ab932e-2923-425a-a2ae-cab821fe218b@www.fastmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5889418213429452232==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2960"; mail-complaints-to="usenet@ciao.gmane.io" Cc: denis.maier@unibe.ch To: Original-X-From: ntg-context-bounces@ntg.nl Mon May 09 10:00:22 2022 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 1nnyJZ-0000as-W1 for gctc-ntg-context-518@m.gmane-mx.org; Mon, 09 May 2022 10:00:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8BFC13606C0; Mon, 9 May 2022 09:56:53 +0200 (CEST) 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 wXSe5lrNghPv; Mon, 9 May 2022 09:56:52 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1BB693606C2; Mon, 9 May 2022 09:56:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5CA1F3606C2 for ; Mon, 9 May 2022 09:56:51 +0200 (CEST) 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 XdrBbQMNLTJh for ; Mon, 9 May 2022 09:56:50 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=130.92.0.83; helo=mailhub-lb2.unibe.ch; envelope-from=denis.maier@unibe.ch; receiver= Original-Received: from mailhub-lb2.unibe.ch (mailhub-lb2.unibe.ch [130.92.0.83]) (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 11D373606B0 for ; Mon, 9 May 2022 09:56:49 +0200 (CEST) X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-04.campus.unibe.ch [130.92.13.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb2.unibe.ch (Postfix) with ESMTPS id B000A5000C7; Mon, 9 May 2022 09:56:48 +0200 (CEST) Thread-Topic: [NTG-context] blockligatures removing characters Thread-Index: AQHYYirkRMxRZMGSuEik0RH7eKoC2a0WL+/Q In-Reply-To: <55ab932e-2923-425a-a2ae-cab821fe218b@www.fastmail.com> Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [130.92.13.161] 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:114884 Archived-At: --===============5889418213429452232== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_bb26e36dfc784b429ac103978373c7ebunibech_" --_000_bb26e36dfc784b429ac103978373c7ebunibech_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Happens here as well, already on ConTeXt ver: 2022.03.12 17:56 LMTX. By the way, this even happens without special fonts: \blockligatures[Th] \definefontfeature[default:blocklig][default][liga=3Dyes,blockligatures=3Dy= es] \setupbodyfont[myfont] \starttext \definedfont[Serif*default:blocklig] The This These are missing the `h' \stoptext Von: ntg-context Im Auftrag von Ben Moon via n= tg-context Gesendet: Samstag, 7. Mai 2022 17:49 An: Context Mailing List Cc: Ben Moon Betreff: [NTG-context] blockligatures removing characters Hi List, I'm using blockligatures to avoid the 'Th' ligature in some fonts but keep = others. Recently I've found this removes the 'h' completely, i.e. 'Th' is c= hanged to 'T', 'The' becomes 'Te' etc. Is there a way to restore the blockligatures functionality? I'm on ConTeXt = version 2022.05.02 16:19. Here is a MWE using Almendra (https://fonts.google.com/specimen/Almendra) from Google Fonts. ``` \starttypescriptcollection[myfont] \starttypescript[myfont] \definefontsynonym[Serif][Almendra-Regular][features=3Ddefault] \stoptypescript \starttypescript[myfont] \definetypeface[\typescriptone][rm][serif][myfont][default][] \stoptypescript \stoptypescriptcollection \blockligatures[Th] \definefontfeature[default][default][liga=3Dyes] \definefontfeature[default:nolig][default][liga=3Dno] \definefontfeature[default:blocklig][default][liga=3Dyes,blockligatures=3Dy= es] \setupbodyfont[myfont] \starttext The This These have the Th ligature and others (fi) \definedfont[Serif*default:nolig] The This These have no ligatures (not fi) \definedfont[Serif*default:blocklig] The This These are missing the `h' (fi) \stoptext ``` Best, Ben --_000_bb26e36dfc784b429ac103978373c7ebunibech_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Happens here as well, already on  ConTeXt  ver: 2022.03.12 = 17:56 LMTX.

 

By the wa= y, this even happens without special fonts:

&nbs= p;

\blocklig= atures[Th]

\definefo= ntfeature[default:blocklig][default][liga=3Dyes,blockligatures=3Dyes]<= /o:p>

&nbs= p;

\setupbod= yfont[myfont]

&nbs= p;

\starttex= t

 &nb= sp;  =     \= definedfont[Serif*default:blocklig]

 &nb= sp;  The This These are missing the `h'

\stoptext=

&nbs= p;

&nbs= p;

&nbs= p;

Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Ben Moon via ntg-context
Gesendet: Samstag, 7. Mai 2022 17:49
An: Context Mailing List <ntg-context@ntg.nl>
Cc: Ben Moon <ben@themoons.uk>
Betreff: [NTG-context] blockligatures removing characters=

 

Hi List,

 

I'm using blockligatures to avoid the 'Th' ligature = in some fonts but keep others. Recently I've found this removes the 'h' com= pletely, i.e. 'Th' is changed to 'T', 'The' becomes 'Te' etc. 

 

Is there a way to restore the blockligatures functio= nality? I'm on ConTeXt version 2022.05.02 16:19.

 

Here is a MWE using Almendra (https://fonts.google.com/specimen/Almendra) from Google Fonts.

 

```

\starttypescriptcollection[myfont]

 

    \starttypescript[myfont]

        \definefo= ntsynonym[Serif][Almendra-Regular][features=3Ddefault]

    \stoptypescript

    

    \starttypescript[myfont]

        \definety= peface[\typescriptone][rm][serif][myfont][default][]

    \stoptypescript

 

\stoptypescriptcollection

 

\blockligatures[Th]

 

\definefontfeature[default][default][liga=3Dyes]

\definefontfeature[default:nolig][default][liga=3Dno= ]

\definefontfeature[default:blocklig][default][liga= =3Dyes,blockligatures=3Dyes]

 

\setupbodyfont[myfont]

 

\starttext

    The This These have the Th ligatu= re and others (fi)

 

    \definedfont[Serif*default:nolig]=

    The This These have no ligatures = (not fi)

 

    \definedfont[Serif*default:blockl= ig]

    The This These are missing the `h= ' (fi)

\stoptext

```

 

Best,

Ben

--_000_bb26e36dfc784b429ac103978373c7ebunibech_-- --===============5889418213429452232== 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== --===============5889418213429452232==--