9

In the fontspec manual, there is a section on LuaTeX that states:

babelThe babel package is not really supported! Especially Vietnamese, Greek, and Hebrew at least might not work correctly, as far as I can tell. There’s a better chance with Cyrillic and Latin-based languages, however—fontspec ensures at least that fonts should load correctly, but hyphenation and other matters aren’t guaranteed. Under XeTeX, the polyglossia package is recommended instead as a modern replacement for babel.

What are the technical implications of this? Should I be afraid of anything?

doncherry
  • 54,637
topskip
  • 37,020

1 Answers1

7

Languages that set an output encoding as part of their working in babel will have problems. For example, \selectlanguage{vietnamese} issues

\fontencoding{T5}\selectfont
\def\encodingdefault{T5}
\language\l@vietnamese

and of course the first two lines are nonsense with fontspec and OTF fonts. The same problem along with others will appear with languages written in other scripts (Cyrillic, Greek, Hebrew). See, for example, Table of contents encoding issue with LuaLaTeX.

egreg
  • 1,121,712
  • Is this it? No more problems? Seems really easy to fix. – Mateus Araújo Oct 06 '11 at 15:54
  • 3
    @Mateus: It shouldn't be very difficult but it could take some time depending on how much and in how many places the language files use and rely on some properties of the standard encodings. – Ulrike Fischer Oct 06 '11 at 16:11