View Single Post
Old 08-06-2011, 08:23 PM   #1
lunixer
Addict
lunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-books
 
lunixer's Avatar
 
Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
What does the filepos parameter do in an href?

I found a few books in my library in which the TOC (table of contents) is off by exactly one chapter in every selection, so I am manually going through using Sigil and adjusting the TOC so that it is correct. However, this always leaves exactly one link at the end of the TOC which I have to create manually, as there is no other chapter that is incorrectly associated with this link.

For example, in Book A the TOC might look like this
Chapter 1
Chapter 2
Chapter 3

The chapter 2 link points to chapter 1, the chapter 1 link points nowhere, and the chapter 3 link points to chapter 2. I can move the first two links, but I have to make a link to point to chapter 3.

When I do this I simply take something from another chapter, such as:

Code:
   <p class="calibre2"><a class="calibre3" href="../Text/Last_Argument_Of_Kings_split_062.html#filepos1583884"><span class="bold calibre4 underline">The Beginning</span></a></p><br class="calibre5" />
and adjust the split and filepos number. However, I am confused because it seems no matter what number I put in the filepos, it makes no difference to the book, both when I read it through Calibre/Sigil or on my K3. What exactly does this number do? Obviously the split number chooses which file in the book to look at, but I can't figure out the filepos. Thanks!
lunixer is offline   Reply With Quote