Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > PocketBook

Notices

Reply
 
Thread Tools Search this Thread
Old 12-23-2009, 08:22 PM   #1
tselling
Addict
tselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enough
 
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.
tselling is offline   Reply With Quote
Old 12-24-2009, 06:06 AM   #2
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,979
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3 and Fire
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.
wallcraft is offline   Reply With Quote
 
Enthusiast
Old 12-24-2009, 09:41 AM   #3
SciFiFan
Connoisseur
SciFiFan once ate a cherry pie in a record 7 seconds.SciFiFan once ate a cherry pie in a record 7 seconds.SciFiFan once ate a cherry pie in a record 7 seconds.SciFiFan once ate a cherry pie in a record 7 seconds.SciFiFan once ate a cherry pie in a record 7 seconds.SciFiFan once ate a cherry pie in a record 7 seconds.SciFiFan once ate a cherry pie in a record 7 seconds.SciFiFan once ate a cherry pie in a record 7 seconds.SciFiFan once ate a cherry pie in a record 7 seconds.SciFiFan once ate a cherry pie in a record 7 seconds.SciFiFan once ate a cherry pie in a record 7 seconds.
 
SciFiFan's Avatar
 
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.
SciFiFan is offline   Reply With Quote
Old 12-27-2009, 03:57 AM   #4
mtravellerh
book creator
mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.
 
mtravellerh's Avatar
 
Posts: 9,613
Karma: 1620342
Join Date: Oct 2008
Location: Luxembourg
Device: PB360°
Quote:
Originally Posted by wallcraft View Post
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.
I took the freedom to take your idea and submit to the PocketBook guys! They working on it right now!
mtravellerh is offline   Reply With Quote
Old 05-10-2010, 02:44 PM   #5
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,789
Karma: 3973173
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"
Quote:
Originally Posted by wallcraft View Post
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.
Hello all,
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.
  1. Copy the 4 files from the Georgia font-family (reg, italic, bold, bolditalic)
    Code:
    georgia.ttf
    georgiai.ttf
    georgiab.ttf
    georgiaz.ttf
    to the PB360 directory [Letter]:\system\fonts\
    whilst it is connected to the PC. This is just the same as you would do if you wanted to use Georgia in fbreader.
  2. Convert your file to epub in Calibre, placing the following CSS code in the "Extra CSS" box in the [Convert] - [Look & Feel] section

    Code:
    @font-face	{ font-family: serif;	font-weight: normal;	font-style: normal;	src: url(res:///mnt/ext1/system/fonts/georgia.ttf);}
    @font-face	{ font-family: serif;	font-weight: normal;	font-style: italic;	src: url(res:///mnt/ext1/system/fonts/georgiai.ttf);}
    @font-face	{ font-family: serif;	font-weight: bold;	font-style: normal;	src: url(res:///mnt/ext1/system/fonts/georgiab.ttf);}
    @font-face	{ font-family: serif;	font-weight: bold;	font-style: italic;	src: url(res:///mnt/ext1/system/fonts/georgiaz.ttf);}
    
    body 		{font-family: serif; line-height:100%}
  3. If you don't like the line-spacing, adjust the
    line-height:100%
    parameter. Try 110% or 90% if you want it wider or narrower respectively.

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.
jackie_w is offline   Reply With Quote
Old 05-10-2010, 06:35 PM   #6
fjtorres
Grand Sorcerer
fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.
 
Posts: 7,567
Karma: 59065065
Join Date: May 2009
Location: 26 kly from Sgr A*
Device: PRS-T1, KT, PB701/IQ, K2, PB360, BeBook One, Axim51v, TC1000
Quote:
Originally Posted by jackie_w View Post
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.
I'm not a fan of editing an epub to do what the reader software should let you do in the first place, but I can see a use for this trick (once or twice).

Question: can this approach be used to control margins as well as the base font face?
fjtorres is offline   Reply With Quote
Old 05-10-2010, 09:22 PM   #7
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,789
Karma: 3973173
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"
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
jackie_w is offline   Reply With Quote
Old 05-17-2010, 04:54 PM   #8
tselling
Addict
tselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enough
 
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.
tselling is offline   Reply With Quote
Old 05-19-2010, 05:07 PM   #9
tselling
Addict
tselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enough
 
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.
tselling is offline   Reply With Quote
Old 05-19-2010, 08:02 PM   #10
Logseman
じゃんぬねっ
Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.
 
Logseman's Avatar
 
Posts: 1,939
Karma: 1027561
Join Date: Feb 2010
Location: Tenerife
Device: bq Cervantes Touch Light
Quote:
Originally Posted by tselling
I just got tired of waiting for someone else to do it :-)
This is what makes this forum different from every other in which I have been. If there is a problem, people are actually able to hack their way through it.
Logseman 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
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


All times are GMT -4. The time now is 07:01 PM.


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