Jürgen Spitzmüller wrote: > LuaTeX can use other encodings, but not with non-tex fonts. So if > \use_non_tex_fonts is true (this is what you want to check for, right?), > the encoding of the file must be utf8.
No, it is the other way round: If a xetex package is detected, use_non_tex_fonts is set to true, and the encoding is set to utf8. > If other encodings are used, LuaTeX uses the "luainputenc" package, which > has the same syntax than inputenc, i.e. > > \usepackage[<enc>]{luainputenc} > > Maybe we have to care about that. luainputenc is already handled. What is missing for luatex is to set use_non_tex_fonts to true and the encoding to utf8 if luainputenc is not used. Unfortunately this is not so easy as with xetex. Georg