[luatex] Cyrillic in \directlua0

Patrick Gundlach patrick at gundla.ch
Sat Mar 27 18:17:11 CET 2010


>> 2010/3/27 Arthur Reutenauer <arthur.reutenauer at normalesup.org>:
>>> Ivan, you shouldn't use fontenc at all with LuaTeX, it doesn't work.
>>> Use luaotfload to load an OpenType font, and simply type in UTF-8.
>>> luainputenc is useless in that case, since input is always in UTF-8.
>>> 
> I respectfully disagree here. fontenc works with EU2 for Unicode fonts.

I agree completely. If I might be allowed to put an additional remark:

For those who haven't looked into eu2 font definition files (fd-files): These files do not normally reencode the fonts, so this fontenc is a LaTeX necessity and does nothing wrt the encoding. For example the eu2 fd file for Latin modern:

\ProvidesFile{eu2lmr.fd}[2009/10/30 v1.6 Font defs for Latin Modern]
\DeclareFontFamily{EU2}{lmr}{}
\DeclareFontShape{EU2}{lmr}{m}{n}%
     {<-5.5>    file:lmroman5-regular:script=latn;+trep;+tlig; 
        ....
      }
...


Patrick

(who really likes the eu2 "encoding")


More information about the luatex mailing list