09-15-2009, 08:04 AM | #1 |
Wizard
Posts: 1,731
Karma: 17486146
Join Date: Sep 2008
Device: Kobo Clara 2E
|
User stylesheets for ePub files
In the thread "Changing paragraph spacing in DRMed epub?", Who are you? discusses a way to specify user stylesheets for epub files on the Sony eBook Library software, and suggests that there's a way to supply a stylesheet for the Reader device as well.
Since I have no experience with hacking the device, is anyone interested in testing this, and maybe writing a Linux-friendly HOWTO? |
09-15-2009, 04:53 PM | #2 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
i'd like to know this as well.
|
Advert | |
|
09-17-2009, 01:02 PM | #3 |
calibre2opds guru
Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
|
May be great to have igorsk support here...
Are you listening, ô great guru of all firmwares ? |
09-17-2009, 05:06 PM | #4 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Shouldn't be hard to test with the run script feature. And don't look at me.
|
09-17-2009, 10:06 PM | #5 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
|
Advert | |
|
09-18-2009, 05:41 AM | #6 |
calibre2opds guru
Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
|
I tried and spent a few hours yesterday evening playing with the FontMapper script but to no joy...
Basically this script mounts (using the mount --bind Linux-specific option which allows mounting into existing file systems) a user-writable FONT folder in lieu of (yet another frenchism ) the /opt/sony/application/FONT folder. The goal is to use the font files stored in this user-writable folder to change the LRF fonts more easily than by flashing. I tried mounting a user-writable adobe folder into /opt/sony/application, but it didn't work. I guessed that the target folder had to exist, so I tried creating it, but it didn't work either (maybe this is a read-only space ? because it's in the firmware ?). Then, I issued a cp -R command to copy all the files in the /opt/sony/application to the user-writable space, added a adobe folder to this copy, and tried mount --bind to mount it in /opt/sony/application ; I thought that it would work, but it didn't... I think that my basic idea is not bad, but I need help from people who know more than me the PRS filesystem and limitations ; yes this means you, Igorsk Also, maybe alanine could help us too, he was the nice guy who wrote the FontMapper script... At least I tried ! David. PS : I take this opportunity to post a text file containing the result of a ls -laR command into the Sony Reader, it is interesting, IMHO |
09-18-2009, 07:07 AM | #7 |
Feedbooks.com Co-Founder
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
|
Peter Sorotkin recently said that the Adobe SDK supports user stylesheets.
I'm worried about something though and I've submitted an issue to the maintenance group for EPUB: http://daisy.org/epub/issues/overriding-css |
02-20-2010, 07:46 AM | #8 |
Wizard
Posts: 1,731
Karma: 17486146
Join Date: Sep 2008
Device: Kobo Clara 2E
|
Here's a thread with a user stylesheet hack: Replace DEFAULT epub fonts! (PRS-505)
|
02-20-2010, 08:27 AM | #9 | |
Resident Curmudgeon
Posts: 76,494
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
02-20-2010, 09:16 AM | #10 |
calibre2opds guru
Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
|
Or, to put it more precisely, every setting you specify in your user stylesheet overrides the setting that may have been specified in the ePub stylesheet.
The difference with what you said (or what I understood, at least), is that if you only specify a font family in your user stylesheet, the settings in the ePub stylesheet specifying the margin, line height, and other stuff will not be overridden... Just my two cents |
02-20-2010, 09:21 AM | #11 | |
Resident Curmudgeon
Posts: 76,494
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
02-23-2010, 05:12 AM | #12 |
PRS+ author
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
JSWolf
I think it's better that ADE works the way it does, otherwise we wouldn't be able override embedded fonts/styles. I'll add option to enable/disable (or maybe even cycle through all css files) custom css (just by renaming css files) to PRS+. This would solve the problem with embedded fonts. |
02-23-2010, 08:44 AM | #13 | |
Connoisseur
Posts: 83
Karma: 46
Join Date: May 2009
Device: Sony prs-505
|
Quote:
Kartu, you deserve a donate button, get on it! |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom CSS Stylesheets for Calibre's Viewer | Ralob | Viewer | 386 | 10-01-2024 09:51 AM |
Classic New Nook User -- Questions about epub books and pdf files | Russny | Barnes & Noble NOOK | 6 | 08-09-2010 11:44 PM |
Txt files - Convert to Epub - Multiple files into one book - noob help | Cernan | Calibre | 6 | 05-18-2010 11:12 AM |