[NTG-context] question about a ligature

Pablo Rodriguez oinos at gmx.es
Sun Dec 2 20:38:15 CET 2018


Dear list,

diving into the Lua code from MkIV, I found a way to add ligatures.

But I have a problem with the following sample:

    \startluacode
    fonts.handlers.otf.addfeature {
        name = "linearb",
        type = "ligature",
        data = {
            𐁃  = { "d", "w", "e" },
            Y = { "d", "a" },
            b = { "P", "Q" },
        }
    }
    \stopluacode
    \definefontfeature[default][default][linearb=yes]

    \definefallbackfamily
        [mainface]
        [rm]
        [Noto Sans Linear B]
        [range={linearbideograms, linearbsyllabary}]

    \definefontfamily
        [mainface]
        [rm]
        [Noto Sans]

    \setupbodyfont[mainface]

    \starttext
    \startTEXpage
    da dwe PQ 𐁃
    \stopTEXpage
    \stoptext

What am I missing to get the "dwe" ligature?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk


More information about the ntg-context mailing list