View Single Post
Old 03-26-2011, 04:18 PM   #3
jackie_w
Grand Sorcerer
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: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
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