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, 03:55 PM   #1
richieadler
Fan of Sony readers
richieadler began at the beginning.
 
richieadler's Avatar
 
Posts: 8
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, 06: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: 7,514
Karma: 18512745
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 04:35 PM.
Jellby is offline   Reply With Quote
Advert
Old 08-30-2009, 12: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: 714
Karma: 2003751
Join Date: Oct 2008
Location: Ottawa, ON
Device: Kobo Glo HD
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, 04: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: 7,514
Karma: 18512745
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 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
Web2FB2 converts web pages to FB2 and EPUB files Xochipilli2012 Astak EZReader 6 03-17-2010 11:16 PM
use moibpocket to convert web pages? ignatz Kindle Formats 3 01-15-2010 11:52 PM
Web pages on the DR1000 allovertheglobe iRex 0 10-12-2008 03:40 PM
Web Pages andyafro Sony Reader 0 11-05-2007 09:57 AM
Web pages to Reader? Moadib Sony Reader 17 01-10-2007 11:46 AM


All times are GMT -4. The time now is 11:47 PM.


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