View Single Post
Old 08-22-2010, 07:43 AM   #2
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
Hi Paul,

I've had a look inside the HTML of Gideon's Band. The chapter tagging looks like this:

Code:
  <div class="c1">
    <h1>GIDEON'S BAND</h1>

    <h2>I</h2>

    <h3>THE STEAMBOAT LEVEE</h3>
  </div>

... ...

  <div class="c1">
    <h2>II</h2>

    <h3>THE "VOTARESS"</h3>
  </div>
The easiest way to get a TOC in your EPUB is to

Set [Convert] - [Structure Detection] - 'Detect chapters at' to //h:h2
Set [Convert] - [Table of Contents] - 'Level 1 TOC' to //h:h2 (or you could leave it blank in this particular case)

or you may prefer
Set [Convert] - [Structure Detection] - 'Detect chapters at' to //h:div[re:test(@class, "c1", "i")]
Set [Convert] - [Table of Contents] - 'Level 1 TOC' to //h:h2

or even
Set [Convert] - [Structure Detection] - 'Detect chapters at' to //h:div[re:test(@class, "c1", "i")]
Set [Convert] - [Table of Contents] - 'Level 1 TOC' to //h:div[re:test(@class, "c1", "i")]

All of these worked for me. Good Luck.

Last edited by jackie_w; 08-22-2010 at 07:48 AM. Reason: added 3rd option
jackie_w is offline   Reply With Quote