I'm just finishing up a project that involved typesetting text in
several languages, while outputting an XML file that defined in X/Y
coordinates the position and size of the bounding box surrounding each
line of text in the PDF. I used Luatex, because that made it possible
to call Lua from Lu
there are several ways to get the box output in classic tex (or xetex)
although perhaps the easiest (and safest in terms of not accidentally
affecting the typeset positions) is to use \showoutput so all boxes
are (somewhat verbosely) logged in the log file, and then parse that
with perl or python
On 2018-03-23 16:44, David Carlisle wrote:
there are several ways to get the box output in classic tex (or xetex)
although perhaps the easiest (and safest in terms of not accidentally
affecting the typeset positions) is to use \showoutput so all boxes
are (somewhat verbosely) logged in the log f
The format is described in the TeXBook but in short
.\hbox(7.71974+2.25569)x360.0,
is a box of height 7.71974pt, depth 2.25569 and width 360.0pt nested
one level inside some other box
\hbox(0.0+0.0)x17.0
is a box of height and depth 0 and width 17pt (it will be the
indentation box) that is
Hi Hironobu,
A patch for
* etexdir/tex.ech
* pdftexdir/pdftex.ch
* xetexdir/xetex.ch
is attached.
Many thanks. Applied in r47096.
Best,
Akira
--
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex