View Single Post
Old 08-06-2011, 11:45 PM   #3
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
Quote:
Originally Posted by charleski View Post
The 'filepos' is just an example of a fragment identifier. It needs to start with a letter and can't include certain characters, but it's really just a marker that identifies a specific place in a file. The target of the link needs to have an identifier with the same text.

i.e. File1.xhtml:
<p><a href="File2.xhtml#Target">Click here</a></p>

File2.xhtml:
<p id="Target">This is where you end up</p>

You probably don't see any difference in this case because the targets in the table of contents they all point to are all elements on the same displayed page.
Thanks for the help! I've got a few more questions if you don't mind.

1) I'm not quite sure what you mean by "all elements on the same displayed page." The page with the inline TOC or the page that I am linking to?

I went back through and checked it out and it seems that you are correct. In the links that I did not make in the TOC, the place where it links to has an ID that matches the filepos tag in the TOC. Of course the tags I made don't match, since I picked the numbers at random.

2) Could it be because they always link to the top of a page? (That is, in the books I am working with the chapter breaks are always a new split_## file.)

3) But anyway, if the books work fine I shouldn't have any problem, correct?

4) If they are built this way, is the filepos even necessary or could the links just be done by identifying a file without a target?

5) Would there be problems with other file formats (eg mobi, pdb) if it was done that way?

Also, while I have your attention, I've noticed that in a number of the files in my library, the entire inline TOC is off by exactly one chapter. Is there anything that you can think of that could cause this? You seem pretty knowledgeable about this stuff. It's just odd because the books come from multiple publishers, are converted using the same settings in Calibre, and I always have to go through and do the exact same thing, manually moving the chapters. It just seems a little odd.

Thanks for the help!
lunixer is offline   Reply With Quote