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 12-29-2011, 10:28 AM   #106
giosa
Connoisseur
giosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcover
 
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
Quote:
Originally Posted by vishcompany View Post
It's all in the wiki.
Thanks! I got it working!
giosa is offline   Reply With Quote
Old 12-29-2011, 10:39 AM   #107
foghat
Evangelist
foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.
 
Posts: 464
Karma: 1006520
Join Date: Mar 2010
Location: Alberta, Canada
Device: Kindle PW3
Quote:
Originally Posted by jackie_w View Post
I think the problem you are running into here is simply that if you have previously done a Calibre conversion on a book then those old settings are remembered if you reconvert. To load your new Prefs-CommonOptions for a particular book just press the 'Restore defaults' button on the Look&Feel page. You should see your ExtraCSS box get populated with the new settings.
Yes you are right. Thanks a lot!
foghat is offline   Reply With Quote
Old 12-29-2011, 03:12 PM   #108
giosa
Connoisseur
giosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcover
 
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
Hi, I'm using sylfaen.ttf for unicode. Does it hav bold and italic? How do I specify those in @font-face statement?

@font-face {font-family: serif; font-weight: normal; font-style: normal; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/sylfaen.ttf);}

body, div, p { font-family: serif; }
.calibre { font-family: serif; }

that's what I'm using and it's working. Now I need bold and italic, how do I go about it?
THanks
giosa is offline   Reply With Quote
Old 12-29-2011, 05:41 PM   #109
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: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You're best off finding a different font that has regular, bold, italic, & bold italic.
JSWolf is offline   Reply With Quote
Old 01-04-2012, 09:30 AM   #110
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
Quote:
Originally Posted by Barty View Post
On the kindle, I can add an alternate font on the device and tell it to use that font for all books. Can that be done on the T1? I'm willing to root.
It doesn't appear that the built in Sony reader app on the T1 can do this. Pulling apart the app, there's the following text:

buttonBookFontSelect_Amasis
buttonBookFontSelect_Frutigerneue
buttonBookFontSelect_Original
buttonBookFontSelect_Palatinonova
buttonBookFontSelect_Reallyno2
buttonBookFontSelect_Universnext
buttonBookFontSelect_Verdana

That same list of fonts appears in a few other places, so it seems that the font list for the built in reader app is fixed and not dynamic.

If you root, you can use a different reader app (FBreader, CoolReader), but these don't seem as polished (eg, the periodical format is lacking).

Quote:
Originally Posted by Barty View Post
Because if I have to alter every single ePub just to use the font I want, that is not an acceptable solution. And I'm pretty sure whatever default fonts it has, I won't like them. I'm very particular.

Also, does the t1 accept a user CSS to override whatever CSS there may be in the book? If so, how extensive is CSS support? Does it do text-shadow?
I can't find any evidence of a PRS+ style "user CSS" for the T1. This would be the holy grail, as far as I'm concerned...

I'm starting to wonder if one solution is to try to import a user CSS? Maybe something like

@import url(res:///mnt/sdcard/css/my.css);

or if that doesn't work even something like

@import url(res:///ebook/fonts/../../mnt/sdcard/css/my.css);

in each epub. Sure that means you still need to add that line to everything, but if it works then at least you don't then need to regenerate every epub if you decide you like a different font later on.

Cheers,
Simon.
snarkophilus is offline   Reply With Quote
Old 01-04-2012, 02:05 PM   #111
duncann
Member
duncann began at the beginning.
 
Posts: 23
Karma: 12
Join Date: Feb 2011
Device: PRS-950, T1
Here's what I do to change my font at will for all of my 124 epubs on an unrooted T1:

I created a 'fonts' directory at the root when plugged into a windows machine. Inside this folder I put all of the fonts I want to use. I then created a simple batch file asking which font I want to use. The batch file copies each of the four font variants into normal.otf, italic.otf, bold.otf, and bolditalic.otf.

Now the hard part about this is modifying each epub with the proper @font entries:
Code:
@font-face { font-family: "Serif"; font-weight: normal; font-style: normal; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/normal.otf); }

@font-face { font-family: "Serif"; font-weight: bold; font-style: normal; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/bold.otf); }

@font-face { font-family: "Serif"; font-weight: normal; font-style: italic; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/italic.otf); }

@font-face { font-family: "Serif"; font-weight: bold; font-style: italic; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/bolditalic.otf); }
I also have custom @page, body, div, and p settings for each epub:
Code:
@page { margin: 0em .25em 0em .25em }

body { display: block; margin: 0 0 0 0; padding: 0 0 0 0; border: 0 0 0 0; text-align: justify; font-family: "Serif"; font-size: 0.9500em; line-height: 1.0525em; }

