[luatex] luatex - font encoding for type 1 fonts

Michal Hoftich michal.h21 at gmail.com
Fri Jun 24 15:54:34 CEST 2016

> Is there any simple way to tell luatex font encoding table (unicode
> character --> code in type 1 font)? So I could be able to write utf8
> string "č" directly in text editor instead \char232.

I've made an experimental LuaLaTeX support for 8 bit fonts and fontenc
package using node callbacks. Basically, Unicode characters are
translated to 8 bit chars using translation tables, based on selected
font encoding. I am not sure whether it is a correct way to do this,
but it seems to work, including hyphenation:


While it is intended to work with fontenc package, you can use the Lua
modules to work with Plain. Support file for il2 encoding, il2lua.tex:

 encoding = require "encoding"
 callback.register("pre_linebreak_filter",encoding.callback, "fontenc")
callback.register("hpack_filter",encoding.callback, "fontenc")
 local enc = encoding.getEncId("il2")%

and simple usage:

\input il2lua
\csr Příliš žluťoučký kůň úpěl ďábelské ódy.


Best regards,

More information about the luatex mailing list