View Single Post
Old 07-09-2010, 02:43 PM   #9
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,812
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by crutledge View Post
Here is a link from a PG HTML file:
Code:
<A href="http://www.gutenberg.org/files/24105/24105-h/24105-h.htm#chap07">Chapter 7</A>
Is Sigil supposed to adjust this after the file is broken into sections and the sections renamed (e.g. CHAPTER_07.xhtml or CHAPTER07.xhtml or Chapter_7.xhtml or Chapter 7.xhtml)?

I have made manual changes but never had it automatic.
Your example is an external link, not a relative link to the internal (local) epub. That may be your problem.
If you download the ziped file and work on that
you will see
Code:
<div class="bodytext">
<a name="chap07"></a>
<h3>Chapter Seven.</h3>
<h4>Sad Tidings.</h4>
in the text

I ran the zip through Calibre, then edited the EPUB with Sigil (split)
Code:
  <div class="navigation">
    | <a class="calibre13" href="../Text/24105-h_split_002.htm#chappre">Preface</a> | | <a class="calibre13" href="../Text/Section0003.xhtml#chap01">Chapter 1</a> | | <a class="calibre13" href="../Text/Section0003.xhtml#chap02">Chapter 2</a> | | <a class="calibre13" href="../Text/Section0003.xhtml#chap03">Chapter 3</a> | | <a class="calibre13" href="../Text/Section0003.xhtml#chap04">Chapter 4</a> | | <a class="calibre13" href="../Text/Section0003.xhtml#chap05">Chapter 5</a> | | <a class="calibre13" href="../Text/Section0003.xhtml#chap06">Chapter 6</a> | 
| <a class="calibre13" href="../Text/Section0003.xhtml#chap07">Chapter 7</a> |
 | <a class="calibre13" href="../Text/Section0001.xhtml#chap08">Chapter 8</a> |
    <hr class="calibre4" />
  </div>
  <pre class="calibre3">
as you can see it is now in section 3 and it was originally part of 24105-h_split_002.htm
theducks is offline   Reply With Quote