p, div { display: block; margin: 0 0 0 0; padding: 0 0 0 0; border: 0 0 0 0; orphans: 0; widows: 0; }
This may sound like a lot of tedious work to modify 124 epubs in this way, but it wasn't actually that bad. In addition to my library residing on my readers (950 and T1), it also resides on my computer with a folder structure created using Calibre with the template '{authors}/{series}/{authors} {pubdate} {series} {series_index} {title}' (the same folder structure exists on my readers as well). So I wrote another batch file to decompress each epub into another folder named 'decompressed'. I used 7zip for doing this. I then opened one of the epub's css file in ultraedit and did a 'replace in files'. Ultraedit has a pretty powerful search and replace engine and worked out quite well for what I wanted to do. I did run into one problem where some of the css's line terminators were UNIX, some DOS, and some MAC. So I had to do the same replace three different times. Since most were UNIX I saved all as UNIX line terminators for future ease of editing.

Once all that was done, the batch file I wrote earlier that decompresses the epubs, also recompresses them all into a folder named 'recompressed'. So I run that. Then I fire up Calibre, make a new library from the 'recompressed' folder, and either/both save to disk/send to device.

Now all I have to do to change the font is connect the T1 to my computer, engage data transfer mode, open the fonts directory on the T1, and run the batch file that changes the fonts.

Maybe someone is looking for a similar solution, so if this helps anyone, great. If anyone else has some other ideas to make this easier that would be welcome. For instance, I don't know very much at all about linux, but I had the idea that if a script similar to the fonts.bat file could be written and executed on a rooted T1, then the device wouldn't have to be connected to a computer to change the font. I believe this method is similar to how PRS+ changes the user css style sheet.
duncann is offline   Reply With Quote
Old 01-04-2012, 07:44 PM   #112
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 snarkophilus View Post
I'm starting to wonder if one solution is to try to import a user CSS? Maybe something like

