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 08-29-2009, 04:55 PM   #1
richieadler
Fan of Sony readers
richieadler began at the beginning.
 
richieadler's Avatar
 
Posts: 7
Karma: 10
Join Date: Aug 2009
Location: Argentina
Device: Sony PRS-T2; Sony PRS-505
Question Any way to assign different styles to web pages vs. epub

Is there some type of selector or media which can be used to show a different style when a page is shown in a browser and when is part of an ePub and read by an eBook device?

richieadler is offline   Reply With Quote
Old 08-30-2009, 07:07 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: 6,257
Karma: 4801165
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
None that I'm aware of, see the spec.

Last edited by Jellby; 08-30-2009 at 05:35 PM.
Jellby is online now   Reply With Quote
Old 08-30-2009, 01:08 PM   #3
Ankh
Guru
Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.
 
Ankh's Avatar
 
Posts: 713
Karma: 2003741
Join Date: Oct 2008
Location: Ottawa, ON
Device: Kobo Touch
When it comes to standard ePub format, Jellby's reply stands, spec does not allow for it.

However, due to the widespread use of ADE on dedicated ebook readers, there is a possibility to use one of their their proprietary extensions. Details are available in Adobe's EPUB Best Practices Guide, chapter "Adobe Extensions", section "Layout Template/Dynamic styling".

It is not part of the standard, nor it is trivial to implement. Other ePub renderers should ignore that extension, but it is better to test such a publication against as many ePub viewers as it is possible.
Ankh is offline   Reply With Quote
Old 08-30-2009, 05:38 PM   #4
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,257
Karma: 4801165
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
But if it's for your own use (to test ePUBs in a browser, for instance), you can use something like what I posted here. The basic trick is using javascript to load additional .css files in the browser. In that thread it's a bit hidden, but you can also check one of my ePUB uploads (not the latest ones), where I provide index.zip files with this "trick".
Jellby is online now   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
Web2FB2 converts web pages to FB2 and EPUB files Xochipilli2012 Astak EZReader 6 03-18-2010 12:16 AM
use moibpocket to convert web pages? ignatz Kindle Formats 3 01-16-2010 12:52 AM
Web pages on the DR1000 allovertheglobe iRex 0 10-12-2008 04:40 PM
Web Pages andyafro Sony Reader 0 11-05-2007 10:57 AM
Web pages to Reader? Moadib Sony Reader 17 01-10-2007 12:46 PM


All times are GMT -4. The time now is 04:15 AM.


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