12-23-2009, 08:22 PM | #1 |
Addict
Posts: 366
Karma: 510
Join Date: Apr 2008
Device: NookColor (MiRage/CM7.2 & Moon+ Reader Pro)
|
HACKED AdobeViewer.app with user accessable userStyle.css
I have noticed on the Sony 505 forum that someone has hacked Adobe DE to point to a user accessable location for userStyle.css where one can change the default font and other style things. Would it be possible to get this feature on the pocketbook 360? From what I see the default location on the sony is res:///adobe/pxf/userStyle.css.
Not sure where it is on the pocketbook 360 but if we could make our own userStyle.css we could customize how DRM'd EPUBs look (especially replacing the default font). Last edited by tselling; 05-19-2010 at 05:18 PM. |
12-24-2009, 06:06 AM | #2 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
I made a similar request (with more detail) in Needed: Customization for ePub, which is for the EZ Reader (Hanlin) but is equally applicable to any implementation of mobile ADE
Some implementations (Sony, Jinke, Bookeen) already have a way to access user-provided fonts in ePubs, see for example Fonts and Epub - What works on Sony, Works for Pocket Pro too!. This is a standard feature of mobile ADE, but the fonts need to be in a particular location (i.e. in a particular folder) - and this location varies between devices. This capability is required in addition to a user-provided userStyle.css in order to have user-selectable default fonts. |
Advert | |
|
12-24-2009, 09:41 AM | #3 |
Connoisseur
Posts: 72
Karma: 1785
Join Date: Oct 2009
Location: Switzerland
Device: PocketBook 360° (silbrig-weiss)
|
The same feature has been requested in the German PocketBook forum. German PocketBook importer and forum user Forkosigan has already forwarded the request to the PocketBook makers, so there is some hope that it will be implemented.
|
12-27-2009, 03:57 AM | #4 | |
book creator
Posts: 9,656
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: Kindle Scribe
|
Quote:
|
|
05-10-2010, 02:44 PM | #5 | |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
I am a new PocketBook 360 owner who has been using a Sony PRS505 and Calibre for about a year. I like my new "small object of desire" very much. Having played with it for a few days I am confident that with fbreader180 it will allow a better reading experience with some of my "lesser-styled" books (TXT, plain HTML, RTF) without spending a lot of time editing beforehand. However, to get to the point of my post, much as I love the excellent fbreader180, I am having difficulty weaning myself off the AdobeViewer for epubs which contain lots of CSS styling (poetry, epigraphs, centre-/right-align, blockquotes, SmallCaps, variety of font-size and/or font-faces, combination of serif, sans-serif, monospace etc) within the same epub. I also missed my Sony's ability to render epubs in the font(s) of my choice, by either of two methods. As mentioned earlier in this thread, there is a way to do this for epubs in AdobeViewer on the PB360 using some simple "Extra CSS" when converting to epub in Calibre. For anyone who would like the details of how to do this, read on. I have used the Georgia serif font as an example as the .ttf files are easily available on all Windows PCs in c:\windows\fonts.
That's all there is to it. The epub should then look just as good as it would have done on the Sony. Better, in fact, if you like your body text to be full-justified left and right. If it doesn't work re-check the Extra CSS. The font file names/locations are case-sensitive. You can use the same principle to customise your epub sans-serif and/or monopace and/or SmallCaps fonts. If anyone would like to see examples of these just ask. |
|
Advert | |
|
05-10-2010, 06:35 PM | #6 | |
Grand Sorcerer
Posts: 11,732
Karma: 128354696
Join Date: May 2009
Location: 26 kly from Sgr A*
Device: T100TA,PW2,PRS-T1,KT,FireHD 8.9,K2, PB360,BeBook One,Axim51v,TC1000
|
Quote:
Question: can this approach be used to control margins as well as the base font face? |
|
05-10-2010, 09:22 PM | #7 |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Hi fjtorres,
It's not really an edit of the epub. It's more a case of setting some personal preferences at the time of creation. Admittedly, it's not as good as being able to change them at will during reading. (This method isn't really necessary anymore on a Sony PRS505 since the excellent hack development of PRSPlus) Re: margins. I think the usual way to control margins during a Calibre conversion would be on the [Convert] - [Page Setup] page where you specify top, bottom, left, right explicitly. Calibre's Extra CSS facility is very powerful though. You can add pretty much any CSS you like. I often use it to control the space between paragraphs by adding p, div, li {margin-top:0.25em; margin-bottom:0.25em;} I know this is something else you can do on-the-fly in fbreader |
05-17-2010, 04:54 PM | #8 |
Addict
Posts: 366
Karma: 510
Join Date: Apr 2008
Device: NookColor (MiRage/CM7.2 & Moon+ Reader Pro)
|
Has there been any progress on having an accessible userstyle.css for AdobeViewer? I would rather not remove the DRM from library ebooks to reformat them, but some EPUB ebooks have small fonts and huge margins... and the margins get gigantic when I increase the fontsize. My hacked PRS-300, while a much less capable ebook reader, does a much better job with library books since I can modify the userstyle.css file.
|
05-19-2010, 05:07 PM | #9 |
Addict
Posts: 366
Karma: 510
Join Date: Apr 2008
Device: NookColor (MiRage/CM7.2 & Moon+ Reader Pro)
|
HACKED AdobeViewer.app with user accessible userstyle.css
I created a new thread for this.... since I made a hacked version of the AdobeViewer.app available that does this. I just got tired of waiting for someone else to do it :-)
Last edited by tselling; 05-19-2010 at 06:32 PM. |
05-19-2010, 08:02 PM | #10 | |
Orisa
Posts: 2,000
Karma: 1035571
Join Date: Feb 2010
Location: Ireland
Device: Onyx Poke 5
|
Quote:
|
|
02-24-2022, 12:03 AM | #11 | |
Wizard
Posts: 1,163
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Hi,
I'm using Pocketbook HD2 and I'm trying to reference a font installed on my device in my css file. However, it's not quite working. Here is what I'm using. Quote:
I'm afraid that maybe ///mnt/ext1/system/fonts is no longer a valid path to the fonts file. Or maybe I should add the fonts to my SD card instead? However, I'm not sure how to find the valid path to that directory either. I'd appreciate any and all help. Thanks, Amalthia |
|
02-24-2022, 11:19 AM | #12 |
Wizard
Posts: 3,007
Karma: 18401861
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Assuming that you are using the built-in reader program, do the Georgia fonts show up if you go into the settings and try to choose a new font? If so, then that path is still good for adding fonts to. I expect it to still be good, since PocketBook have been keeping stuff like that backwards compatible so far.
|
02-25-2022, 12:17 AM | #13 | |
Wizard
Posts: 1,163
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Quote:
I mean I can embed the font and that works, but I know with Sony PRS device I was able to tell the css file which font to use. So often I had a different header font vs paragraph fonts. Thanks, Amalthia |
|
02-25-2022, 11:48 AM | #14 |
Wizard
Posts: 3,007
Karma: 18401861
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
At least you know that you put the font files into the correct directory, and that the path in the urls to the font directory is correct. So the problem is with some other part of your CSS. Unfortunately, I don't know much about CSS, so someone else will have to spot the problem.
|
02-25-2022, 05:27 PM | #15 | |
Wizard
Posts: 1,163
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
userstyle.css and epub margins | tselling | Sony Reader Dev Corner | 8 | 10-28-2010 01:51 PM |
ADE mit userstyle css | mtravellerh | PocketBook | 0 | 05-21-2010 03:40 PM |
Hi New IPAd user and forum user | BrendaB6 | Introduce Yourself | 4 | 05-21-2010 01:36 PM |
help with css | bobcdy | ePub | 2 | 02-13-2010 11:59 AM |
Help with CSS, anyone? | rogue_ronin | Workshop | 36 | 08-14-2009 09:28 PM |