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 02-13-2011, 11:08 AM   #1
tzunder
Junior Member
tzunder began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2011
Device: Kindle
#links in epub

Sorry if it has been asked before but I googled it and didn't find a good answer.

In basic html you can link inside a document using the name attribute:

Quote:
Code:
Example

A named anchor inside an HTML document:
<a name="tips">Useful Tips Section</a>

Create a link to the "Useful Tips Section" inside the same document:
<a href="#tips">Visit the Useful Tips Section</a>

Or, create a link to the "Useful Tips Section" from another page:
<a href="http://www.w3schools.com/html_links.htm#tips">
Visit the Useful Tips Section</a>
Does this work in epubs and do ereaders support it?
tzunder is offline   Reply With Quote
Old 02-13-2011, 11:26 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 5,789
Karma: 4027751
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
Yes, but you have to use "id" instead of "name", because ePUB uses XHTML strict. And you can add the "id" to any element (a <p>, a <div>, an <h2>, a <span>...)
Jellby is offline   Reply With Quote
Old 02-13-2011, 12:40 PM   #3
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 639
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD
I think its also better to add the current filename if it's jumping to somewhere in the current document, because some viewer/readers cant follow the link without it.

I 'm not sure but I think there was a bug in Sigil when if it splits a file, the link didn't get correctly updated unless it also had the filename.
(Not sure if it was a Sigil bug, or if it was, if it's been fixed)
Perkin is offline   Reply With Quote
Old 02-13-2011, 02:53 PM   #4
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,975
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by Perkin View Post
I 'm not sure but I think there was a bug in Sigil when if it splits a file, the link didn't get correctly updated unless it also had the filename.
(Not sure if it was a Sigil bug, or if it was, if it's been fixed)
I don't remember this bug (and I usually remember bugs). It was either reported and fixed a long time ago, or never reported at all. Try to make a test case and then report it if you succeed.
Valloric is offline   Reply With Quote
Old 02-13-2011, 03:39 PM   #5
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 639
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD
I'm probably mistaken, and mis-remembering another problem with links.

It may have been from this topic
http://www.mobileread.com/forums/showthread.php?t=89755
Perkin is offline   Reply With Quote
Old 02-13-2011, 07:12 PM   #6
st_albert
Fanatic
st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.
 
Posts: 540
Karma: 64420
Join Date: Feb 2010
Device: none
FYI,


In my experience, recent versions of Sigil correctly preserve links, even without full filenames, when files are split.

That is, if a file contains an internal link, and the file is later split into two or more files such that the links are split across files, the proper filenames are added to the links.

Last edited by st_albert; 02-13-2011 at 07:17 PM.
st_albert is offline   Reply With Quote
Reply

Tags
attribute, epub, html, sigil

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding links to ePub lolomydear ePub 4 09-09-2010 09:38 PM
Links do not appear in epub illustrata Calibre 0 08-21-2010 01:21 PM
epub: links in toc should not be underlined ... NASCARaddicted Calibre 2 06-15-2010 06:26 PM
Opus Links in th epub files - is it possible? 1drey Bookeen 2 03-09-2010 11:13 AM
Notes and Links in ePub Pablo ePub 2 09-13-2009 08:04 AM


All times are GMT -4. The time now is 09:20 PM.


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