
: Fix broken eBook Table of Contents? The Table of Contents of this .ePub file seems to incorrectly link to one page previous to the desired page. For instance if 'Part 2' is clicked, it directs
The Table of Contents of this .ePub file seems to incorrectly link to one page previous to the desired page. For instance if 'Part 2' is clicked, it directs to the last page of 'Part 1'. I have looked over the source files, but it is unclear to me how I can rectify this issue.
Any help in fixing this file will be greatly appreciated
Free books android app tbrJar TBR JAR Read Free books online gutenberg
More posts by @Candy

: Why are epub .xhtml files saved as .html? Why are ePub content files, which (as I understand) are to be interpreted as XHTML, saved with a .html file extension? I realize that they are interpreted

: Is there a way to quickly download all of my Kindle books? I have ~165 books in my Kindle cloud library. I am currently trying to download all of them onto my laptop (the Kindle app; I
2 Comments
Sorted by latest first Latest Oldest Best
It turns out the chapter file names were incorrectly listed in the OEBPS TOC.
I resolved the issue by:
Opening the first file (navigational TOC) in the OEBPS folder of the unpacked .ePub (.zip)
Correcting the 'h-#' portion of the href in each tag by incrementing by 1. For instance, the first href which was "@public@vhost@g@gutenberg@html@files@1250@1250-h@1250-h-0.htm.html#link2H_PART1", becomes "@public@vhost@g@gutenberg@html@files@1250@1250-h@1250-h-1.htm.html#link2H_PART1".
Saving and repackaging the .ePub
Free books android app tbrJar TBR JAR Read Free books online gutenberg
It looks like the anchor tags were put in the wrong place. If you unzip the .epub, you'll see that the link for Part 1
<p><a id="link2H_PART1"><!-- H2 anchor --></a></p>
is at the end of the first (navigational TOC) file, 1250-h-0.htm.html rather than the file for Part 1, 1250-h-1.htm.html.
If you move each of those links to the beginning of the correct file (right after the <body> tag and before the <h2> would be a good place) then that should fix your problem.
Free books android app tbrJar TBR JAR Read Free books online gutenberg