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 09-17-2010, 06:05 PM   #1
RJamesW
Junior Member
RJamesW began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2010
Device: Several
Challenging! Link to hidden html file in ePub

Hello forum,

I'm trying to do something that may not be possible in ePub.

I want to link from the text in a chapter to an html file that does not appear in the reading order. I.e., if you were to page through the ePub, the content of that html file would not appear. It can only be linked to. A link on that page would return the reader to the main content.

I've tried modifying the <spine> section in the OPF so that linear is set to "no" for the item as follows:

<itemref idref="tgt01" linear="no">

But this doesn't work in ADE or Sony (or Kindle for that matter when the file is converted to .prc). I've also tried removing the file from the <manifest> section of the OPF, but you cannot link to un-manifested files in ePub.

Does anyone have any ideas on how to accomplish this?

Thanks!
RJW
RJamesW is offline   Reply With Quote
Old 09-17-2010, 07:45 PM   #2
ATDrake
Wizzard
ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.
 
Posts: 10,193
Karma: 28524374
Join Date: Mar 2010
Location: Roundworld
Device: Kindle 2 International, Sony PRS-T1, BlackBerry PlayBook, Acer Iconia
Currently, it doesn't look like it can be done if linear="no" isn't doing it with your test-readers.

Probably the most you could really do right now is as Barnes & Noble does for the footnotes in their Classics editions, and have those files located after the end of the rest of the book, when most people will have stopped reading anyway.

But this may not be enough for the effect that you want.

Also, welcome to MobileRead!

Last edited by ATDrake; 09-17-2010 at 07:48 PM. Reason: Oops, forgot the welcome.
ATDrake is online now   Reply With Quote
 
Advertisement
Old 09-18-2010, 05:12 AM   #3
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: 6,998
Karma: 8796439
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by RJamesW View Post
I've tried modifying the <spine> section in the OPF so that linear is set to "no" for the item as follows:

<itemref idref="tgt01" linear="no">
That is the way, and it works in Calibre. Unfortunately, reading systems are not required to do anything particular with non-linear elements:

"Reading Systems are not required to differentiate between primary [linear="yes"] and auxiliary [linear="no"] content, and for the requirements and recommendations given in this section may consider all OPS Content Documents in spine to be primary, regardless of the value of the linear attribute."

Removing the file from the <spine> or the <manifest> would produce invalid ePUB files, so don't do it. Instead, write a polite letter to Adobe (and Sony, and others) asking them to implement the distinction between primary and auxiliary content.
Jellby is offline   Reply With Quote
Old 09-20-2010, 04:45 PM   #4
RJamesW
Junior Member
RJamesW began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2010
Device: Several
Thanks Jellby and ATDrake for the information. I'm new to this forum, as you know, but I anticipate many return visits.
RJamesW 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
Quick and dirty conversion of html to epub WITH intra-file links Birdonawire ePub 2 06-18-2010 03:18 AM
Converting Merged HTML file to Epub/PDF Not Working MV64 Calibre 1 06-07-2010 08:48 PM
How can i convert HTML or txt file to EPUB file ? guguqiaqia ePub 7 05-28-2010 10:15 PM
Several xhtml/html to a single epub file help. clowe1028 ePub 3 03-21-2010 04:47 AM
Problem with html->epub: reader can't page through file horseflesh Calibre 5 10-20-2009 01:22 AM


All times are GMT -4. The time now is 10:13 PM.


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