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 03-06-2012, 12:12 PM   #1
iain robinson
Connoisseur
iain robinson began at the beginning.
 
Posts: 75
Karma: 10
Join Date: Apr 2011
Location: UK
Device: none
iBooks problem with text anchors

Hi all

We're making ePUBs in Adobe Indesign CS5.5 and then manipulating them to suit our requirements. One requirement is that the customer wants links after each endnote that you can click on to take you back to the appropriate place in the text. I know that there is a link at the foot of the page iBooks for this anyway but the customer still wants it (will be useful on other devices no doubt). When the user clicks an endnote reference in the text it takes you to the endnotes (Indesign takes care of this bit) and we add programmatically some anchors to the endnote references in the text and then put a link to them after the endnote.

Problem is that in iBooks (v2.0.1) the links sometime don't lead you back to the correct reference. In an article with 10 endnotes for example, the first 4 will work as expected then 5-7 will take you back to note reference 4, then 8-10 will work okay. If I uncompress the ePUB and view the html file in Safari all the links work as expected. Is this an iBooks bug and if so how are other people getting round it?

An example of some code from the text;
Code:
<p class="main-text">And all because of a couple of pieces of legislation being discussed in the USA, the Stop Online Piracy Act and the Protect IP Act (SOPA<a id="Anchor-1031"></a><a href="#Anchor-31"><span class="superscript">1</span></a> and PIPA<a id="Anchor-1032"></a><a href="#Anchor-32"><span class="superscript">2</span></a> respectively).
An example of some code from the endnotes;
Code:
<ol>
	<li class="endnotes"><a id="Anchor-31"/><a href="www.blahblah.com">www.blahblah.com</a>.<a href="#Anchor-1031" class="orange"> [BACK]</a></li>
	<li class="endnotes"><a id="Anchor-32"/><a href="www.ihateibooks.com">www.ihateibooks.com.</a><a href="#Anchor-1032" class="orange"> [BACK]</a></li>
Any help gratefully received,
Iain
iain robinson is offline   Reply With Quote
Old 03-09-2012, 03:42 AM   #2
iain robinson
Connoisseur
iain robinson began at the beginning.
 
Posts: 75
Karma: 10
Join Date: Apr 2011
Location: UK
Device: none
Anybody?
iain robinson is offline   Reply With Quote
Old 03-09-2012, 04:51 AM   #3
pdurrant
Santa Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 33,337
Karma: 90778786
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
Very puzzling. No idea.

But note that your sample only includes two links that you say are working.
pdurrant is offline   Reply With Quote
Old 03-09-2012, 04:58 AM   #4
iain robinson
Connoisseur
iain robinson began at the beginning.
 
Posts: 75
Karma: 10
Join Date: Apr 2011
Location: UK
Device: none
Thanks for your reply. The code was just to show how we had done it - the coding for all the links is the same (with different Anchor ids obviously). And it works as expected on everything I've tested it on, except iBooks.

Just wondered if anyone has seen this before and have a workaround. Seems not!
iain robinson is offline   Reply With Quote
Old 03-09-2012, 07:56 AM   #5
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,182
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Did you also test it with ADE?
Toxaris is offline   Reply With Quote
Old 03-09-2012, 08:34 AM   #6
iain robinson
Connoisseur
iain robinson began at the beginning.
 
Posts: 75
Karma: 10
Join Date: Apr 2011
Location: UK
Device: none
I did test it in ADE, Sigil and (uncompressed) in Safari. All worked fine. However, I just tested another 'chapter' within the file in ADE and it is not working 100% consistently (but better than iBooks) - I must not have checked that particular file. The whole thing is just weird.

Does anyone want to look at a file?
iain robinson is offline   Reply With Quote
Old 03-09-2012, 11:32 AM   #7
pdurrant
Santa Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 33,337
Karma: 90778786
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
Having seen your file, it looks to me like its just a case of your anchors not being there in the HTML.
pdurrant 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
Anchors in posts? unboggling Feedback 14 11-12-2014 03:44 PM
iBooks cropping text top and bottom Alan Newson ePub 5 02-28-2012 09:28 AM
iPad iBooks Text to Speech Feature kjk Apple Devices 3 06-12-2010 06:26 PM
iBooks and fuzzy text? John F Apple Devices 8 05-20-2010 10:11 PM
Text wrap in epub for ipad iBooks dblatner ePub 3 04-24-2010 07:16 PM


All times are GMT -4. The time now is 06:53 AM.


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