View Single Post
Old 02-05-2020, 08:24 PM   #6
thymesnewroman
Enthusiast
thymesnewroman ought to be getting tired of karma fortunes by now.thymesnewroman ought to be getting tired of karma fortunes by now.thymesnewroman ought to be getting tired of karma fortunes by now.thymesnewroman ought to be getting tired of karma fortunes by now.thymesnewroman ought to be getting tired of karma fortunes by now.thymesnewroman ought to be getting tired of karma fortunes by now.thymesnewroman ought to be getting tired of karma fortunes by now.thymesnewroman ought to be getting tired of karma fortunes by now.thymesnewroman ought to be getting tired of karma fortunes by now.thymesnewroman ought to be getting tired of karma fortunes by now.thymesnewroman ought to be getting tired of karma fortunes by now.
 
thymesnewroman's Avatar
 
Posts: 30
Karma: 2077248
Join Date: Feb 2020
Device: Forma
Quote:
Originally Posted by Tex2002ans View Post
What's the source format? I'm assuming you used Calibre to do a "something" -> EPUB conversion?
Hello Tex,
I didn't use Calibre at all. I didn't do any modifications on the file. Perhaps the original person who created this epub took a "wrong turn" with the notes/linking/coding?

By the way, I was incorrect in my OP and my title in saying that they link to the cover page. In fact, they link to the title page.

Quote:
Originally Posted by Tex2002ans View Post
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.
Chapter 1 is index_split_006.xhtml

index_split_001.xhtml is the Table of contents.
index_split_003.xhtml is Preface.
index_split_004.xhtml is the Acknowledgements.
index_split_005.xhtml says “Part 1”.
index_split_006.xhtml is Chapter 1.
index_split_007.xhtml is Chapter 2.
index_split_008.xhtml is Chapter 3.
And so on and so forth.

So I changed the in-text code (versus the note-at-end-of-chapter code) in chapter 1 (which is index_split_006.xhtml) from
Code:
<a class="S-T1" href="../Text/index_split_000.xhtml#anchor22"><span class="S-T6">14</span></a>
To
Code:
<a class="S-T1" href="../Text/index_split_006.xhtml#anchor22"><span class="S-T6">14</span></a>
But now, nothing happens (whereas it used to jump to the title page).


Quote:
Originally Posted by BobC View Post
The OP says that all notes are in the same file as where the footnote reference exists and that all the references take him back to the cover.

I'm betting that doing a replacement of all instances of

Code:
href=../Text/index_split_000.xhtml#anchor
with
Code:
href="#anchor
would solve the problem as you only need the anchor reference and not the filename if it is in the current file.
Hi Bob. I did as you suggest. In Sigil, I made the Find&Replace look through all HTML files, and it says “Zero replacements made”.
Please see screenshot. https://i.imgur.com/v6cvshT.png
Quote:
Originally Posted by DNSB View Post
It would have been nicer if the OP had not double posted this thread.

Edit: here and in the FootnoteLinker Sigil plugin thread.
Hi David,
The FootnoteLinker creator suggested I post here.
thymesnewroman is offline   Reply With Quote