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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-30-2009, 02:00 PM   #31
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 601
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-505
That's extremely simple! Just create file epub/userStyle.css in reader's external memory and put these lines into it:
Code:
html, body, p { font-style: italic !important; }
If the hack works, all EPUBs should display with majority of their text in italics. Or you can use:
Code:
html, body, p { text-decoration: underline !important; }
and test for underline.
pepak is offline   Reply With Quote
Old 12-30-2009, 02:17 PM   #32
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Works. Nice. Will be integrated into PRS+ 1.0RC with the following path to the style:
/database/system/PRSPlus/epub/style.css
kartu is offline   Reply With Quote
Old 01-04-2010, 03:16 PM   #33
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
way to go pepak! im looking forward to trying this out



==
Update: works great!
This hack overrides the custom fonts in epub books converted by calibre (using this method http://www.mobileread.com/forums/showthread.php?t=36361 ) - a small price to pay.
I can also confirms this works with DRM epubs from the sony store.

I've added this code to my userStyle css to improve readability:


p {
line-height: 130%
}

div {
line-height: 130%
}


Worked fine

Last edited by gregcd; 01-05-2010 at 10:24 PM.
gregcd is offline   Reply With Quote
Old 01-07-2010, 07:48 PM   #34
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'm thinking about using the BookSwap autorun book-file manager as a tool for switching between css files on the fly - this would give the ability to change fonts and styles without connecting the reader to a pc. Unfortunately it can only move/copy files found and cached by the Reader UI. This would exclude css files.
gregcd is offline   Reply With Quote
Old 01-07-2010, 10:37 PM   #35
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: 37,706
Karma: 18475502
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Has this been integrated into PRSCustomizer?
JSWolf is online now   Reply With Quote
Old 01-08-2010, 12:50 AM   #36
sosuke
Member
sosuke began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Oct 2009
Device: PRS-505
Quote:
Originally Posted by JSWolf View Post
Has this been integrated into PRSCustomizer?
You can combine them yourself pretty easily. Just copy a few files. The instructions are in the readme file. I did it with the other font updater package (not PRSCustomizer) and it worked great.
sosuke is offline   Reply With Quote
Old 01-08-2010, 02:12 AM   #37
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Quote:
Originally Posted by gregcd View Post
I'm thinking about using the BookSwap autorun book-file manager as a tool for switching between css files on the fly - this would give the ability to change fonts and styles without connecting the reader to a pc. Unfortunately it can only move/copy files found and cached by the Reader UI. This would exclude css files.
File manager looks like the most wanted feature in upcoming PRS+ versions:
http://answers.polldaddy.com/poll/2460685/?view=results


BUT, changing the file "on the fly" (actually using PC) didn't (always?) work for me. Seemed like adobe reader is caching it. I had to reboot the reader for changes to take effect. Does it work other way for you?
kartu is offline   Reply With Quote
Old 01-10-2010, 08:23 PM   #38
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
Changes in the userstyle.css seem to apply for me ok with out having to restart.

Since its so easy to change the font, i thought id try out a chinese font - to my surprise it worked!



The font is cyberbit, it also contains hebrew, arabic, russian etc.

The epub was created by web2fb2.net
Attached Thumbnails
Click image for larger version

Name:	cn img-1111239-cn 0001.jpg
Views:	462
Size:	178.2 KB
ID:	43115  
gregcd is offline   Reply With Quote
Old 01-12-2010, 09:55 AM   #39
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Did anyone manage to "justify" text in epubs (so that sentences fill entire lines)? text-align: justify (or text-align: right) do not seem to work.
kartu is offline   Reply With Quote
Old 01-12-2010, 11:01 AM   #40
gwynevans
Wizard
gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.
 
gwynevans's Avatar
 
Posts: 1,343
Karma: 1065246
Join Date: Nov 2007
Location: UK
Device: Sony 505 (retired), iPad2, iPhone 3GS & Nexus 7 3G
Quote:
Originally Posted by kartu View Post
Did anyone manage to "justify" text in epubs (so that sentences fill entire lines)? text-align: justify (or text-align: right) do not seem to work.
No, the version of the Adobe 'display engine' in the PRS-505 doesn't support that - if I recall correctly, the version in the PRS-900 does support that, so there's a chance that there could be an update at some point to add it.

Having said that, there's no actual evidence to suggest that there's one being contemplated - at the moment, anyway.
gwynevans is offline   Reply With Quote
Old 01-12-2010, 11:04 AM   #41
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
Quote:
Originally Posted by kartu View Post
Did anyone manage to "justify" text in epubs (so that sentences fill entire lines)? text-align: justify (or text-align: right) do not seem to work.
The lack of justify support is a defect on all Sony devices except for the PRS-900.
wallcraft is offline   Reply With Quote
Old 01-12-2010, 11:21 AM   #42
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 601
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-505
Quote:
Originally Posted by kartu View Post
Did anyone manage to "justify" text in epubs (so that sentences fill entire lines)? text-align: justify (or text-align: right) do not seem to work.
I very much doubt that would be a matter of a simple hack.
pepak is offline   Reply With Quote
Old 01-13-2010, 02:30 PM   #43
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 had some problems with this code

p {font-size:110%}
div {font-size:110%}

- some books would ignore this code, so i switched to

p {font-size:24px}
div {font-size:24px}

Which works with all books.The interesting this about doing it this way, is it sets the absolute font size (excluding headings), irrespective of what it says in the epub. This saves me reconverting a lot of epubs

It even stays the same when the book is zoomed (S, M, L) on the reader, which is weird.
gregcd is offline   Reply With Quote
Old 01-27-2010, 11:01 PM   #44
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
Is there any code that will control the border width?

Maybe this will work

p
{
border-style:solid;
border-width:5px;
}
gregcd is offline   Reply With Quote
Old 01-28-2010, 12:34 AM   #45
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 601
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-505
ADE does support borders and the code you provide should work. Unfortunately, probably not in the way yhou want it - it would create borders around every paragraph, while I suspect you want borders around page. That is, to my knowledge, impossible, as there is no HTML object that represents page. You could make broders for body instead of p, which would make left and right borders on all pages, plus top border on page 1 and bottom border on page (last).
pepak 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
PRS-600 Replace DEFAULT epub fonts! (PRS-600) pepak Sony Reader 31 06-22-2010 11:34 AM
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 05:18 PM.


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