From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113856 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Savary via ntg-context Newsgroups: gmane.comp.tex.context Subject: Contextual removal of some ligatures using fonts.handlers.otf.addfeature (LuaTeX 1.13.2) Date: Fri, 24 Dec 2021 19:34:24 +0100 Organization: =?UTF-8?B?Q29tcG/CoDg1?= Message-ID: <3718224.1odTDXuOTV@debian> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0800693456134362248==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23026"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Thomas Savary To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 24 20:11:37 2021 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 1n0pyb-0005qC-5d for gctc-ntg-context-518@m.gmane-mx.org; Fri, 24 Dec 2021 20:11:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A39C328903B; Fri, 24 Dec 2021 20:11:13 +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 JQaXgBcbFrxC; Fri, 24 Dec 2021 20:11:11 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6C273288F8C; Fri, 24 Dec 2021 20:11:11 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4D743288F8C for ; Fri, 24 Dec 2021 20:11:09 +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 UqLFRAT6vIYo for ; Fri, 24 Dec 2021 20:11:08 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=178.33.110.43; helo=2.mo579.mail-out.ovh.net; envelope-from=compo85@correctionpro.fr; receiver= X-Greylist: delayed 2201 seconds by postgrey-1.36 at zapf.ntg.nl; Fri, 24 Dec 2021 20:11:08 CET Original-Received: from 2.mo579.mail-out.ovh.net (2.mo579.mail-out.ovh.net [178.33.110.43]) (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 10B13280F9C for ; Fri, 24 Dec 2021 20:11:07 +0100 (CET) Original-Received: from mxplan8.mail.ovh.net (unknown [10.109.146.104]) by mo579.mail-out.ovh.net (Postfix) with ESMTPS id DDEFC28DE7 for ; Fri, 24 Dec 2021 18:34:25 +0000 (UTC) Original-Received: from correctionpro.fr (37.59.142.105) by mxplan8.mail.ovh.net (172.16.2.2) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.17; Fri, 24 Dec 2021 19:34:25 +0100 Authentication-Results: garm.ovh; auth=pass (GARM-105G006aa9146b1-0205-4625-82ef-01d4098dfd3f, C0DF5B663D63B439D553E8034D2F4F3CC63D0C7A) smtp.auth=thomas.savary@correctionpro.fr X-OVh-ClientIp: 78.214.159.116 X-Ovh-Tracer-GUID: b0249b20-764c-4503-a92b-458b00a44e11 X-Ovh-Tracer-Id: 1346857765923215895 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvuddruddutddgudduiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkohggtgfgsegruferredttdejnecuhfhrohhmpefvhhhomhgrshcuufgrvhgrrhihuceotghomhhpohekheestghorhhrvggtthhiohhnphhrohdrfhhrqeenucggtffrrghtthgvrhhnpeektdekleevtdefffeufeeikeevteelhfevieekgefgfedvtdefgfeugfeuhefhffenucffohhmrghinheptghomhhpohekhedrfhhrnecukfhppedtrddtrddtrddtpdefjedrheelrddugedvrddutdehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehmgihplhgrnhekrdhmrghilhdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomheptghomhhpohekheestghorhhrvggtthhiohhnphhrohdrfhhrpdhrtghpthhtohepnhhtghdqtghonhhtvgigthesnhhtghdrnhhl 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:113856 Archived-At: --===============0800693456134362248== Content-Type: multipart/alternative; boundary="nextPart2716425.lZ4Ijt7cGP" Content-Transfer-Encoding: 7Bit --nextPart2716425.lZ4Ijt7cGP Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Hello, dear list=E2=80=AF! In order to fix a few bugs in some OpenType features included in EB Garamon= d font provided by=20 Google Fonts, I am trying to remove some ligatures (erroneous in some conte= xts) with=20 fonts.handlers.otf.addfeature. I must be missing something, because I can't get it to work. Here is a minimal =E2=80=94non working=E2=80=94example :-) (The attempted removal (=E2=80=9Cf_i=E2=80=9D =E2=86=92 =E2=80=9Cfi=E2=80= =9D only before =E2=80=9Co=E2=80=9D) is of course irrelevant. I chose it ju= st for the=20 sole purpose of this test, to provide a simple example. What I am trying to= achieve is more complex,=20 with other ligatures.)=20 fonts.handlers.otf.addfeature{ name =3D "unfio", type =3D "chainsubstitution", lookups =3D { { type =3D "multiple", data =3D { [ "f_i" ] =3D { "f", "i" } } } } rules =3D { { after =3D { { "o" } }, current =3D { { "f_i" } }, lookups =3D { 1 } } } } } Could someone please explain to me what I did wrong=E2=80=AF? Thomas Savary 1 le Grand-Plessis =46-85340 L=E2=80=99=C3=8Ele-d=E2=80=99Olonne T=C3=A9l. 06 22 82 61 34 https://compo85.fr/ --nextPart2716425.lZ4Ijt7cGP Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8"

Hello, dear list=E2=80=AF!


In order to fix a few bugs in some OpenType features included in EB Gara= mond font provided by Google Fonts, I am trying to remove some ligatures (e= rroneous in some contexts) with fonts.handlers.otf.addfeature.


I must be missing something, because I can't get it to work.


Here is a minimal =E2=80=94non working=E2=80=94example :-)

(Th= e attempted removal (=E2=80=9Cf_i=E2=80=9D =E2=86=92 =E2=80=9Cfi=E2=80=9D o= nly before =E2=80=9Co=E2=80=9D) is of course irrelevant. I chose it just fo= r the sole purpose of this test, to provide a simple example. What I am try= ing to achieve is more complex, with other ligatures.)


fonts.handlers.otf.addfeature{

&nb= sp;       name =3D "unfio",

&nb= sp;       type =3D "chainsubstitution&qu= ot;,

&nb= sp;       lookups =3D {

&nb= sp;           { type =3D = "multiple",

&nb= sp;           data =3D { = [ "f_i" ] =3D { "f", "i" } }

&nb= sp;           }

&nb= sp;       }

&nb= sp;       rules =3D {

&nb= sp;           { after =3D= { { "o" } },

&nb= sp;           current =3D= { { "f_i" } },

&nb= sp;           lookups =3D= { 1 } }

&nb= sp;       }

&nb= sp;   }

}

Could someone please explain to me what I did wrong=E2=80=AF?


Thomas Savary

1 l= e Grand-Plessis

F-8= 5340 L=E2=80=99=C3=8Ele-d=E2=80=99Olonne

T= =C3=A9l. 06 22 82 61 34

htt= ps://compo85.fr/

--nextPart2716425.lZ4Ijt7cGP-- --===============0800693456134362248== 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== --===============0800693456134362248==--