On 07/26/2010 11:04 AM, Ulrike Fischer wrote:
\documentclass[10pt]{book}
\usepackage{soul}
\makeatletter
\showboxdepth=100
\def\s...@analyze{{%
\setbo...@\vbox{%
\unvcopy\z@
\unskip
\unpenalty
\global\setb...@ne=\lastbox}%
\showb...@ne %show box @ne
\ifvo...@ne
\else
\setb...@ne\hbox{\unhbox\@ne}%
\s...@syllgoal=\wd\@ne
\showthe\s...@syllgoal %show goal
\advance\co...@\@ne
\s...@analyze
\s...@syllwidth\z@
\s...@syllable={}%
\ifnum\count@>\z@
\advance\s...@syllgoal-\soul@ttwidth
\s...@dosyllable
\s...@getkern{\the\soul@lasttoken}{\s...@hyphkern}%
{\s...@sethyphenchar}%
\s...@everyhyphen
\else
\s...@dosyllable
\fi
\fi
}}
\begin{document}
This is only a \so{a}.
\end{document}
Thanks for your in-depth explanation, Ulrike, but I'm afraid I don't
understand a word (sorry, but it is too complicated for me).
My LuaTeX version is beta-0.60.2-2010071217 (TeX Live 2010) (rev 3736).
BTW, is the sample document above supposed to work. (I'm afraid it doesn't.)
Thanks for your help,
Pablo