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 11-04-2010, 09:42 AM   #61
chris_tribble
Enthusiast
chris_tribble began at the beginning.
 
Posts: 31
Karma: 20
Join Date: Oct 2010
Location: London, UK
Device: Sony PRS-650
Hey - some success! I've been able to get Droid working following Sherman's kind advice. Hooray!

Now I'd like to see if it's possible to a) try this with other fonts + see if it's possible to shift the base font size to something a little bigger so that I can use the Sony SMALL option as the default (rather than Medium) at the moment, with Droid, Medium's a bit big and Small's a bit small...

For the reference of others I give below the full userStyle.css that I'm now using. I'm thinking that there must be a command that I could put in the final "body" command alongside the line-height: 1.2em but I've got no idea about the command language.

In terms of a reference to start building my own ability to do this, will guides for Dreamweaver CSS codes help?

Thanks again to the community - I appreciate the effort that's gone into all this

=========

@font-face {
font-family: DroidSerif;
font-weight: normal;
font-style: normal;
src: url(res:///Data/epub/FONT/droid/DroidSerif-Regular.ttf);
}

@font-face {
font-family: DroidSerif;
font-weight: bold;
font-style: normal;
src: url(res:///Data/epub/FONT/droid/DroidSerif-Bold.ttf);
}

@font-face {
font-family: DroidSerif;
font-weight: normal;
font-style: italic;
src: url(res:///Data/epub/FONT/droid/DroidSerif-Italic.ttf);
}

@font-face {
font-family: DroidSerif;
font-weight: bold;
font-style: italic;
src: url(res:///Data/epub/FONT/droid/DroidSerif-BoldItalic.ttf);
}

@font-face {
font-family: "sans-serif1";
src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf);
}

h1 {
font-family: sans-serif1, sans-serif;
}
body {
font-family: DroidSerif; line-height: 1.2em
}
chris_tribble is offline   Reply With Quote
Old 11-04-2010, 11:31 AM   #62
Mark Nord
2B || !2B
Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.
 
Posts: 851
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Quote:
Originally Posted by chris_tribble View Post
The next question is going to be how to re-set time zone etc when travelling. At the moment the Reader gives me the correct UK local time (picking this up from the computer?). But I'd have no idea of how to change if this was needed.
I could simply say RTFM!
But I suggest you have a look on pages 88ff of the PRS650.PDF manual, how to set Date and Time, even with a not russified firmware.
Spoiler:

Settings
88
Table of Contents Index
Changing Settings
Tap [Settings] tab at [Home] menu.
[General Settings] ( 90)
[Date and Time]
[Date and Time Format]
[Page Turn Preference]
[Menu Language]
[Keyboard]
[Screen Orientation]
[Application Preferences] (> 91)
[Dictionary]
[Slideshow]
[System Management] (> 92)
[Power Management]
[Device Lock]
[Standby Screen]
[General Settings] menu items
[Date and Time]
Tap a field to change.
Input a number by tapping the numeric key pad.
Tap [OK] to apply the change.
Tip
The date and time of your Reader will be automatically
synchronized to your computer by the Reader Library after
connection.
[Date and Time Format]
Tap [Month-Day-Year] or [Day-Month-Year] to select
the date format.
Tap [12 hour] or [24 hour] to select the time format.
Tap [OK] to apply the changes

For the hacks just go to the about screen and use the buttons, the options should just toggle thru.
Attached Thumbnails
Click image for larger version

Name:	Bild1.jpg
Views:	598
Size:	71.5 KB
ID:	60633  

Last edited by Mark Nord; 11-04-2010 at 11:57 AM. Reason: Added Picture
Mark Nord is offline   Reply With Quote
Advert
Old 11-04-2010, 01:24 PM   #63
chris_tribble
Enthusiast
chris_tribble began at the beginning.
 
Posts: 31
Karma: 20
Join Date: Oct 2010
Location: London, UK
Device: Sony PRS-650
Quote:
Originally Posted by Mark Nord View Post
I could simply say RTFM!
And you'd be completely justified

It's all down to expectations I think - when I tapped on the setting buttons all I noticed was the screen flashing as I wasn't expecting the settings themselves to toggle through. Thanks for the heads up!

Still working out the font side of things - Trying to see how to improve word spacing with Droid Serif at the moment - really ugly as I've currently got it, so I've gone back to the Sony font .

I'll keep on hunting through the manual / FAQs etc - but hope it's ok to come back and ask questions too - maybe my newbie Odyssey will be helpful for others who are only just starting to climb this particular learning curve.

Best

Chris
chris_tribble is offline   Reply With Quote
Old 11-04-2010, 04:07 PM   #64
chris_tribble
Enthusiast
chris_tribble began at the beginning.
 
Posts: 31
Karma: 20
Join Date: Oct 2010
Location: London, UK
Device: Sony PRS-650
Success! Now using Adobe Garamond Pro successfully.

The final userStyle.css that I'm working with is given below.

With an M setting in the PRS-650 this gives me a page that I feel really comfortable with (though I liked Calibri too). As I've saved the alternative versions of the userStyle.css with meaningful names it will be OK to adjust these for a change.

THANKS ladies and gentlemen!

Chris

@font-face {
font-family: adobegaramondpro;
font-weight: normal;
font-style: normal;
src: url(res:///Data/epub/FONT/adobegaramondpro/AGaramondPro-Regular.otf);
}

@font-face {
font-family: adobegaramondpro;
font-weight: bold;
font-style: normal;
src: url(res:///Data/epub/FONT/adobegaramondpro/AGaramondPro-Bold.otf);
}

@font-face {
font-family: adobegaramondpro;
font-weight: normal;
font-style: italic;
src: url(res:///Data/epub/FONT/adobegaramondpro/AGaramondPro-Italic.otf);
}

@font-face {
font-family: adobegaramondpro;
font-weight: bold;
font-style: italic;
src: url(res:///Data/epub/FONT/adobegaramondpro/AGaramondPro-BoldItalic.otf);
}

@font-face {
font-family: "sans-serif1";
src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf);
}

h1 {
font-family: sans-serif1, sans-serif;
}
body {
font-family: adobegaramondpro; line-height: 1.2em
}
chris_tribble is offline   Reply With Quote
Old 11-04-2010, 04:43 PM   #65
elemenoP
Wizard
elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.
 
Posts: 1,717
Karma: 3790058
Join Date: Oct 2010
Location: NYC
Device: Kindle Paperwhite, Sony 650
I have been following this thread (very interested but too chicken to do it myself) and I was *just* going to suggest a font actually used in professional publishing, such as Minion, Palatino, or Garamond! I'd love to see a screen shot of a page with Garamond in place.

Once you have done the "flash" you don't have to do it again? It always refers to the latest version of userstyle.css? Or do you have to flash the firmware every time you change fonts?
elemenoP is offline   Reply With Quote
Advert
Old 11-04-2010, 04:58 PM   #66
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 856
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Hmm, my mistake, I used serif1 as the name, not DroidSerif, although it shouldn't have made amy difference.

But anyway, here's my stylesheet:
Code:
@font-face {
  font-family: serif1;
  font-weight: normal;
  font-style: normal;
  src: url(res:///Data/epub/FONT/droid/DroidSerif-Regular.ttf);
}

@font-face {
  font-family: serif1;
  font-weight: bold;
  font-style: normal;
  src: url(res:///Data/epub/FONT/droid/DroidSerif-Bold.ttf);
}

@font-face {
  font-family: serif1;
  font-weight: normal;
  font-style: italic;
  src: url(res:///Data/epub/FONT/droid/DroidSerif-Italic.ttf);
}

@font-face {
  font-family: serif1;
  font-weight: bold;
  font-style: italic;
  src: url(res:///Data/epub/FONT/droid/DroidSerif-BoldItalic.ttf);
}

@font-face {
  font-family: "sans-serif1";
  src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf);
}

body {
  font-family: serif1;
  line-height: 1.2em;
}
h1 {
  font-family: sans-serif1, sans-serif;
}
sherman is offline   Reply With Quote
Old 11-04-2010, 08:39 PM   #67
induna
Addict
induna ought to be getting tired of karma fortunes by now.induna ought to be getting tired of karma fortunes by now.induna ought to be getting tired of karma fortunes by now.induna ought to be getting tired of karma fortunes by now.induna ought to be getting tired of karma fortunes by now.induna ought to be getting tired of karma fortunes by now.induna ought to be getting tired of karma fortunes by now.induna ought to be getting tired of karma fortunes by now.induna ought to be getting tired of karma fortunes by now.induna ought to be getting tired of karma fortunes by now.induna ought to be getting tired of karma fortunes by now.
 
Posts: 230
Karma: 1500000
Join Date: May 2007
Location: San Vito de Coto Brus, Costa Rica
Device: Sony PRS-500, 505, 600, 350, T1 Amazon Kindle PW1, PW2, Voyage
My userstyle.css is as follows:

@font-face {
font-family: -ua-default;
font-weight: normal;
font-style: normal;
src: url(res:///Data/epub/FONT/cambria/cambria.ttf);
}

@font-face {
font-family: -ua-default;
font-weight: bold;
font-style: normal;
src: url(res:///Data/epub/FONT/cambria/cambriab.ttf);
}

@font-face {
font-family: -ua-default;
font-weight: normal;
font-style: italic;
src: url(res:///Data/epub/FONT/cambria/cambriai.ttf);
}

@font-face {
font-family: -ua-default;
font-weight: bold;
font-style: italic;
src: url(res:///Data/epub/FONT/cambria/cambriaz.ttf);
}

@font-face {
font-family: "sans-serif1";
src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf);
}

h1 {
font-family: sans-serif1, sans-serif;
}


It works perfectly.

If there are any mistakes in the file, the reader will use the default font.
induna is offline   Reply With Quote
Old 11-04-2010, 09:23 PM   #68
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 856
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
@chris_tribble

I used line-height: 1.2em because Droid is a very tall font, and that gives a bit of separation between lines.

You can use any value you like (and it doesn't even have to be in em -- % is another good metric to use here). A line-height of 1em would be "single spacing", and is the default. A line-height of 2em would be "double spacing" (or close to it) etc.

To add extra spacing between characters, you may like to add letter-spacing: <value>, where value can be given in em, points (pt), pixels (px) etc.

Feel free to experiment...
sherman is offline   Reply With Quote
Old 11-04-2010, 09:53 PM   #69
SmartyPants
Zealot
SmartyPants began at the beginning.
 
SmartyPants's Avatar
 
Posts: 119
Karma: 46
Join Date: Jan 2010
Device: Kindle PW
guys have you tried changing default font size in Calibre?
Thats supposed to be the easier way..
when converting books, go to 'Look and Feel' tab and change the size there.
CSS can be tweaked with as well on this page.
I am still playing with it, some books i managed to change the font on, some not.
SmartyPants is offline   Reply With Quote
Old 11-05-2010, 04:30 AM   #70
chris_tribble
Enthusiast
chris_tribble began at the beginning.
 
Posts: 31
Karma: 20
Join Date: Oct 2010
Location: London, UK
Device: Sony PRS-650
Quote:
Originally Posted by elemenoP View Post
I have been following this thread (very interested but too chicken to do it myself) and I was *just* going to suggest a font actually used in professional publishing, such as Minion, Palatino, or Garamond! I'd love to see a screen shot of a page with Garamond in place.
Hi - below is a screenshot with AdobeGaramondPro (I think this font comes with the Adobe Creative Suite 5) I'm very happy with it. Font size set to M. PS Just added a shot of Palatino (in different light conditions + slightly different proximity to camera...) I definitely prefer the Garamond on the Reader.

Quote:
Originally Posted by elemenoP View Post
Once you have done the "flash" you don't have to do it again? It always refers to the latest version of userstyle.css? Or do you have to flash the firmware every time you change fonts?
No need to reflash. All you have to do is:

1/ Attach the Reader to your computer with the USB cable - wait until it becames available as a device on your computer (I'm working with a Windows 7 64 bit PC)
2/ Rename the current userStyle.css to something that makes sense (as below)
3/ Edit the userStyle.css file with the new font names as per the instructions above and save as userStyle.css (I use NotePad for this)

When you disconnect the Reader from the computer, the reader re-starts and imposes the new font on all books you open. Once you've got the syntax of the .css file right it seems to be very straightforward.

As I'm learning which font works best for me I'm saving each new version of the userStyle.css with a new name. I currently have the following list of possible fonts:

userStyle.css (the version currently in use)
userStyle.css.orig (the original .css file from the Russification flash

Alternative userStyle files.
userStyle.css.droid
userStyle.css.calibri
userStyle.css.adobegaramondpro
userStyle.css.palatino

Hope this helps.

C:
Attached Thumbnails
Click image for larger version

Name:	001__0015586.jpg
Views:	640
Size:	158.5 KB
ID:	60654   Click image for larger version

Name:	001__0015587.jpg
Views:	627
Size:	199.8 KB
ID:	60655  

Last edited by chris_tribble; 11-05-2010 at 04:56 AM.
chris_tribble is offline   Reply With Quote
Old 11-05-2010, 05:42 AM   #71
koadic
Member
koadic doesn't litterkoadic doesn't litter
 
Posts: 16
Karma: 172
Join Date: Oct 2010
Device: prs-650
Quote:
Originally Posted by chris_tribble View Post
Hey - some success! I've been able to get Droid working following Sherman's kind advice. Hooray!

Now I'd like to see if it's possible to a) try this with other fonts + see if it's possible to shift the base font size to something a little bigger so that I can use the Sony SMALL option as the default (rather than Medium) at the moment, with Droid, Medium's a bit big and Small's a bit small...

...

body {
font-family: DroidSerif; line-height: 1.2em
}
To increase the base font size, I have found it easiest to edit the body tag to read as follows...

body {
font-family: DroidSerif;
line-height: 1.2em;
font-size: 125%;
}

or whatever percentage you want to increase your base size by... or I believe that you can do this directly in pts, like 12pt (play around with it til you get the size you want). This will increase your Medium size by the same amount though, I dont think there is a way to specify a specific size for the xs, s, m, l, xl, and xxl.
koadic is offline   Reply With Quote
Old 11-05-2010, 06:11 AM   #72
chris_tribble
Enthusiast
chris_tribble began at the beginning.
 
Posts: 31
Karma: 20
Join Date: Oct 2010
Location: London, UK
Device: Sony PRS-650
Koadic - brilliant - this works a treat. I've now added the last line (remembering to finish with the semi-colon!) and it now means that any book opens with a font that I find comfortably sized. Screen shots at S size setting for Calibri and AdobeGaramondPro given below. I'm sticking with the serifed font for the moment - but I also like the look of the Calibri...

Many many thanks to the kind people in the community who've provided these resources and who have helped my get the PRS-650 working like I want it to.

Chris
Attached Thumbnails
Click image for larger version

Name:	001__0015588.jpg
Views:	497
Size:	179.1 KB
ID:	60656   Click image for larger version

Name:	002__0015589.jpg
Views:	458
Size:	174.5 KB
ID:	60657  
chris_tribble is offline   Reply With Quote
Old 11-05-2010, 10:56 AM   #73
PatNY
Zennist
PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.
 
PatNY's Avatar
 
Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
Ahh, so this is where the geniuses hang out!

Seriously, I never noticed this sub-forum till Chris linked to it on a thread on the parent forum. So thank you Chris. And thanks to porkupan for his work on the new firmware.

Chris, I also want to increase the size of the font when a book first opens. Where exactly did you put the new font size instructions? In the userstyle.css where you specified the new font?

Also, thanks for the suggestion of using Garamond Pro. I am trying that out now with my old standby, Georgia.

Can someone let me know how I take a screenshot with the new firmware. Figured out almost everything but that.
PatNY is offline   Reply With Quote
Old 11-05-2010, 11:22 AM   #74
chris_tribble
Enthusiast
chris_tribble began at the beginning.
 
Posts: 31
Karma: 20
Join Date: Oct 2010
Location: London, UK
Device: Sony PRS-650
Pat - the others are the geniuses!

My current userStyle.css is given below. The font size command is right down the bottom.

re screen shots - I've been doing this with a digital camera. Save the images from the camera as a JPEG and resize to no bigger than 800x800 pixels. To include in the posting, start a reply, then click on "go advanced". Once you're there, scroll down and you'll see a "manage attachments" button. Click on this, browse for your image, select, and then click on upload.

Hope this helps.

Best

C:
=============

@font-face {
font-family: adobegaramondpro;
font-weight: normal;
font-style: normal;
src: url(res:///Data/epub/FONT/adobegaramondpro/AGaramondPro-Regular.otf);
}

@font-face {
font-family: adobegaramondpro;
font-weight: bold;
font-style: normal;
src: url(res:///Data/epub/FONT/adobegaramondpro/AGaramondPro-Bold.otf);
}

@font-face {
font-family: adobegaramondpro;
font-weight: normal;
font-style: italic;
src: url(res:///Data/epub/FONT/adobegaramondpro/AGaramondPro-Italic.otf);
}

@font-face {
font-family: adobegaramondpro;
font-weight: bold;
font-style: italic;
src: url(res:///Data/epub/FONT/adobegaramondpro/AGaramondPro-BoldItalic.otf);
}

@font-face {
font-family: "sans-serif1";
src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf);
}

h1 {
font-family: sans-serif1, sans-serif;
}
body {
font-family: adobegaramondpro;
line-height: 1.2em;
font-size: 125%;
}
chris_tribble is offline   Reply With Quote
Old 11-05-2010, 12:08 PM   #75
PatNY
Zennist
PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.
 
PatNY's Avatar
 
Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
Chris, thanks for the clarification regarding the font size and where to put it.

As for the screenshots, I know how to take those with a camera and embed images in forum posts already. I was talking about the ability to take screenshots internally, in the reader. It's an added feature with the new Boroda firmware. But how to use it???
PatNY is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possibility of re-flashing stock firmware for Hanvon N516 wonghyf OpenInkpot 22 05-14-2010 07:37 AM
Clock without flashing? just_jeepin Sony Reader Dev Corner 5 11-23-2009 09:38 AM
Safest way to get unicode font work without flashing firmware DairyKnight Kindle Developer's Corner 2 09-12-2009 05:05 AM
Flashing Sony's official GERMAN Firmware on PRS-505? Applied_Micro Sony Reader Dev Corner 3 03-17-2009 04:23 AM
PRS-500 Flashing the Reader via SD/MS scotty1024 Sony Reader Dev Corner 29 04-09-2007 07:31 AM


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


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