View Single Post
Old 08-02-2011, 11:11 AM   #1
luckycharms
Connoisseur
luckycharms began at the beginning.
 
Posts: 69
Karma: 10
Join Date: Oct 2010
Device: Kobo Glo, PRS-650, iPad 1, iPhone 4S
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...
luckycharms is offline   Reply With Quote