It seems that lualatex does not known the Brazilian dialect of the Portuguese language with the babel package.
When compiling the simple document:
\documentclass{article}
\usepackage[brazil]{babel}
\begin{document}
Documento de teste.
\end{document}
lualatex gives the following error message:
! LuaTeX error ...re/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua:50: luat
ex-hyphen: no entry in language.dat.lua for this language: brazil
stack traceback:
[C]: in function 'error'
...re/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua:22: in function 'err'
...re/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua:50: in function 'loadl
anguage'
<\directlua >:1: in main chunk.
\bbl@patterns ...pestring {#1}", \the \language )}
\fi \fi \fi
l.165 \ldf@finish\CurrentOption
Is this a known bug? Is there any fix for it?
\usepackage[portuges,brazilian]{babel}and\selectlanguage{brazilian}, and the error is gone. Just don't ask me why, it was purely trial and error.:)I'm also intrigued with this question. – Paulo Cereda Mar 11 '12 at 13:43brazilin the hyphenation pattern database (since there is only on Portuguese hyphenation file). The reason Paulo's solution works is that loadingportugesis sufficient to load the hyphenation patterns; loading babel withbrazilas the last language sets it as the main language (so no\selectlanguageis needed.) – Alan Munn Mar 11 '12 at 14:20germanandngerman, whilebabelallows the optionsaustrianandnaustrian. – egreg Mar 11 '12 at 16:49