![]() |
#31 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
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; } Code:
html, body, p { text-decoration: underline !important; } |
![]() |
![]() |
![]() |
#32 |
PRS+ author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#33 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 https://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. |
![]() |
![]() |
![]() |
#34 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
![]() |
![]() |
![]() |
![]() |
#35 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Has this been integrated into PRSCustomizer?
|
![]() |
![]() |
![]() |
#36 |
Member
![]() Posts: 10
Karma: 10
Join Date: Oct 2009
Device: PRS-505
|
|
![]() |
![]() |
![]() |
#37 | |
PRS+ author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
Quote:
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? |
|
![]() |
![]() |
![]() |
#38 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#39 |
PRS+ author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#40 | |
Wizzard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,402
Karma: 2000000
Join Date: Nov 2007
Location: UK
Device: iPad 2, iPhone 6s, Kindle Voyage & Kindle PaperWhite
|
Quote:
Having said that, there's no actual evidence to suggest that there's one being contemplated - at the moment, anyway. |
|
![]() |
![]() |
![]() |
#41 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
|
![]() |
![]() |
![]() |
#42 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
|
![]() |
![]() |
![]() |
#43 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#44 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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; } |
![]() |
![]() |
![]() |
#45 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
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).
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |