[luatex] Combining diacritics in some fonts: "(linebreak): invalid list tail, probably missing glue"
Ulrike Fischer
luatex at nililand.de
Wed May 10 09:36:55 CEST 2017
Am Wed, 10 May 2017 07:32:25 +0200 schrieb Herbert Voss:
> Nikola Lečić schrieb:
>> Hi,
>>
>> If you compile this document twice
>>
>> \documentclass{article}
>> \usepackage{polyglossia}
>> \setmainlanguage{serbian}
>> \setmainfont{Old Standard}
>> \begin{document}
>> ко\char"0302 д
>> \end{document}
>>
>> you should get
>>
>> ! error: (linebreak): invalid list tail, probably missing glue
>> ! ==> Fatal error occurred, no output PDF file produced!
>
> with latex 1.0.4 from upcoming TeXLive 2017 no problem.
You get the error only every second compilation -- when the aux-file
contains a \selectlanguage{serbian}. With this command you can get
it always:
\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{serbian}
\setmainfont{Old Standard}
\begin{document}
\selectlanguage{serbian}
ко\char"0302 д
\end{document}
Imho it has something to do with hyphenation involving combining
accents.
With babel one get the error if one change add a char as
\righthyphenmin is 3 there:
\documentclass{article}
\usepackage[serbian]{babel}
\usepackage{fontspec}
\setmainfont{Old Standard}
\begin{document}
\selectlanguage{serbian}
ко\char"0302 дx
\end{document}
And the combining accent doesn't work correctly (with lualatex) in
Old Standard if serbian is used:
\documentclass{article}
\usepackage[serbian]{babel}
\usepackage{fontspec}
\setmainfont{Old Standard}
\setsansfont{CMU Serif}
\begin{document}
\selectlanguage{serbian}
%
\mbox{ко\char"0302дx}
\mbox{ко^^^^0302дx}
\sffamily
\mbox{ко\char"0302дx}
\mbox{ко^^^^0302дx}
\end{document}
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
More information about the luatex
mailing list