[XeTeX] Discretionary hyphens don't work in paragraphed footnotes

Philip Taylor P.Taylor at Rhul.Ac.Uk
Thu Oct 8 14:33:43 CEST 2015

David Carlisle wrote:

> Here is a plain tex example, not quite as minimal as I'd like but out
> of time for now.
> This hyphenates with pdftex but not xetex

But the following hyphenates identically in both.  I do wonder whether
being the last word of the para. is implicated ...






\newbox\FN at tempboxa
\newbox\FN at tempboxb
\newbox\FN at tempboxc

  \long\def\makefootnoteparagraph{\unvbox0 \makehboxofhboxes
    \setbox\FN at tempboxa=\hbox{\unhbox\FN at tempboxa \removehboxes}
    \unhbox\FN at tempboxa\par
  \def\makehboxofhboxes{\setbox\FN at tempboxa=\hbox{}%
      \setbox\FN at tempboxb=\lastbox
      \ifhbox\FN at tempboxb
      \setbox\FN at tempboxa=\hbox{\box\FN at tempboxb\unhbox\FN at tempboxa}%
  \def\removehboxes{\setbox\FN at tempboxa=\lastbox
      \FN at tempboxa{\removehboxes}%
      \unhbox\FN at tempboxa

\setbox0\vbox{XXXXXXXXXXXXX just a few normal words to fill up the line
  up to my x x x zzzzzz\-zzzzz xxx}

\global\setbox\FN at tempboxc\vbox{\hbox{XXX}\makefootnoteparagraph}%
\tracingonline1\showbox\FN at tempboxc

\unvbox\FN at tempboxc


More information about the XeTeX mailing list