I simply went from the first post wherein it was stated:
Quote:
How easy / possible would it be to reverse engineer an existing TOC and add the existing titles as they appear, to a title="" in an h* tag at the appropriate point in the book? If the file is really badly made and the chapter titles are in some random tag like p or div it might be necessary to add a blank h* with a display:none to it.
|
A while back I attempted to create some code that would handle that task. What I found was that there were so many screwed up epubs that needed special case handling that I could not have my code reliably handle what on the surface appeared to be a simple task. Someone else may take a different approach that would be more successful. If so, I would happily use their code and learn from it.