08-29-2009, 03:55 PM | #1 |
Fan of Sony readers
Posts: 8
Karma: 10
Join Date: Aug 2009
Location: Argentina
Device: Sony PRS-T2; Sony PRS-505
|
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?
|
08-30-2009, 12:08 PM | #3 |
Guru
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. |
08-30-2009, 04:38 PM | #4 |
frumious Bandersnatch
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".
|
Thread Tools | Search this Thread |
|
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 |