Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using soul to letterspace headings in a Hungarian document and compiling it with lualatex.

For some reason soul drops some of the accented letters at the end of a word, but not all. In the example below, only ő and ű are affected:

\documentclass{minimal}
\usepackage{fontspec}
\setmainfont[Ligatures = TeX]{TeX Gyre Pagella}
\usepackage{soul}
\begin{document}
\noindent
\so{áll llá ÁLL LLÁ}\\
\so{íll llí ÍLL LLÍ}\\
\so{űll llű ŰLL LLŰ}\\
\so{őll llő ŐLL LLŐ}\\
\so{üll llü ÜLL LLÜ}\\
\so{öll llö ÖLL LLÖ}\\
\so{úll llú ÚLL LLÚ}\\
\so{óll lló ÓLL LLÓ}\\
\so{éll llé ÉLL LLÉ}
\end{document}

sample letters

share|improve this question
    
The question is not about ő/Ő, but rather depends on the fact that they are at the word border. Try with a final Ű, for example. Other accented letters seem to be unaffected. –  egreg Jan 14 '12 at 10:41
    
Indeed! I restated the question. –  Nyiti Jan 14 '12 at 12:03
2  
I've tracked down the problem to this: characters with Unicode > 255 don't appear. Indeed U+00FF is ÿ that is treated correctly, while U+0100, that is Ā, disappears. –  egreg Jan 14 '12 at 13:57

1 Answer 1

up vote 7 down vote accepted

The problem is in the font used for testing hyphenation. If you add

\makeatletter
\let\SOUL@tt\relax
\newfontface{\SOUL@tt}[Ligatures=TeX]{TeX Gyre Cursor}
\makeatother

after loading soul the problem seems to disappear. It probably won't show again characters that are not in the \SOUL@tt font.

share|improve this answer
    
That was subtle, thanks! –  Nyiti Jan 14 '12 at 15:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.