@import url(res:///mnt/sdcard/css/my.css);

or if that doesn't work even something like

@import url(res:///ebook/fonts/../../mnt/sdcard/css/my.css);

in each epub. Sure that means you still need to add that line to everything, but if it works then at least you don't then need to regenerate every epub if you decide you like a different font later on.
I just tried this. It works very well

Create a /css directory in the root of int.mem and place my.css file (containing all the @font-faces etc) in there. Then insert your suggestion of the single line
Code:
@import url(res:///ebook/fonts/../../mnt/sdcard/css/my.css);
at the top of each epub css file then all customised font-family, font-size, line-height etc seems to display just fine.

Now, when you fancy a change of font(s) all you have to do is replace the my.css file with your new one in the /css directory on the T1.

Nice thinking, snarkophilus, karma to you

Last edited by jackie_w; 01-04-2012 at 08:40 PM. Reason: correct error
jackie_w is offline   Reply With Quote
Old 01-05-2012, 06:05 AM   #113
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
Thanks Jackie. I'm glad both that the idea worked, and that it wasn't too hard to do!

It also works here as well. I'm also pretty happy that the same epub works on my PRS-350 too, so the @import pointing to a file that doesn't exist doesn't cause problems (on the 350 at least).

The next thing I'm wondering if how hard it would be to automate adding that @import to every epub in my Calibre library. Some epubs have multiple CSS files, so you can't just blindly add the @import to every CSS you see. I wonder if the "Modify Epub" plugin is the right place for this (with some generic "make sure this CSS line is present in an epub" method)?

Cheers,
Simon.
snarkophilus is offline   Reply With Quote
Old 01-05-2012, 04:19 PM   #114
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: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by snarkophilus View Post
Thanks Jackie. I'm glad both that the idea worked, and that it wasn't too hard to do!

It also works here as well. I'm also pretty happy that the same epub works on my PRS-350 too, so the @import pointing to a file that doesn't exist doesn't cause problems (on the 350 at least).

The next thing I'm wondering if how hard it would be to automate adding that @import to every epub in my Calibre library. Some epubs have multiple CSS files, so you can't just blindly add the @import to every CSS you see. I wonder if the "Modify Epub" plugin is the right place for this (with some generic "make sure this CSS line is present in an epub" method)?

Cheers,
Simon.
Alternatively, I wonder if it's possible to add the line in the process of sending the book to the T1? That way you wouldn't have to remember to modify every book in the calibre library, and one could keep the versions on the PC "free" of device specific alterations.

Just a thought?
sherman is offline   Reply With Quote
Old 01-05-2012, 06:13 PM   #115
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
Quote:
Originally Posted by sherman View Post
Alternatively, I wonder if it's possible to add the line in the process of sending the book to the T1? That way you wouldn't have to remember to modify every book in the calibre library, and one could keep the versions on the PC "free" of device specific alterations.

Just a thought?
Even better - now we just have to find a way to implement it . I'll ask over on the Calibre section.

One thought - we might want a way to disable this on specific books. For example, Jellby's "Three Men In A Boat" is already formatted beautifully, and I'm not sure I'd want to add my own styles for that one.

Cheers,
Simon.
snarkophilus is offline   Reply With Quote
Old 01-29-2012, 05:20 PM   #116
giosa
Connoisseur
giosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcovergiosa exercises by bench pressing the entire Harry Potter series in hardcover
 
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
Quote:
Originally Posted by JSWolf View Post
Originally Posted by JSWolf
Now, my next question...

Can anyone without a rooted T1 put fonts in /system/fonts and access them from an ePub?
Quote:
Originally Posted by seabee View Post
No, because AFAIK, /system/fonts is a CRAMFS that are by design read-only, the filesystem must be expanded to a folder, unmounted, then the foldercontent is modified, packed back to a new CRAMFS, put back to the PRS-T1 and re-mounted and I don't think it's possible without rooting it. Sorry
Can it be done on rooted PRS T1?
giosa is offline   Reply With Quote
Old 03-06-2012, 12:55 PM   #117
xcub
Junior Member
xcub began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2011
Device: PRS-900
I've compiled a short how-to page for using external Viet fonts based on previous posts:
http://www.mediafire.com/?w9zp1h5zypmfzw5
xcub is offline   Reply With Quote
Old 05-19-2012, 02:18 PM   #118
Ravenik
Junior Member
Ravenik began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2012
Device: Sony PRS-T1
Custom font and option to pick font from the built-in list.

Hello, I am a new PRS-T1 user and I try to work out a procedure to convert my books for PRS-T1.
I struggle to have a custom font for given e-book and simultaneously to be able to choose a font from the built-in Sony PRS-T1 font list. I managed to have custom font working (also with "bold" titles in the book) but then I cant change font to one from the list - whichever font I choose it doesn't change and remains with the face of my font. Please help how to have my font (in file-system) and be able to change font for another from Sony built-in list.

Currently I have in stylesheet1.css:
Code:
@namespace h "http://www.w3.org/1999/xhtml";

@font-face {
  font-family: "Serif";
  font-weight: normal;
  font-style: normal;
  src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/LiberationSerif-Regular.ttf);
}
(...)
@font-face {
  font-family: "Serif";
  font-weight: bold;
  font-style: italic;
  src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/LiberationSerif-BoldItalic.ttf);
}

body {  
  font-family: Serif;
  display: block;
}

.bold {
    font-weight: bold;
	margin-bottom: 0.8em;
	margin-top: 0.8em;
	display: block;	
    }
(...)
When I view "LiberationSerif-Regular.ttf" with ttfedit-1.0a-bin - I have:
Font Family: Serif
Font Subfamily: Regular
Full name of the font: Liberation Serif
And similarly in the next 3 .ttf files (subfamily: Bold, Italic, Bold Italic)

I put these 4 font files in two places:
"sdcard": /fonts
"internal": /fonts (if this "internal" directory was empty then the reader would not use my fonts, despite the fact that in css I pointed to sdcard)

As I said it works for my font but does not allow to pick another font from the list. Is it generally possible to use use my font from file and simultaneously have the option to choose from built-in-fonts list for given e-book?

In the built-in font list I have only some fonts with my native Polish characters, so I need my custom font (which is better for me). Also only with my font I can have bold letters for titles in books.
Ravenik is offline   Reply With Quote
Old 05-19-2012, 02:47 PM   #119
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
Try changing all occurrences (@font-face and body) of font-family to
Code:
font-family: serif;
i.e. lowercase s and no quotes.

Also, there is a bug in the Sony firmware reader app, where italics and bold are not displayed consistently when using any font other than 'Original'.

Forum member Morkl has written an updated reader app which corrects this fault and gives a few extra nice features. There is a bit of a snag though. The latest release was written to work with Sony firmware version 1.0.03.11140. There has not yet been a full release which incorporates the Sony upgrade to version 1.0.04.12210.

You can read more about Morkl's PRST1 enhancements in this thread and this thread.

P.S Welcome to MobileRead

Last edited by jackie_w; 05-19-2012 at 03:00 PM. Reason: extra info
jackie_w is offline   Reply With Quote
Old 05-19-2012, 03:23 PM   #120
Ravenik
Junior Member
Ravenik began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2012
Device: Sony PRS-T1
Quote:
Originally Posted by jackie_w View Post
Try changing all occurrences (@font-face and body) of font-family to
Code:
font-family: serif;
i.e. lowercase s and no quotes.
Thanks a lot, it works! I also think I will try to downgrade to 1.0.03.11140 and give Morkl's enhancement a try.

Last edited by Ravenik; 05-19-2012 at 08:55 PM.
Ravenik is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hacks how to return to the original font lizayin Amazon Kindle 1 07-07-2011 07:25 PM
Changing original font css in ePub jlbfoot Sony Reader 4 12-28-2010 12:07 PM
Troubleshooting Font size changing Kumabjorn Amazon Kindle 1 07-23-2010 12:49 AM
DR1000 Changing Font-Size ThR iRex 6 06-21-2010 06:29 AM
Book Conversion - Changing Original Texts RWood Sony Reader 13 04-18-2007 01:28 PM


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


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