table of contents code for converted oreilly chm
Hi Folks,
Not sure if this is the right sub-forum. I'm looking around for a way to properly detect multi-level tables of contents for an o'reilly chm that i'm converting to epub. Calibre is detecting the TOC, but just not in a multi-level fashion. Here's the XHTML (i think) for a chapter heading:
<TITLE>C.7. Chapter 7</TITLE>
and for a sub-section:
<TITLE>7.11. What About ORDER BY?</TITLE>
Perhaps I could somehow detect the "C." in the full chapter and the lack of it in a sub-section? I'd like to get these subsections indented, and ideally would like to find or help make a "recipe" (perhaps I'm mis-using that term) for processing these chm's.
thanks! any help greatly appreciated...
|