Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 03-26-2011, 03:53 PM   #1
Cthulhu Inc
Junior Member
Cthulhu Inc began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2011
Device: iPod touch
Need help with html>epub ToC

I have some documents that I would love to be able to read conveniently on my iPod, and Calibre converts them excellently, except for one problem. The epubs don't have any table of contents!

How can I get a ToC on an epub that was converted from an html? I need step-by-step instructions, since my code isn't that good...
Cthulhu Inc is offline   Reply With Quote
Old 03-26-2011, 04:03 PM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,031
Karma: 777817
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by Cthulhu Inc View Post
I have some documents that I would love to be able to read conveniently on my iPod, and Calibre converts them excellently, except for one problem. The epubs don't have any table of contents!

How can I get a ToC on an epub that was converted from an html? I need step-by-step instructions, since my code isn't that good...
You should be able to fix that using the approach described at http://calibre-ebook.com/user_manual...specific-order. However this requires going back to the original HTML files.
itimpi is offline   Reply With Quote
 
Enthusiast
Old 03-26-2011, 04:18 PM   #3
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,710
Karma: 3818505
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"
There are many ways to do this but it is basically a two-step process for each book:
  1. Edit your HTML file in a plain text editor and mark all your chapter headings in a specific way.
  2. Import the edited HTML file into Calibre and, as part of the zip to epub conversion process, tell Calibre what you did in step 1.

A simple example:
Step 1: In the HTML file mark all your chapter headings with <h2>...</h2> tags, like this.
Code:
<h2>Chapter 1</h2>
<p>This is the text... blah blah...</p>

<h2>Chapter 2</h2>
<p>...more text... blah blah...</p>
Step 2: In Convert - Structure Detection - Detect chapters at tell Calibre that you used <h2> tags by entering //h:h2 in the box.
jackie_w is offline   Reply With Quote
Reply

Tags
convertion

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NCX From Html TOC Unno Kindle Formats 20 09-16-2011 09:31 AM
HTML to EPUB TOC Creation XPath HoushaSen Conversion 1 03-13-2011 11:02 AM
ePub TOC to mobi TOC edmnddntes Conversion 5 01-24-2011 02:56 AM
HTML Book + non HTML TOC to epub aarcane Calibre 4 03-02-2010 02:58 AM
TOC error when converting HTML poloman Calibre 2 12-14-2008 04:05 PM


All times are GMT -4. The time now is 04:26 AM.


MobileRead.com is a privately owned, operated and funded community.