View Single Post
Old 05-02-2014, 07:01 PM   #13
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by eschwartz View Post
Too bad it can't also write the book for you.

What exactly is a meaningful id and how do you tell calibre how to create them?
1. Wasn't asking it to write the book for me

2. I don't think Sigil's approach is perfect either, but it is easier to understand, and if necessary do some RegEx on it (never sure why all the nested div's, but I'm only in 2nd grade at the CSS school)


Code:
<body>
  <div class="sgc-toc-title">
    Table of Contents
  </div>

  <div class="sgc-toc-level-1">
    <a href="../Text/the_text.xhtml">Section A heading</a>

    <div class="sgc-toc-level-2">
      <a href="../Text/the_text.xhtml#sigil_toc_id_1">Chapter 01 heading</a>

      <div class="sgc-toc-level-3">
        <a href="../Text/the_text.xhtml#sigil_toc_id_2">Topic 01.01 heading</a>
      </div>

      <div class="sgc-toc-level-3">
        <a href="../Text/the_text.xhtml#sigil_toc_id_3">Topic 01.02 heading</a>
      </div>

      <div class="sgc-toc-level-3">
        <a href="../Text/the_text.xhtml#sigil_toc_id_4">Topic 01.03 heading</a>
      </div>
    </div>

    <div class="sgc-toc-level-2">
      <a href="../Text/the_text.xhtml#sigil_toc_id_5">Chapter 02 heading</a>

      <div class="sgc-toc-level-3">
        <a href="../Text/the_text.xhtml#sigil_toc_id_6">Topic 02.01 heading</a>
      </div>

@DiapDealer

"Meaningful = manual"

Yes 100% correct, but if the program can do most of the heavy lifting, the remaining part is much less onerous.
phossler is offline   Reply With Quote