<div dir="ltr">Hi all,<br><br>I have a slightly unconventional need for latex that I&#39;m hoping you latex wizards out there can help me with.<br><br>The basic problem I&#39;m trying to solve is:<br>Given some input plain text, create (i) an image that renders that text and also (ii) output a file that records each printed character from the input text and the corresponding bounding box coordinates of that character in the image.<br>
<br>The first goal of creating an image from the text is the easy part, and in fact I dont really need latex to do it. The second goal is very unclear. However, given latex&#39;s outstanding ability wrt text layout, and the fact that it can also handle things like equations etc. I imagine that this layout information is computed and stored somewhere along the way, perhaps even implicitly within the dvi file. (And maybe this is preserved in ps/pdf files generated from that point on).<br>
<br>In short, do you know of a way to extract the bounding box coordinates of the characters in the output dvi or via some other way that utilizes latex?<br><br>Thanks!<br>~R<br><br></div>