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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-07-2011, 12:58 PM   #1
mimosawind
Member
mimosawind began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2011
Device: none
Question a href links working/not working

I have a book which I need to link certain sections from one document to another - not a problem at all.
I verified the ePub to be sure all links were good and there were no other issues. Checked the ePub by opening it in ADE and Safari - looks great and the links work.
However when I add the book to my iBooks on the iPad, the links do not direct to the correct location, but rather to the very first 'page' (Title page) of the book.

So the a href's are working in ADE and Safari, but not in iBooks - anybody have an idea as to why?

I'm not even attempting to link to a certain section of the separate (but still in book) document - just going straight to the document.

I am thoroughly confused as to how it could work fine on my mac but not on the iPad.

I'm using Text Wrangler to do all of my html/css work and all of my documents are xhtml.
mimosawind is offline   Reply With Quote
Old 12-07-2011, 06:54 PM   #2
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
Not that I use any terrible crapple specific stuff but:
Sounds like you've got some invalid characters (commas, colons etc) in the hrefs or using direct addressing; ie href="something.html#stuff" often causes trouble while href="../Text/something.html#stuff" will be fine.

Anyway, if you you need help, it's a good idea to provide us with an example(s), this regex :
Code:
<a\b(?:\s*\w+="[^"]*")*\s*(href="[^"]+")(?:\s*\w+="[^"]*")*\s*>
will grab all href's from <a> tags, group 1 contains just the href itself, if you could run this over your html and save the matches, that would be quite helpful.
Serpentine is offline   Reply With Quote
Old 12-08-2011, 01:20 PM   #3
mimosawind
Member
mimosawind began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2011
Device: none
In all honesty, I have no clue how to use a regex... But here's the a href in the doc... And it just repeats a couple of times throughout the book.

<a href="../OEBPS/Note.xhtml">Note</a>

The document it's linking to is part of the ePub, and it is titled "Note.xhtml"

Like I said though - the links work perfectly fine except in iBooks.
mimosawind is offline   Reply With Quote
Old 12-08-2011, 07:18 PM   #4
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
Hmm that's pretty odd, tho I'd throw it through Sigil / flightcheck and make sure that it doesn't complain about referenced files not being correctly included in the manifest etc.
Serpentine is offline   Reply With Quote
Old 12-08-2011, 11:09 PM   #5
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,284
Karma: 6022733
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by mimosawind View Post
In all honesty, I have no clue how to use a regex... But here's the a href in the doc... And it just repeats a couple of times throughout the book.

<a href="../OEBPS/Note.xhtml">Note</a>

The document it's linking to is part of the ePub, and it is titled "Note.xhtml"

Like I said though - the links work perfectly fine except in iBooks.
Note the Case of the file name.ext in all usages (and the file).
It must be an exact match on all but Windows based systems. (Some systems may try to make this case insensitive, but don't ever count on it )
theducks is offline   Reply With Quote
Old 12-09-2011, 01:42 PM   #6
mimosawind
Member
mimosawind began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2011
Device: none
Checks out perfectly fine --- and I made sure to use proper casing for all the links. I have had issues caused from that already. This is such a mystery!
mimosawind 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
iPad Links in epub not working on second click (iPad) alice88 Apple Devices 1 10-20-2011 02:31 AM
Update: Working - not working? exscentric enTourage eDGe 36 07-22-2011 06:38 PM
Links are not working in epub for ipad roco Apple Devices 1 07-09-2010 03:38 AM
Creator Email links not working in Mobi parvezali Kindle Formats 1 01-29-2010 11:29 AM
Download links not working toolio Calibre 1 12-09-2009 12:51 PM


All times are GMT -4. The time now is 03:54 AM.


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