Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-08-2010, 08:24 AM   #61
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Do you have the page number on the right side of the screen for ePub? Is justification respected in the CSS? Does it have hyphenation?
JSWolf is offline   Reply With Quote
Old 08-09-2010, 09:44 PM   #62
gregcd
Connoisseur
gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!gregcd rocks like Gibraltar!
 
gregcd's Avatar
 
Posts: 90
Karma: 100000
Join Date: Jan 2009
Location: New Zealand
Device: prs-t1, prs-650 to sell
I've tried the software from http://www.ebookapplications.com/ for my 505; it's pretty neat (fully justified epubs, etc). I think it's off topic for this thread though
gregcd is offline   Reply With Quote
Advert
Old 09-13-2010, 12:12 PM   #63
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,176
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
Quote:
Originally Posted by ShellShock View Post
I have figured out that how to replace the default epub fonts for the Sony Reader Library too, which means that we can view epubs in the Reader Library exactly as they will appear on the PRS-505, which makes formatting and editing easier, as you can easily see what the end result will look like without having to copy the epub over to the device. This is really just an extension of pepak's hack for the device (but without the hacking), so all credit to him for that.

I have only tested this on Windows.

Go to the location where the Reader Library is installed, e.g.,
C:\Program Files\Sony\Reader or C:\Program Files (x86)\Sony\Reader.

In the Data\bin directory create an adobe\pxf directory, so that you have a
C:\Program Files\Sony\Reader\Data\bin\adobe\pxf directory. Copy your userStyle.css into it. It should be the same userStyle.css that you are using on the PRS-505.

The adobe\pxf directory is the directory that the epub renderer (C:\Program Files\Sony\Reader\Data\bin\FskDocumentViewerAdobe. dll) is hard coded to read for the userStyle.css file. Unlike on the device, on Windows we have access to the adobe\pxf directory, which equates to C:\Program Files\Sony\Reader\Data\bin\adobe\pxf, so there is no need for any hacking of binaries.

