bell notificationshomepageloginedit profileclubsdmBox

10.02% popularity   0 Reactions

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


Load Full (2)

Login to follow story

More posts by @Candy

2 Comments

Sorted by latest first Latest Oldest Best

 

@Kevin

10% popularity   0 Reactions

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


Load Full (0)

 

@Kelli

10% popularity   0 Reactions

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


Load Full (0)

 

Back to top