Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-10-2011, 10:21 AM   #16
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,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
@oddman5,

What do you have in your userStyle.css @font-face statements at the moment? Your previous post suggests you want both serif and sans-serif text to display as Arial on your reader. If so, are your @font-faces something like:
Code:
@font-face {font-family: "Arial"; font-weight: normal; font-style: normal; src: url(res:///Data/...fontname.ttf);}
If I have guessed correctly it should be possible to edit this to be a bit more general so it will automatically direct generic statements in any book's css (like font-family:serif or font-family:sans-serif) to your chosen font.

In each of your 4 @font-faces, try replacing the red bit above so that it looks like the blue bit below:
Code:
@font-face {font-family: "Arial", serif, sans-serif; font-weight: ... etc ...
If I've guessed wrong, post your current userStyle.css and what you're trying to achieve.

Last edited by jackie_w; 01-10-2011 at 10:26 AM.
jackie_w is offline   Reply With Quote
Old 01-11-2011, 10:32 AM   #17
oddman5
Member
oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.
 
Posts: 11
Karma: 166284
Join Date: Dec 2009
Device: Kindle Voyage, Kobo Forma
Jackie_w

This is my userstyle.css file on the reader:
@font-face {
font-family: -ua-default;
font-weight: normal;
font-style: normal;
src: url(res:///Data/epub/FONT/Arial/arial.ttf);
}

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

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

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

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

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

How exactly do you think I should change it?
(I want Arial to be the the default font. It is now on most books, but not all)

Regards

Last edited by oddman5; 01-11-2011 at 10:45 AM.
oddman5 is offline   Reply With Quote
Advert
Old 01-11-2011, 12:14 PM   #18
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,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
@oddman5,

Try the following:
  1. For each occurrence, in the first 4 @font-faces, of
    Code:
    font-family: -ua-default;
    replace with
    Code:
    font-family: "Arial", serif, sans-serif;
  2. Unless you particularly want your level-1 headings (<h1>) styled with the font tt0003m_.ttf rather than Arial you can remove the last 2 items
    Code:
    @font-face {
    font-family: "sans-serif1";
    src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf);
    }
    
    h1 {
    font-family: sans-serif1, sans-serif;
    }
  3. Add this extra item after the final @font-face
    Code:
    body {font-family: "Arial", serif, sans-serif;}

It's a bit "belt and braces" but this userStyle.css may handle some epubs that the original didn't.

If it still doesn't work, I'd need to see some of the particular epub which doesn't work.
jackie_w is offline   Reply With Quote
Old 01-12-2011, 03:44 AM   #19
oddman5
Member
oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.
 
Posts: 11
Karma: 166284
Join Date: Dec 2009
Device: Kindle Voyage, Kobo Forma
@jackie_w

Looks like this did the trick.
Thanks a lot, Jackie!
oddman5 is offline   Reply With Quote
Old 01-12-2011, 04:29 PM   #20
Loose_Appeal
Fiiiiiiiiiiiiiiiiiiiiish?
Loose_Appeal doesn't litterLoose_Appeal doesn't litter
 
Loose_Appeal's Avatar
 
Posts: 85
Karma: 162
Join Date: Sep 2009
Device: Current: PRS-650, Previous: Books
Can you post the correct code?
Loose_Appeal is offline   Reply With Quote
Advert
Old 01-12-2011, 05:54 PM   #21
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,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
@Loose_Appeal,

What are you trying to achieve? The correct code depends on which font you want to use as your default serif font and which font as your default sans-serif font.

Oddman5 wanted to use Arial (a sans-serif font) for both. Personally I prefer to keep serif and sans-serif as two different fonts.
jackie_w is offline   Reply With Quote
Old 01-13-2011, 02:50 AM   #22
oddman5
Member
oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.
 
Posts: 11
Karma: 166284
Join Date: Dec 2009
Device: Kindle Voyage, Kobo Forma
@jackie_w

Jackie, when going through some of my books, it seems that now the books that was showing as Arial before, is now back to Sony default, while the ones that didn't, now shows up as Arial. Strange. Guess i have to customize them with Calibre before I send them to the prs 650. Could you show us your userstyle.css, so I can compare. (It doesn't have to be Arial)
oddman5 is offline   Reply With Quote
Old 01-13-2011, 02:52 AM   #23
oddman5
Member
oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.oddman5 can program the VCR without an owner's manual.
 
Posts: 11
Karma: 166284
Join Date: Dec 2009
Device: Kindle Voyage, Kobo Forma
Doublepost

Last edited by oddman5; 01-13-2011 at 03:49 AM.
oddman5 is offline   Reply With Quote
Old 01-13-2011, 05:16 AM   #24
SirNose
Junior Member
SirNose began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2010
Location: Sydney, Australia
Device: Original Kobo, PRS-650
Does anyone know if these firmware flash files are available for Macs?

I've downloaded the file but they seem to be windows files and my poor ol' mac doesn't know what to do with them...

Last edited by SirNose; 01-13-2011 at 05:20 AM. Reason: typo
SirNose is offline   Reply With Quote
Old 01-13-2011, 08:22 AM   #25
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,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by oddman5 View Post
@jackie_w
Could you show us your userstyle.css, so I can compare. (It doesn't have to be Arial)
Here it is. (I had to rename it to have a .txt extension to get it to attach here).

I need to add that it is not possible to create a userStyle.css which is guaranteed to automatically "correct" all epubs. However, I don't think there is an epub which cannot be fixed with the correct "tweak", as long as the epub doesn't have DRM.

I'd be happy to have a closer look at one of your non-working epubs, if you want to post it here. If that's not possible for copyright reasons, you can always send me a PM with an email address or a link to the epub.
Attached Files
File Type: txt userStyle.css.txt (2.4 KB, 528 views)

Last edited by jackie_w; 01-13-2011 at 08:26 AM.
jackie_w is offline   Reply With Quote
Old 01-13-2011, 10:55 PM   #26
Francois_4256
Junior Member
Francois_4256 began at the beginning.
 
Posts: 3
Karma: 16
Join Date: Dec 2010
Device: Sony PRS650BC
Smile

Quote:
Originally Posted by SirNose View Post
Does anyone know if these firmware flash files are available for Macs?

I've downloaded the file but they seem to be windows files and my poor ol' mac doesn't know what to do with them...
I've search hi and lo for one, saw a brief reference to one at the Russian site, but have resorted to installing VMware and Windows 7 on my MBP and have successfully flashed my reader and am now using Bookman old Style, one of my favorite fonts.

Until the universal flasher is developed for the PRS650, that may be the only thing you can do. There has to be more than two people trying to flash their readers who have MACs

Francois
Francois_4256 is offline   Reply With Quote
Old 01-13-2011, 11:02 PM   #27
elcreative
Wizard
elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.
 
Posts: 2,888
Karma: 5875940
Join Date: Dec 2007
Device: PRS505, 600, 350, 650, Nexus 7, Note III, iPad 4 etc
My Mac is set up with Boot Camp and Win 7, use either as PC or via Parallels virtual PC... essentially same solution as Francois_4256. It's so easy using PC stuff on an Intel Mac now that I just take it for granted... and am delighted I'm not doing it the other way round...


Quote:
Originally Posted by SirNose View Post
Does anyone know if these firmware flash files are available for Macs?

I've downloaded the file but they seem to be windows files and my poor ol' mac doesn't know what to do with them...
elcreative is offline   Reply With Quote
Old 01-15-2011, 12:09 AM   #28
SirNose
Junior Member
SirNose began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2010
Location: Sydney, Australia
Device: Original Kobo, PRS-650
Cheers Francois & El, I'll have to investigate this option i spose... seems a shame as there are such other good Mac ebook tools and resources.
SirNose is offline   Reply With Quote
Old 01-21-2011, 05:08 AM   #29
kosiu
Junior Member
kosiu began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2011
Device: PRS-950
Many thanks to all of you for posting your observations and guidance!

After two days of fiddling with the css set-up to get polish fonts I finally got it working!

But this time was not wasted as I've learned a lot about Calibe conversion function, css formatiing and epub structure... Now I can better organize my library in Calibre...
kosiu is offline   Reply With Quote
Old 01-21-2011, 06:30 AM   #30
goaspy
Connoisseur
goaspy can eat soup with a fork.goaspy can eat soup with a fork.goaspy can eat soup with a fork.goaspy can eat soup with a fork.goaspy can eat soup with a fork.goaspy can eat soup with a fork.goaspy can eat soup with a fork.goaspy can eat soup with a fork.goaspy can eat soup with a fork.goaspy can eat soup with a fork.goaspy can eat soup with a fork.
 
goaspy's Avatar
 
Posts: 77
Karma: 9324
Join Date: Feb 2010
Device: Sony PRS-650, Kindle 3
deleted

Last edited by goaspy; 02-14-2011 at 12:57 PM.
goaspy is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
user accessable userStyle.css please tselling PocketBook 14 02-25-2022 05:27 PM
prs-650 firmware on prs-600? omk3 Sony Reader Dev Corner 5 03-01-2011 02:38 PM
PRS 650 Firmware and userStyle.css mboyaci Sony Reader 1 12-07-2010 03:59 PM
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


All times are GMT -4. The time now is 03:14 PM.


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