Now place your fonts in C:\Program Files\Sony\Reader\Data\bin\Data\fonts. Use this location rather than C:\Program Files\Sony\Reader\Data\fonts because then you can use the same userStyle.css file on both the device and Windows. In the userStyle.css, url(res:///Data/fonts/fontfilename) equates to C:\Program Files\Sony\Reader\Data\bin\Data\fonts\fontfilename in Windows, and /fonts/fontfilename on the device.

Now when you open an epub in Reader Library, it should display using the fonts you have specified in your userStyle.css; if you use the same userStyle.css and fonts on the PRS-505, you should get exactly the same view.
This no longer works with the latest Sony Reader Library 3.3.00.07130. I can see that the location of the userStyle.css in FskDocumentViewerAdobe.dll has been changed to res:///userStyle.cs, which on my O/S equates to C:\Program Files (x86)\Sony\Reader\Data\bin (the same directory as FskDocumentViewerAdobe.dll). However, if I put userStyle.css in there it has no effect. Using Process Monitor, I can't see that the Reader Library.exe ever tries to load userStyle.css. It is almost as though this "feature" has been disabled by Adobe.
ShellShock is offline   Reply With Quote
Old 09-13-2010, 11:56 PM   #64
yekim54
What the Dog Saw
yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.
 
yekim54's Avatar
 
Posts: 311
Karma: 981684
Join Date: Jul 2008
Location: Dunn Loring
Device: Sony PRS-650, Surface3
Quote:
Originally Posted by ShellShock View Post
This no longer works with the latest Sony Reader Library 3.3.00.07130. I can see that the location of the userStyle.css in FskDocumentViewerAdobe.dll has been changed to res:///userStyle.cs, which on my O/S equates to C:\Program Files (x86)\Sony\Reader\Data\bin (the same directory as FskDocumentViewerAdobe.dll). However, if I put userStyle.css in there it has no effect. Using Process Monitor, I can't see that the Reader Library.exe ever tries to load userStyle.css. It is almost as though this "feature" has been disabled by Adobe.
I noticed the same thing. Thanks for confirming it for me:
https://www.mobileread.com/forums/sho...8&postcount=15

To get around the problem, I replaced the file FskDocumentViewerAdobe.dll with the one from Sony Reader Library 3.2 and everything seems to work OK including external fonts.
yekim54 is offline   Reply With Quote
Old 09-14-2010, 08:33 AM   #65
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,176
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
Quote:
Originally Posted by yekim54 View Post
I noticed the same thing. Thanks for confirming it for me:
https://www.mobileread.com/forums/sho...8&postcount=15

To get around the problem, I replaced the file FskDocumentViewerAdobe.dll with the one from Sony Reader Library 3.2 and everything seems to work OK including external fonts.
Cool that will work. But I don't think I have 3.2 anymore. Do you know if it is possible to still download it? Or could you send the old FskDocumentViewerAdobe.dll to me?

I wonder if the new devices (e.g., 650) will have a similar problem? That is, no easy way to override the default userStyle.css. It will a pity if that is the case; I would have to resort to putting my preferred font into each epub (which is a bit of a hassle and uses more disk space).

Do we even know if the firmware flasher works with the new devices?
ShellShock is offline   Reply With Quote
Advert
Old 09-14-2010, 02:22 PM   #66
yekim54
What the Dog Saw
yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.
 
yekim54's Avatar
 
Posts: 311
Karma: 981684
Join Date: Jul 2008
Location: Dunn Loring
Device: Sony PRS-650, Surface3
Quote:
Originally Posted by ShellShock View Post
Cool that will work. But I don't think I have 3.2 anymore. Do you know if it is possible to still download it? Or could you send the old FskDocumentViewerAdobe.dll to me?

I wonder if the new devices (e.g., 650) will have a similar problem? That is, no easy way to override the default userStyle.css. It will a pity if that is the case; I would have to resort to putting my preferred font into each epub (which is a bit of a hassle and uses more disk space).

Do we even know if the firmware flasher works with the new devices?
Check your PM.

I'm also curious as to whether the new 350, 650, and 950 have the capability to use external fonts and userStyle.css.
yekim54 is offline   Reply With Quote
Old 09-14-2010, 05:44 PM   #67
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,176
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
Quote:
Originally Posted by yekim54 View Post
Check your PM.

I'm also curious as to whether the new 350, 650, and 950 have the capability to use external fonts and userStyle.css.
Thanks--it works a treat.

Have some karma...
ShellShock is offline   Reply With Quote
Old 09-14-2010, 08:57 PM   #68
yekim54
What the Dog Saw
yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.
 
yekim54's Avatar
 
Posts: 311
Karma: 981684
Join Date: Jul 2008
Location: Dunn Loring
Device: Sony PRS-650, Surface3
Quote:
Originally Posted by ShellShock View Post
I wonder if the new devices (e.g., 650) will have a similar problem? That is, no easy way to override the default userStyle.css. It will a pity if that is the case; I would have to resort to putting my preferred font into each epub (which is a bit of a hassle and uses more disk space).
According to jswinden, external fonts work OK on his 350:

https://www.mobileread.com/forums/showthread.php?t=98618
yekim54 is offline   Reply With Quote
Old 09-15-2010, 03:14 AM   #69
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,176
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
Quote:
Originally Posted by yekim54 View Post
According to jswinden, external fonts work OK on his 350:

https://www.mobileread.com/forums/showthread.php?t=98618
I never thought of doing it this way! Obvious really. We still need to edit each epub, but we don't need to actually embed the fonts into each epub--the css can refer to them in the default, external location.

It would be nice though if the new devices had a default css that we could edit, so we would not have to edit the epub at all.
ShellShock is offline   Reply With Quote
Old 09-15-2010, 08:02 AM   #70
jackie_w
Grand Sorcerer
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: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by ShellShock View Post
It would be nice though if the new devices had a default css that we could edit, so we would not have to edit the epub at all.
If you create your epub with Calibre you don't need to edit the epub at all. You create the links to the external fonts as part of the convert-to-epub process using the 'Extra CSS' feature.
jackie_w is offline   Reply With Quote
Old 01-22-2011, 07:20 PM   #71
marekk
Junior Member
marekk began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2011
Device: prs-505, iPad
I've only just registered to say THANK YOU to pepak - you made my prs-505 usable again! Great work!
marekk is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-600 Replace DEFAULT epub fonts! (PRS-600) pepak Sony Reader 33 08-04-2023 02:31 PM
New PRS-505 owner seeking help: default font size philma292 Sony Reader Dev Corner 2 02-14-2010 04:06 AM
Sony PRS-505 default fonts berrani Calibre 6 04-05-2009 05:59 PM
Fonts for PRS 505 levi_john Sony Reader 1 01-22-2009 08:24 AM
PRS-505 fonts. Bokkie Sony Reader 8 10-18-2008 09:17 AM


All times are GMT -4. The time now is 12:58 AM.


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