[NTG-context] LMTX: reimplementing texquotes as OTF feature

Leah Neukirchen leah at vuxu.org
Sat Nov 12 15:57:56 CET 2022


Hans Hagen via ntg-context <ntg-context at ntg.nl> writes:

> can you show what is wrong and what it should be with
>
>     fonts.handlers.otf.addfeature {
>         name = "germantexlig",
>         type = "ligature",
>         data = {
>             ['“'] = { "`", "`" },
>             ['”'] = { "'", "'" },
>             ['„'] = { '"', "`" },
>             ['“'] = { '"', "'" },
>             ['‘'] = { "`" },
>             ['’'] = { "'" }
>         }
>     }

Since `` and "' map to the same character, only "' works.
The table has only 5 entries, not 6!  (This took me a while to realize. ;))

> best not use an existign feature because we accumulate ... features
> come in order (you can force order if needed as you probably saw in
> one of the test files)
>
> \definefontfeature[ltest][germantexlig=yes,trep=no] \addff{ltest}

I think "texlig" and "texsub" aren't existing features.  But even
renaming doesn't help.

I've attached the working Schola screenshot and the broken LModern
behavior.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2022-11-12-155544_188x27_scrot.png
Type: image/png
Size: 2175 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20221112/5a63fe44/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2022-11-12-155557_198x23_scrot.png
Type: image/png
Size: 2256 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20221112/5a63fe44/attachment-0003.png>
-------------- next part --------------

-- 
Leah Neukirchen  <leah at vuxu.org>  https://leahneukirchen.org/


More information about the ntg-context mailing list