Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 10-09-2010, 07:34 PM   #1
Iain
Enthusiast
Iain began at the beginning.
 
Posts: 49
Karma: 14
Join Date: Jul 2010
Location: Harrogate, England
Device: iPad
links and extensions

I seem to be struggling with links in ePub documents.

I'm creating a toc file and including an link to the chapter in question.
The link looks like

<a href="Chapter10.html">Chapter 10</a>

Chapter10.html exists and the link appears as you would expect, but when I click / tap on it the first document in the spine opens (in the calibre viewer it opens the correct document but in an external browser).

Also, I'm a little uncertain what extension I should provide. until recently I was using .xhtml, but a correspondant told me that not all readers understand that. What's a safe extension to use for the content files?

Thanks!

Iain
Iain is offline   Reply With Quote
Old 10-10-2010, 03:45 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: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
The link should work as you write it. Does the "Chapter10.html" file exist inside the .epub file? Is it in the same folder as the file where the link appears? Is "Chapter10.html" included in the manifest and in the spine? Try validating the .epub with epubcheck or FlightCrew.

As for the extension, you can use any one in principle. I haven't seen any problem with .html or .xhtml. But whatever you use the "media-type" (and the content) must be XHTML (sort of)
Jellby is offline   Reply With Quote
Advert
Old 10-10-2010, 05:47 AM   #3
Iain
Enthusiast
Iain began at the beginning.
 
Posts: 49
Karma: 14
Join Date: Jul 2010
Location: Harrogate, England
Device: iPad


It seems that I'm blighted by too many years of windows programming. The links are case sensitive so I'm hrefing "Chapter0.html" when it is called "chapter0.html".

thanks for your reply on the other.

Iain
Iain is offline   Reply With Quote
Old 10-13-2010, 12:46 AM   #4
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
Quote:
Originally Posted by Iain View Post


It seems that I'm blighted by too many years of windows programming. The links are case sensitive so I'm hrefing "Chapter0.html" when it is called "chapter0.html".
Yes, this is a constant source of frustration for me as well...now though I'm in the habit of when it errors, that's the first thing I check for
Adjust is offline   Reply With Quote
Reply

Tags
epub, extensions, links


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox 3 and Extensions You can't live without bbusybookworm Lounge 115 07-13-2008 04:03 AM
Same book name, different extensions Ununoctien Bookeen 3 12-13-2007 07:19 AM
Firefox Extensions Best Of TadW Lounge 9 12-17-2004 01:58 PM
Exploring Firefox Extensions Colin Dunstan Lounge 0 09-07-2004 04:34 AM
Wired News links to great extensions for Mozilla/Firefox ignatz Lounge 7 07-25-2004 01:46 PM


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


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