ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Contextual removal of some ligatures using fonts.handlers.otf.addfeature (LuaTeX 1.13.2)
@ 2021-12-24 18:34 Thomas Savary via ntg-context
  2021-12-24 23:04 ` Bruce Horrocks via ntg-context
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Savary via ntg-context @ 2021-12-24 18:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Thomas Savary


[-- Attachment #1.1: Type: text/plain, Size: 1139 bytes --]

Hello, dear list !

In order to fix a few bugs in some OpenType features included in EB Garamond font provided by 
Google Fonts, I am trying to remove some ligatures (erroneous 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 —non working—example :-)
(The attempted removal (“f_i” → “fi” only before “o”) is of course irrelevant. I chose it just for the 
sole purpose of this test, to provide a simple example. What I am trying to achieve is more complex, 
with other ligatures.) 

fonts.handlers.otf.addfeature{
        name = "unfio",
        type = "chainsubstitution",
        lookups = {
            { type = "multiple",
            data = { [ "f_i" ] = { "f", "i" } }
            }
        }
        rules = {
            { after = { { "o" } },
            current = { { "f_i" } },
            lookups = { 1 } }
        }
    }
}

Could someone please explain to me what I did wrong ?

Thomas Savary
1 le Grand-Plessis
F-85340 L’Île-d’Olonne
Tél. 06 22 82 61 34
https://compo85.fr/

[-- Attachment #1.2: Type: text/html, Size: 3830 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-12-27 23:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-24 18:34 Contextual removal of some ligatures using fonts.handlers.otf.addfeature (LuaTeX 1.13.2) Thomas Savary via ntg-context
2021-12-24 23:04 ` Bruce Horrocks via ntg-context
2021-12-25 11:00   ` Hans Hagen via ntg-context
2021-12-25 11:35   ` Hans Hagen via ntg-context
2021-12-25 22:52   ` Thomas Savary via ntg-context
2021-12-26 12:52     ` Hans Hagen via ntg-context
2021-12-27 20:27       ` Thomas Savary via ntg-context
2021-12-27 23:01         ` (No subject header) Hans Hagen via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).