Good evening everyone!
I'm converting ebook files to ereader-optimized pdf files (the sony ereader can't propertly justify text). I'm therefore converting html to latex, and then building the latex output using pdflatex.
The sony reader has a function to lookup words in a dictionary. However, it figures out words by analysing boxes; and pdflatex generates one box per line. I subsequently have lost the possibility to use the dictionary search.
So here's my question: How do I tell pdflatex to put each word in a separate box?
Thanks!
EDIT:
I’m trying to tweak the output of the pdflatex command to make it produce one box per word. Consider this example:
\documentclass{minimal}
\begin{document}
This is an example sentence.
\end{document}
When opened in a PDF editor after compilation, this sample will appear as one text box containing the sentence "This is an example sentence.". This is fine for most full-featured pdf readers. Yet on my sony e-reader, selection of words is based on boxes ; therefore my pdf reader will select the full sentence, hence failing to find a definition for the word I clicked.
I noticed that pdflatex stops at punctuation marks. How can I proceed to make it create one box per word? In the output, I would then have one box for "This", one for "is", one for "an", and so on.