On Friday 24 June 2016 15:54:34 Michal Hoftich wrote: > > 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: > > https://github.com/michal-h21/luafontenc > > 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: > > %%%% > \directlua{% > encoding = require "encoding" > callback.register("pre_linebreak_filter",encoding.callback, > "fontenc") callback.register("hpack_filter",encoding.callback, > "fontenc") } > \luatexattribute999=\directlua{% > local enc = encoding.getEncId("il2")% > tex.write(enc)% > } > %%%% > > and simple usage: > > %%%% > \input il2lua > \font\csr=csr10 > \uselanguage{czech} > \csr Příliš žluťoučký kůň úpěl ďábelské ódy. > > \bye > %%%% > > Best regards, > Michal
With your package, can I use in one document csr10 font and also some new unicode font? Or ideally mix fonts with different encodings in one document? -- Pali Rohár [email protected]
signature.asc
Description: This is a digitally signed message part.
