View Single Post
Old 02-05-2020, 09:41 AM   #3
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
What's the source format? I'm assuming you used Calibre to do a "something" -> EPUB conversion?

Somewhere along the line, you split your files poorly, and the links became broken.

Sometimes it's easier to go back to the original and make nothing gets broken in the first place.

(From what I can tell in your example, the "anchor##" are all jumbled up anyway.)

But if you want to dig inside the innards...

Quote:
Originally Posted by thymesnewroman View Post
There isn't a separate endnotes file. The notes appear at the end of every
chapter, where the chapter is named index_split_006.xhtml, index_split_007.xhtml and so on. (This is in contrast to the print edition, which have footnotes, appearing at the bottom of the page).
In your first example, you can see:

Code:
<a class="S-T1" href="../Text/index_split_000.xhtml#anchor22">
This is the source of your woes.

If you break this down into its basic components, it's saying:
  • <a> = a link.
  • href = "Where does this link go?"
  • Red = Go to the file named "index_split_000.xhtml" (this is probably your cover file).
  • Blue = In that file, look for an id "anchor22" and jump to it.

You can fix this multiple ways... but the easiest is probably:

1. You can adjust the filename.

If "index_split_000.xhtml" = your cover file, then you'll have to change that href to the correct filename.

Let's say you're in Chapter 3 footnotes, and Chapter 3 is "index_split_003.xhtml".

Easy, just change the 000 -> 003.

Code:
<a class="S-T1" href="../Text/index_split_003.xhtml#anchor22">
Clicking on that should keep you in Chapter 3, and SHOULD jump you to the correct footnote.

* * *

2. Ultimately, you would want to overhaul everything to become human-readable:

Code:
absolute power of the state.”<a href="../Text/Chapter01.xhtml#footnote14" id="note14">[14]</a> This is incorrect

[...]

<p class="footnote"><a href="../Text/Chapter01.xhtml#note14" id="footnote14">[14]</a> P. Lobstein, <i>Einleitung in die Evangelische Dogmatik</i> (Freiburg, 1897), 23.</p>
This would make reading and figuring out what's going wrong MUCH easier.

You can see how confusing it becomes when "index_split_003" = who-knows-what-chapter... and "anchor22" stands for footnote 14.

Quote:
Originally Posted by thymesnewroman View Post
What's the best way to fix ALL the notes in this four-volume work? (Each volume is its own epub.) In the first volume alone, I'm guessing there's about 500 notes, scattered from index_split_004.xhtml through to index_split_025.xhtml.
As I said initially, it's probably easier to go back to the original document and make sure the links don't get broken in the first place.

Last edited by Tex2002ans; 02-05-2020 at 09:48 AM.
Tex2002ans is offline   Reply With Quote