[luatex] Unicode composite characters and TrueType fonts

Ulrike Fischer luatex at nililand.de
Fri May 26 21:47:55 CEST 2017


Am Fri, 26 May 2017 21:03:15 +0200 schrieb Daniel Flipo:

 
> So another approach could be to build a table of possible composite
> characters for a given language and a Lua function which would replace
> each composite char found in the node list and belonging to the table
> (f.i. e^^^^0301) by the corresponding precomposed char (é) or warn if
> the replacement doesn't exist in the current output font.
> 
> Does something like this exist already?

In the context discussion decomposition (if the compose char doesn't
exist was discussed to. You can write a similar decompose feature 

fonts.handlers.otf.addfeature
  {
    name    = "decompose",
    type    = "multiple",
    nocheck = true, -- new trick
    data    =
        {
          ["Ḅ"] = { "Q", "̣" },
          ["Ạ"] = { "X", "̣" },
        },
  }


But this is only in theory. If I remember correctly it needed the
context fontloader to work and currently it is no longer possible to
load this fontloader with luaotfload. So it is possible that you
will to wait that luaotfload updates.



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the luatex mailing list