![]() |
#1 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Oct 2011
Device: Kindle
|
Links in ebooks
I am transferring a wildflower Web site to ebook format, which in the Web version has a number of links, for example, to flowers of the same family on other site pages.
I've ignored these up to this point since the format for the ebook is quite different, and I've been concentrating on getting the text and images right. Understanding that I am new to this: I wonder is there any way to give the reader a way to go to a particular chapter from within the text of another chapter? Thanks |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,889
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() Sigil will not code these for you, But normal links and anchors function in EPUB and some other formats. Code:
<p><a href="../Text/thepage.xhtml#Illustration_22.xhtml"/>Illustration here</p> and place the anchor in the proper place in "thepage.xhtml" <a id="Illustration_22"></a> Last edited by theducks; 10-30-2011 at 10:42 PM. Reason: fixed missing 'a' |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Quote:
The "a" is missing in the first line in the code. It should read Code:
<p><a href="../Text/thepage.xhtml#Illustration_22.xhtml"/>Illustration here</p> |
|
![]() |
![]() |
![]() |
#4 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Code:
<p>This <a href="#target">link</a> wil take you to the next paragraph.</p> <p id="target">This paragraph is the target of the previous link, and any other link that points to "#target".</p> |
|
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,146
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
Quote:
I'm not familiar with the id tag - is that what the hash mark in the href tag refers to? I notice there's not # in the anchor when <a= is used. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
http://www.daaq.net/old/xhtml/index....tml+hyperlinks |
|
![]() |
![]() |
![]() |
#7 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Basically, with "id" you name locations inside a file, whith "href" you link to a file and/or location like this: href="file#location". If you omit the file (href="#location") the current file is assumed, if you omit the location (href="file") the top of the file is assumed.
|
![]() |
![]() |
![]() |
#8 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
|
![]() |
![]() |
![]() |
#10 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
|
![]() |
![]() |
![]() |
#11 |
Enthusiast
![]() Posts: 26
Karma: 15
Join Date: Jun 2009
Device: Palm TX, Pocket eDGe, Nexus (2012), iPad Air (3), Kobo Clara HD
|
This is all well and good, but Sigil recodes my work (I'm using v0.3.4 till I find the time to follow instructions for updating on linux).
I have this anchor in one file (ch01.html) Code:
<p id="CH01-94" class="footnote"> Code:
See <a href="./ch01.html#CH01-91">note 1, on page 50</a>. Code:
See <a href="#CH01-91">note 1, on page 50</a>. I tried changing the source to: Code:
See <a href="../Text/ch01.html#CH01-91">note 1, on page 50</a>. Any guidance? Am I overlooking something obvious, or do I really have to turn off HTML Tidy and manually restore these links in Sigil's editor? Thanks for thinking about this. |
![]() |
![]() |
![]() |
#12 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
You don't need the "./". Just use "ch01.html#CH01-91".
|
![]() |
![]() |
![]() |
#13 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,889
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I have noticed that Sigil has trouble when it can't find a file.
This can happen when you delete the file or what appears to be happening in your case, when it standardized the epub structure. Quote:
HarryT probably has the easiest answer/work-around ![]() |
|
![]() |
![]() |
![]() |
#14 |
Enthusiast
![]() Posts: 26
Karma: 15
Join Date: Jun 2009
Device: Palm TX, Pocket eDGe, Nexus (2012), iPad Air (3), Kobo Clara HD
|
Thanks for thinking about this, HarryT and theducks, but . . . it doesn't work for me.
Have you had success linking from one file to another? If you haven't actually tried it, I've attached SigilLinktest.epub that demonstrates Sigil's link reduction. If you load this into Sigil you'll see that it reduces each cross-file link style to #CH02-01. This makes ebook readers try to find the link in file01.html -- the currently-open file -- which, of course, they can't. Thanks again for your thoughts. Last edited by dlw; 11-06-2011 at 06:36 PM. Reason: change attached file type from html to epub |
![]() |
![]() |
![]() |
#15 |
Avid Reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 161
Karma: 36472
Join Date: Sep 2008
Location: Look for rain, hail and snow...
Device: PRS-505, PRS-600, PRS T1, Kobo Glo
|
The example already has reduced links, so opening it in my copy of sigil won't show me anything.
You should upload an example where the links are destroyed by opening it in Sigil. Last edited by opitzs; 11-06-2011 at 06:59 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTML of all the Baen Webscription eBooks with links to all the formats | mjdb | Workshop | 4 | 12-10-2014 01:27 PM |
Links | Bather | General Discussions | 2 | 02-04-2011 03:26 PM |
Links to URLs work, internal links don't? | NewDay | ePub | 36 | 10-27-2010 04:09 AM |
ePub eBooks (Fully Edited w/ TOC) Fanfiction, Forumfiction [Links removed by OP] | Guns4Hire | Reading Recommendations | 12 | 02-25-2010 03:53 AM |