Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-29-2012, 07:24 PM   #1
phossler
Addict
phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 312
Karma: 50154
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: kindle
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
phossler is offline   Reply With Quote
Old 11-30-2012, 03:59 AM   #2
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
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.
meme is offline   Reply With Quote
Old 11-30-2012, 06:21 AM   #3
mrmikel
Book Twiddler
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,023
Karma: 1424487
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.
mrmikel is offline   Reply With Quote
Old 11-30-2012, 12:11 PM   #4
phossler
Addict
phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!phossler is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 312
Karma: 50154
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: kindle
@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.
phossler is offline   Reply With Quote
Old 11-30-2012, 01:05 PM   #5
JimmyG
Connoisseur
JimmyG began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Apr 2011
Location: Yuma, AZ
Device: Kindle Touch
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.
JimmyG is offline   Reply With Quote
Old 11-30-2012, 01:52 PM   #6
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,955
Karma: 3363559
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
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...
Toxaris is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 09:34 AM.


MobileRead.com is a privately owned, operated and funded community.