![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Oct 2013
Device: Google Nexus
|
A link to jump back to the original start point?
Hi, I'm new to this forum and a fairly new user of Sigil & xhtml.
To explain my Qs above. I have successfully made an href link to another page which has an Anchor ID as per the Sigil icons. What I'd like to do is have what I've seen in other books is a little upside-down v link, which when clicked on will jump me back to the original paragraph with the link. The original link sends me to Footnotes / Quotes at the end of the Chapter and I'd like to replicate that in my own epub. My html is weak so if you could give me some code or point me to a page in i.e. W3schools or the Sigil manual it would be a great help. Hope you can help Tnx from a newbie Zekton |
![]() |
![]() |
![]() |
#2 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
If you have multiple links from different places and you want to go back to each one, you better hope your reader has a back button. A number of readers do not, and to handle them, you have to provide multiple links back to each individual place. It is ungainly.
If it is just one to one you can create an anchor at the footnote and another anchor at the original point from which you jumped and create links both places. The process is the same for both. You highlight the text you want to be the anchor and press the anchor and give it a name. Similarly for the link process you highlight and a list will pop up of available anchors, and you just select the one you want. These are buttons at the top near the Omega button. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Oct 2013
Device: Google Nexus
|
tnx for the prompt reply mrmikel.
I understand your point about anchoring at both points and will give it a try. I was wondering if the tag ASIDE had any thing to do with this kind of link? Or am I way off track with that. |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Oct 2013
Device: Google Nexus
|
Tried that and it worked mrmikel. Spot on.
Found it makes the text blue and underlined which might be unsightly if there are a number in the same area. So thankfully found the "Wedge" or the upside down v as code ∧ and just used this as the link to jump back, rather than a full word. So ![]() |
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
If the epub will be displayed on a touchscreen device, you might want to consider extending the link to include the word, so 'fat fingers' have a bigger target to activate.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Oct 2013
Device: Google Nexus
|
Yes Perkin, that's fair comment. I thought the book did it this way but when I checked back it had the wedge and the word highlighted and linked together and it looks OK. So that's probably best. Tnx for the feedback.
|
![]() |
![]() |
![]() |
#7 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
If this is just a personal project for yourself, it looks like you are set.
If you'd like others to be able to read it, you might download other converters, viewers, such as Sony, Nook, Kindle to see how this works in those devices. Not everybody is going to read your work on a tablet, if you make it public. Glad things worked out! |
![]() |
![]() |
![]() |
#8 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
So a "^" back link will turn into a "[^]" or a "1" will turn into a "[1]" or "a" will turn into "[a]". It is much easier to touch 3+ characters than 1 (ESPECIALLY WHEN THEY ARE SUPERSCRIPT). All the books that I convert now for work, we decided to settle on using the a non-superscript [##] format. This allows for:
The bracketed + non-superscript footnotes do look a little unsightly, but I believe the advantages outweigh the costs. With more and more devices going towards touch, and more and more reading digital content, this will only help. Last edited by Tex2002ans; 10-19-2013 at 07:46 AM. |
|
![]() |
![]() |
![]() |
#9 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
This is a matter of personal taste. If it is just for yourself, please yourself.
There is much in what tex2002ans says about readability. By fiddling with text size and bolding the superscript some of these problems can be approached, but not fully answered, especially on smaller screen devices. On the other hand, the brackets are not as attractive. I think there is no simple answer to this issue. If I were trying to do something for old codgers like me, though, I think readability would trump beauty every time! |
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Oct 2013
Device: Google Nexus
|
Great advice guys. It's a personal project at the moment, so still experimenting.
But ALL tips welcome. It's a bit of a steep learning curve at the moment, so glad I've found this community. And btw, I think Sigil rocks, just hope it can keep going in some form. |
![]() |
![]() |
![]() |
#11 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
In an ideal future, ebook readers will support alternate stylesheets, you could have both versions in the same book, and the user will be able to choose the best for him/her.
|
![]() |
![]() |
![]() |
#12 | ||||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
The thing that I like to stress most though is to just make sure your code is CONSISTENT throughout the book. For example, this is the footnote format I use (pulled this right out of an EPUB I completed today): In Text: Quote:
Quote:
This makes it extremely easy to use Regex to change/fix all instances. So let us say I wanted to flip from [##] format to a superscript number format, I can easily run this Regex: Search: Code:
>\[(.+?)\]</a> Code:
><sup>\1</sup></a> Search: Code:
<a href="#f([tn][^>]+)>\[(.+?)\]</a> Code:
<a href="#f\1><sup>\2</sup></a> (For example, in all of the EPUBs I have created, I used that same footnote code, but instead of brackets I had "<sup>##</sup>". I can easily open those old EPUBs and run one Regex, and I will have bracketed footnotes) That "include the first word in the link" recommendation seems to me like it would be a big pain to reverse/fix/change, and it would look VERY inconsistent. Quote:
All you should do is pick some nice basic defaults (never forcing "black font" for instance), and make clean/consistent code so it is easy as pie for someone to go in and change if they were so inclined. Quote:
![]() Quote:
![]() Last edited by Tex2002ans; 10-19-2013 at 09:39 AM. |
||||||
![]() |
![]() |
![]() |
#13 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Oct 2013
Device: Google Nexus
|
WOW tnx for that Tex.
That's gonna take a week to process lol. I'll browse the Regex stickies at the top as well to get a handle. As big Arnie said... "I'LL BE BACK" ![]() |
![]() |
![]() |
![]() |
#14 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
I tend to do point-by-point answers (I absorbed this style from online debates where opponents must be DESTROYED). See you in a week!
![]() Quote:
In Sigil, there is the "Saved Searches" window, which allows you to save commonly used Searches/Regex, and allows you to load/run them very easily: http://web.sigil.googlecode.com/git/..._searches.html May I ask what you are working from? Or are you just tweaking a book that you purchased/found? If you are working directly from a digital source (.txt, .doc, .odt, HTML, ...), of course it will be about a million times easier to create an EPUB. Most of my work is done going from (dreaded) PDF -> EPUB, so I have a bunch of Regex to catch common OCR mistakes + helping speed up my entire process. In Sigil, I also tend to use the Spellchecking window (I requested the feature in Sigil, and it is FANTASTIC): http://web.sigil.googlecode.com/git/...pellcheck.html If you need any more help/examples/whatever, just let me know. Everything I do for work is CC3.0 (Creative Commons 3.0), and all my EPUBs (mostly non-fiction economics books) are available to everyone. |
|
![]() |
![]() |
![]() |
#15 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Related question about footnote placement / formatting.
Is the 'dead tree' approach of putting footnotes at the bottom of the page or putting endnotes at the end of the chapter the best way for an ebook? Most of the time I see the endnotes at the end of the chapter technique used, and I always felt it was a little 'awkward' to navigate to and back. For an ebook would it be more appropriate to somehow make the footnoted material inline and set off with a distinctive style? Obviously customer and house rules are correct, even when they're not. Hope this is not off topic Paul |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Update error: need original start.sh file from 3.0.3 | axc97c | Kindle Developer's Corner | 5 | 02-14-2012 04:39 AM |
Defining the 'start point' in HTML and using Calibre to generate the .mobi | David J. Perry | Conversion | 11 | 12-31-2011 01:55 PM |
Reuters: E-Book sales jump at the start of 2011 | kjk | News | 2 | 03-19-2011 09:48 PM |
Classic Cursor in PDF not start from first link, why? | bthoven | Barnes & Noble NOOK | 1 | 02-12-2010 05:44 AM |
Cursor in PDF not start from first link, why? | bthoven | 0 | 02-05-2010 04:37 AM |