Hi,
the command \protrusionboundary could potentially be very useful, but
I'm not sure I understand how it's supposed to work. The manual gives
the example (p.43):
| \protrusionboundary1\llap{!\quad}«Who needs protrusion?»
However, with the following:
\input luaotfload.sty
\parindent=0pt
\protrudechars=2
\directlua{
fonts.protrusions.setups['test'] = {
[0x00AB] = { 1, 0 } % left guillemet
}
}
\font\x=[lmroman10-regular.otf]:protrusion=test;
\x
Who\par
«Who\par
\protrusionboundary1\llap{!\quad}«Who
\bye
the guillemet on the last line is not protruded as I would have
expected. Or am I missing something?
Secondly, the documentation says that \protrusionboundary will ignore
the next/previous node (singular). What would be much more practical in
real life, I think, is to have a command that would simply say,
"consider the current point as left/right/both margin(s)", because more
often than not, you'd find a succession of hboxes, penalties etc.
(plural) that you'd want to skip. Would that be feasible?
Best,
--
Robert