From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114869 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ben Moon via ntg-context Newsgroups: gmane.comp.tex.context Subject: blockligatures removing characters Date: Sat, 07 May 2022 16:49:27 +0100 Message-ID: <55ab932e-2923-425a-a2ae-cab821fe218b@www.fastmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7280976841712801448==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15713"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27 Cc: Ben Moon To: "Context Mailing List" Original-X-From: ntg-context-bounces@ntg.nl Sat May 07 17:50:43 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 1nnMhf-0003tV-I8 for gctc-ntg-context-518@m.gmane-mx.org; Sat, 07 May 2022 17:50:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 79A2D360674; Sat, 7 May 2022 17:49:59 +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 sly7YgfljlHJ; Sat, 7 May 2022 17:49:57 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7B37E360675; Sat, 7 May 2022 17:49:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 41C9B360675 for ; Sat, 7 May 2022 17:49:55 +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 zyUYfwmIGNbN for ; Sat, 7 May 2022 17:49:53 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=66.111.4.26; helo=out2-smtp.messagingengine.com; envelope-from=ben@themoons.uk; receiver= Original-Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 0C8D6360674 for ; Sat, 7 May 2022 17:49:52 +0200 (CEST) Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 068B35C0172 for ; Sat, 7 May 2022 11:49:51 -0400 (EDT) Original-Received: from imap46 ([10.202.2.96]) by compute5.internal (MEProxy); Sat, 07 May 2022 11:49:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=themoons.uk; h= cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t= 1651938591; x=1652024991; bh=VmeTjiCln1X2c1fP4PD+sG9IaGuFpJ6AneF p1n4PQxs=; b=RdbnSAFfbkCFdEs0emZBDHQmmPJQtXQVTzEA2uzID9N09M0CkaX BYsTDny1RCcBE8EjXFCd21cnx87TJT4kwSflHOvISZ1i437Zv0FOj5SiESf8UONr kYdWgWQmzORC/hwTcuJNALm94uXu3nyJ4NqJrZMfEH5pB6lJtSoxcOCXmEKFFuFn Hcn5pkYz5tG7824bqjhlgMS/rjjp9+dL4Ewwk1EwJzHFfo6FsAlCs+ZzNEm4T4i+ /xTUOB363vjPMRw8IjQD0GdlSA8ev+UTtC/AIuIPJHa7IkZxKLHQ7mkjsXz50IPU ieTnLuwSZq+1gyxVBIbyBHyoHC1QzWyqYRA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1651938591; x=1652024991; bh=VmeTjiCln1X2c 1fP4PD+sG9IaGuFpJ6AneFp1n4PQxs=; b=yF7eMCD4tg8XmsW2pA5qUk0cQKkTZ q2mBSx9Wndg0yp4NwciaCVK3FtzD0vuufOIOSrUSp9POdPZgBUez7H+1xsQsvpvq OQEEGdgnadJ+ypNNkZJTNbMn06SoSRhBro/8YH4aNpvLjAgIeVl9sdbexetUmQ5P 2lIV0Dj64IDW0OuCShz+WPch5nxr2SvxCV0McOSKhjHeB5GhfpYgW6XepkHUJQ0w Mj7a+7AwttwpP/5lx8BUdY1syC583LDMWOOY9ItZ8mmLFmjf/n+ueFa9uPm9xedP fzDWsX6+doSqDkiBap+88QPjPHqJi2sghueYjgSWH8gON7wA3dGgxeUEw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeehgdelgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesrgdtreerre ertdenucfhrhhomhepfdeuvghnucfoohhonhdfuceosggvnhesthhhvghmohhonhhsrdhu kheqnecuggftrfgrthhtvghrnhepueetvefhgefftdduieduhfehgedugeevffeiteffud ejkeekteehtedvjedufedunecuffhomhgrihhnpehgohhoghhlvgdrtghomhenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegsvghnsehthhgvmh hoohhnshdruhhk X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7D38D2A20064; Sat, 7 May 2022 11:49:49 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface 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:114869 Archived-At: --===============7280976841712801448== Content-Type: multipart/alternative; boundary=83329461ad2a4c7d932fbc526bd0caef --83329461ad2a4c7d932fbc526bd0caef Content-Type: text/plain 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 changed 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=default] \stoptypescript \starttypescript[myfont] \definetypeface[\typescriptone][rm][serif][myfont][default][] \stoptypescript \stoptypescriptcollection \blockligatures[Th] \definefontfeature[default][default][liga=yes] \definefontfeature[default:nolig][default][liga=no] \definefontfeature[default:blocklig][default][liga=yes,blockligatures=yes] \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 --83329461ad2a4c7d932fbc526bd0caef Content-Type: text/html Content-Transfer-Encoding: quoted-printable
Hi List,

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

Is there a way to restore the blockligatu= res 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 Font= s.

```
\starttypescriptcollec= tion[myfont]

    \starttypes= cript[myfont]
        \= definefontsynonym[Serif][Almendra-Regular][features=3Ddefault]
=
    \stoptypescript
   =  
    \starttypescript[myfont]
        \definetypeface[\types= criptone][rm][serif][myfont][default][]
   = \stoptypescript

\stoptypescriptcollection<= br>

\blockligatures[Th]

\definefontfeature[default][default][liga=3Dyes]
\de= finefontfeature[default:nolig][default][liga=3Dno]
\define= fontfeature[default:blocklig][default][liga=3Dyes,blockligatures=3Dyes]<= br>

\setupbodyfont[myfont]

\starttext
    The This These have= the Th ligature and others (fi)

 &nbs= p;  \definedfont[Serif*default:nolig]
  &nb= sp; The This These have no ligatures (not fi)

    \definedfont[Serif*default:blocklig]
    The This These are missing the `h' (fi)
\stoptext
```

Best,<= br>
Ben
--83329461ad2a4c7d932fbc526bd0caef-- --===============7280976841712801448== 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== --===============7280976841712801448==--