08-02-2011, 11:11 AM | #1 |
Connoisseur
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... |
08-02-2011, 02:18 PM | #2 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
Advert | |
|
08-02-2011, 03:57 PM | #3 |
Grand Sorcerer
Posts: 6,206
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
The <title>...</title> tags are not used by Calibre when defining chapters/TOC levels.
There are (at least) 2 ways to get the correct TOC nesting.
If your CHM uses more than 3 nested levels I don't think you could use option 1. On the face of it option 2 seems to work but I don't know whether the various ereaders support nesting levels of 4 or more. |
08-05-2011, 08:49 AM | #4 |
Connoisseur
Posts: 69
Karma: 10
Join Date: Oct 2010
Device: Kobo Glo, PRS-650, iPad 1, iPhone 4S
|
thanks jackie. i know html, so i'll look into your option 1. I had been looking at the debug files from the conversion, but it made so many different html files, i'm not sure i was looking in the right place for the chapter tags.
So, how do i "inspect" the chm? I've already converted it to an epub once. When I open it in calibre, it opens as an epub. Right clicking on it's entry in the calibre library, i don't see any "inspect" menu option... Last edited by luckycharms; 08-05-2011 at 08:54 AM. |
08-05-2011, 09:31 AM | #5 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
As Jackie said, you open the chm file with the Calibre viewer. The inspect feature is in the Calibre viewer. Opening with the viewer causes the chm to be temporarily converted to XHTML. Try clicking on the chm file to open it. If your system doesn't use the Calibre viewer, then close it, and go into preferences and tell Calibre to use its own viewer to open chm files. That setting is in Preferences on the right side of the Behavior page.
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Removing navigation bars from converted CHM | Gnungnu | Conversion | 5 | 06-22-2011 01:23 PM |
epub converted from chm crash sony reader | fdge | Conversion | 3 | 06-17-2011 02:09 AM |
access directly the table of contents of cbc converted into epub | Khawarizmi | Sony Reader | 4 | 12-27-2010 08:55 AM |
Code block view (converted from CHM) | Replika | Calibre | 3 | 10-19-2010 02:08 PM |
Oreilly.com - eBooks for $5 each [NEW CODE - SEE POST #9] | MikeFromHC | Deals and Resources (No Self-Promotion or Affiliate Links) | 9 | 06-22-2010 01:05 AM |