![]() |
#1 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
Hyperlinks
I have the following problem:
I intend to set a file as the summa of all footnotes in the epub2. Therefore I need to make the number linked to the text it explains, not the explanatory text. In other words, the opposite of the fig below (it's not a TOC but I found none suitable) - that is 1. is hyperlinked: ![]() I thought of the alternative of tables - there is a lot of work to convert hundreds of them I know customising the number/bullet in epub2 is rather limited, but maybe someone has an idea. I was not able to find one. I am open to any solution. If no suitable solution exists, then I'll convert all entries in a table. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
I haven't tested this yet but my current strategy is, in the body text have
Code:
blah blah.<a id="backref1" href="#note1">[Note 1]</a> Blah blah blah Code:
<section class="endnotes"> <header> <h3>End notes</h3> </header> <ol> <li> <a id="note1" />Hannibal, Missouri. (<a href="#backref1">Return to previous place.</a>)</li> </ol> </section> I just discovered that the Kobo doesn't properly format description lists; dl/dt/dd. So I definitely need to see if it handles ordered lists correctly. If it doesn't then I'll just use paragraphs: Code:
<p><a id="note1" />Note 1: Hannibal, Missouri. (<a href="#backref1">Return to previous place.</a>)</p> Last edited by lumpynose; 08-31-2019 at 01:06 AM. |
![]() |
![]() |
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
It seems that the IDs need to be unique across all of the files in the book, not just within each xhtml file. But the ol/li list does work.
|
![]() |
![]() |
![]() |
#4 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
The code you put I know. It does replicate the figure.
I don't want the figure but the opposite. I could not put a figure depicting what I want because I didn't find the answer - and I would have found it I would have not asked ![]() what I want is to make the automatic number be hyperlinked to somewhere else. Sort of: Code:
<p style="margin-left:1em"><a href="#ReturnToText1"><b>1.</b></a>*Footnote text 1.</p> <p style="margin-left:1em"><a href="#ReturnToText2"><b>2.</b></a>*Footnote text 2.</p> 2. Footnote text 2. |
![]() |
![]() |
![]() |
#5 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,295
Karma: 20171067
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
put the filename in the href:
href="../Text/footnotes.html#ReturnToText1" |
![]() |
![]() |
![]() |
#6 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
No wonder I couldn't find any idea - people simply do not understand what I want, so probably nobody ever cared to find a solution for a problem only I, of whole this universe, have.
I simply do not know how to make the automatically-generated number of the ordered list "clickable". I tend to think it's not possible to customise this. |
![]() |
![]() |
![]() |
#7 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,295
Karma: 20171067
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
oh...you mean the numbers that are generated with <ol><li>....got it.
No, you cannot...use an un-ordered list and manually add the numbers/links. Or, add the link to the text portion of the <li> instead of the numbers. Sorry! [edit] - Or, I should say, you cannot without getting into javascript...but manually adding the links is much easier and supported across all most devices. Last edited by Turtle91; 09-02-2019 at 12:22 PM. |
![]() |
![]() |
![]() |
Tags |
endnotes, links, numbered_lists |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hyperlinks | jtdolphins | Which one should I buy? | 3 | 06-18-2011 12:29 AM |
.pdf hyperlinks | Xabache | 6 | 09-16-2010 04:27 PM | |
Hyperlinks Help ^^ | Anarel | Workshop | 2 | 08-16-2010 09:12 AM |
PRS-600 Hyperlinks and notes | Prince Hal | Sony Reader | 3 | 01-08-2010 10:13 AM |
Hyperlinks | MsAstoria | Amazon Kindle | 0 | 03-12-2009 07:40 PM |