![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Text link to End Note and back again
Using 0.6, is there an easy way to insert 'back and forth' endnotes?
i.e. 1. Click [1] (the link) in the text and it goes to [1] (the anchor) in end notes. 2. Then click [1] (also a link) in the end notes and jump back to [1] (also an anchor) in the text. I borrowed some code to see how it's done: Code:
<a id="fnref0"></a> <a href="../Text/EndNotes.htm#fn0"> [1] </a> Code:
<p> <a id="fn0"></a> <a href="../Text/Chapter0001#fnref0"> [1] </a> </p> With the great new features in 0.6 the links and the anchors are easy, but I was wondering if there was a trick or suggestion to add the 'back and forth' part all in one go?? Paul |
![]() |
![]() |
![]() |
#2 |
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Not in one go. I'm considering adding something to help with this in some future release, but even then it wouldn't be one step. The issue is that you would have to define an id for the target footnote first, then define an id for the source link, and then when you create the link there could be an option to create the link and reverse link. Its possible to code it so that it skips the id for the source link by generating an automatic id if there isn't one, but you would still need to define the footnote link id first to have something to link to.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Another problem is you may want to link to a footnote from more than one place, such as map. You might not want to code a jump back in that case.
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
@meme -- I didn't think it was possible, but there's a lot of Sigil features I'm only scratching the sureface. Never hurts to ask.
A lot of books seem to have that back and forth, and if it were easy enought for me, I thought I could include it. I'll still try the current method, and hopefully I'll be able to keep things streight. Based on your comments, I'd envison (from my side of the keyboard) 1. Enter ID for End Note e.g. <id = EN0001> 2. Enter Link to the End Note e.g. <href: ...#EN0001> 3. AND OPTIONAL at that point, add a ID to the Text and a corresponding Link at the End Note e.g. <href: ...#EN0001><id = hrefEN0001> and <id = EN0001><href: ... #hrefEN001> @mrmike -- since it's an option to add the 'reverse' link, you could still just link to the same ID from one or more places Paul Last edited by phossler; 11-30-2012 at 12:20 PM. |
![]() |
![]() |
![]() |
#5 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 119
Karma: 28454
Join Date: Apr 2011
Location: Yuma, AZ
Device: Kindle Touch, Voyage
|
On an epub program I wrote a long time ago, I made it all automatic. The endnote was placed right in the text surrounded with ##endnote##, including any html markup. The endnotes were processed all in one go, after the book was finished. It numbered the notes, starting at 1 for each file, generated the forward and back id's, and separated the endnotes into files: "Notes for [title of file], created the files, added them to the manifest, etc., etc. It was about the only part of the program that worked consistently well, and was sure a timesaver if you had a lot of notes.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
When I use my macro to create HTML from a Word document, the links are already created correctly. Can save me a lot of work...
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Showing only one End-note at a time | ghostyjack | ePub | 4 | 04-27-2012 09:46 AM |
Is There Code to Stop Text-to-Speech at End of Passage? | BSquared18 | Kindle Developer's Corner | 0 | 06-24-2011 02:33 PM |
Text (.txt) files to PRS (.note) format | OutaDaDark | Sony Reader | 3 | 10-04-2010 01:26 AM |
WSJ: The End of Management (Publishers, take note) | kjk | General Discussions | 0 | 08-25-2010 12:06 PM |
Book Designer text at end of ebook | RobbieClarken | Sony Reader | 7 | 04-29-2008 05:45 AM |