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

Go Back   MobileRead Forums > E-Book Software > Reading and Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-05-2008, 06:29 PM   #1
sfan
Junior Member
sfan began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2008
Device: Sony PRS-505
Does Digital Edition support fallback for epub?

Hi,

I am playing around with epub format those days.

I tried to embed non-standard resource files in the package and use fallback to display the alternative of those files. But seems like it didn't work.

I did a litter search, and found someone had similar problem:
http://www.idpf.org/forums/viewtopic...41399c30b40ec6

No body answered the post.

Is there anyone knowing if the fallback is supported by current Digital Edition (1.5)?

Thanks,
sfan
sfan is offline   Reply With Quote
Old 06-05-2008, 06:51 PM   #2
Hadrien
Feedbooks.com Co-Founder
Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.
 
Hadrien's Avatar
 
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
Very interesting question. Which kind of non-standard resources did you tried to embed in the OPF file ?

You should ask such questions to the ePub group: http://groups.yahoo.com/group/epub-community/
Hadrien is offline   Reply With Quote
Advert
Old 06-05-2008, 07:01 PM   #3
sfan
Junior Member
sfan began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2008
Device: Sony PRS-505
Thank you for the reply.

I just did a simple experiment with just XML files.

In opf file, I defined:
<item id="titlepage" href="title.xml" media-type="application/xhtml+xml"/>
<item id="note" href="note.xml" media-type="application/xhtml+xml"/>
<item id="kml" href="kml_sample.kml" media-type="application/google+kml" fallback="titlepage"/>

In note.xml, I added a link like this:
<p><a href="kml_sample.kml">KML</a></p>

From my understanding, if fallback is supported, when the KML link is clicked, reader app should jump to title.xml. DE displayed KML as a link, but when I clicked, nothing happened.
sfan is offline   Reply With Quote
Old 06-05-2008, 07:10 PM   #4
Hadrien
Feedbooks.com Co-Founder
Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.
 
Hadrien's Avatar
 
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
Have you tried the item with "kml" as an id in the spine first ?
Hadrien is offline   Reply With Quote
Old 06-05-2008, 07:23 PM   #5
sfan
Junior Member
sfan began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2008
Device: Sony PRS-505
Quote:
Originally Posted by Hadrien View Post
Have you tried the item with "kml" as an id in the spine first ?
I tried, but still nothing happened.

I attached the epub file I created.
Attached Files
File Type: epub fallback.epub (29.7 KB, 329 views)
sfan is offline   Reply With Quote
Advert
Old 06-05-2008, 07:32 PM   #6
Jon Noring
Member
Jon Noring doesn't litterJon Noring doesn't litter
 
Posts: 16
Karma: 112
Join Date: Oct 2006
Quote:
Originally Posted by sfan View Post
I just did a simple experiment with just XML files.

In opf file, I defined:
<item id="titlepage" href="title.xml" media-type="application/xhtml+xml"/>
<item id="note" href="note.xml" media-type="application/xhtml+xml"/>
<item id="kml" href="kml_sample.kml" media-type="application/google+kml" fallback="titlepage"/>

In note.xml, I added a link like this:
<p><a href="kml_sample.kml">KML</a></p>

From my understanding, if fallback is supported, when the KML link is clicked, reader app should jump to title.xml. DE displayed KML as a link, but when I clicked, nothing happened.
It is important to refer to the OPF Specification which defines the mechanism to assign fallbacks. You will need to add, for example, the 'fallback' attribute, and do it as specified.

Good luck!
Jon Noring is offline   Reply With Quote
Old 06-05-2008, 07:45 PM   #7
Hadrien
Feedbooks.com Co-Founder
Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.
 
Hadrien's Avatar
 
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
Here's the example from the spec:
Quote:
<manifest>
<item id="item1"
href="FunDoc.txt"
media-type="text/plain"
fallback="fall1" />
<item id="fall1" fallback="fall2"
href="FunDoc.pdf"
media-type="application/pdf" />
<item id="fall2"
href="FunDoc.html"
media-type="application/xhtml+xml" />
<item ...>
</manifest>
It's pretty late in Paris (almost 2am), haven't tried anything too fancy yet but I modified the fallback.epub, tried a link in the NCX or adding kml to the spine and it didn't work.
Hadrien is offline   Reply With Quote
Old 06-05-2008, 08:00 PM   #8
sfan
Junior Member
sfan began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2008
Device: Sony PRS-505
Quote:
Originally Posted by Jon Noring View Post
It is important to refer to the OPF Specification which defines the mechanism to assign fallbacks. You will need to add, for example, the 'fallback' attribute, and do it as specified.

Good luck!
I followed the spec by adding fallback attribute to the kml item:

<item id="kml" href="kml_sample.kml" media-type="application/google+kml" fallback="titlepage"/>

Is there anything I missed?
sfan is offline   Reply With Quote
Old 06-05-2008, 08:02 PM   #9
sfan
Junior Member
sfan began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2008
Device: Sony PRS-505
Quote:
Originally Posted by Hadrien View Post
Here's the example from the spec:


It's pretty late in Paris (almost 2am), haven't tried anything too fancy yet but I modified the fallback.epub, tried a link in the NCX or adding kml to the spine and it didn't work.

Have a sweet sleep!
sfan is offline   Reply With Quote
Old 06-06-2008, 12:46 AM   #10
Jon Noring
Member
Jon Noring doesn't litterJon Noring doesn't litter
 
Posts: 16
Karma: 112
Join Date: Oct 2006
Hmmm, after posting my first comment, I opened up the example ePub with the test 'fallback'. At cursory glance it looks like you've done it right.

It is entirely possible that Adobe DE 1.5 does not yet support the fallback mechanism, just as it doesn't support alternative NCX navlists.
Jon Noring 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
Arabic EPUB on Adobe digital Edition hala_zzz Workshop 8 07-25-2011 09:29 AM
Adobe epub or Adobe Digital Edition? Davimee Astak EZReader 11 01-17-2010 08:15 PM
Does .EPUB and Adobe Digital Edition supports Audio/Video functionality arvinder Reading and Management 9 10-03-2008 12:44 PM
Digital Edition support for PRS-500? hapax legomenon Sony Reader 12 09-27-2008 10:35 PM
Top Publishers and Sony Support New Digital Publishing Experience (Digital Editions) NatCh Sony Reader 50 06-22-2007 08:02 PM


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


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