[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 ...
\nopagenumbers
\catcode`\@=11
\scrollmode
\ifx\Umathchar\@undefined
\font\x=cmr12
\else
\font\x="[lmroman12-regular]:mapping=tex-text"
\fi
\x
\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}
\noindent
\unhbox\FN at tempboxa\par
}
\def\makehboxofhboxes{\setbox\FN at tempboxa=\hbox{}%
\loop
\setbox\FN at tempboxb=\lastbox
\ifhbox\FN at tempboxb
\setbox\FN at tempboxa=\hbox{\box\FN at tempboxb\unhbox\FN at tempboxa}%
\repeat
}
\def\removehboxes{\setbox\FN at tempboxa=\lastbox
\ifhbox
\FN at tempboxa{\removehboxes}%
\unhbox\FN at tempboxa
\fi
}
\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
\bye
More information about the XeTeX
mailing list