|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,717
Karma: 3790058
Join Date: Oct 2010
Location: NYC
Device: Kindle Paperwhite, Sony 650
|
PRS+ custom formatting is inconsistent
I just installed PRS+ on my reader. I loaded the fonts and I loaded a custom CSS file as follows:
@font-face { font-family: "Charis"; font-weight: normal; font-style: normal; src: url(res:///Data/fonts/CharisSILR.ttf); } @font-face { font-family: "Charis"; font-weight: bold; font-style: normal; src: url(res:///Data/fonts/CharisSILB.ttf); } @font-face { font-family: "Charis"; font-weight: normal; font-style: italic; src: url(res:///Data/fonts/CharisSILI.ttf); } @font-face { font-family: "Charis"; font-weight: bold; font-style: italic; src: url(res:///Data/fonts/CharisSILBI.ttf); } body { font-family: "Charis"; text-align:justify; font-size: medium; line-height: 3.2em; margin-top: 1em; margin-left: 1em; margin-right: 1em; } (I used that huge line height to test if the line height was being respected or not.) When I open books, some of them are using the Charis font, and some are not. The books that are not using the Charis font are not using a custom font, they are using the default Sony font. Some of these books are using the default Sony font, but they have the margins and line-height that I set. Some books *are* using the Charis font, but the margins and line-height are not being respected. One book had a huge margin when I loaded it, and it still has a huge margin now. What's going on here? eP |
|
|
|
|
|
#2 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,717
Karma: 3790058
Join Date: Oct 2010
Location: NYC
Device: Kindle Paperwhite, Sony 650
|
and also: when I power off the unit, it takes about 5 or 6 seconds (forever!) from the time I slide the power slider until it turns off. Is that normal? Powering on is normal (no lag).
eP |
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Welcome to PRS+ and the world of CSS
![]() As CSS already implies, Cascading Style Sheets, there are many possibilities to get the format you want. In your example you are setting font-family for body. If an embedded CSS forces font-family lets say for the p-tag you are out of luck. Your best guess is to check the embedded CSS with Sigil, or flatten them with Calibre. Quote:
A) on the setting for Standby-Screen B) the current ebook-file With some formats it will take a while to generate the standby image. Though 5 seconds and more are rather long (for a x50, more often seen with 300/505) Please try some other books and formats, too. (epub, pdf, lrf) |
|
|
|
|
|
|
#4 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,272
Karma: 16544702
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@elemenoP,
Try these simple changes (in red) in your custom Charis css file. This should increase the number of your epubs which 'just work': Code:
@font-face {
font-family: serif;
font-weight: normal;
font-style: normal;
src: url(res:///Data/fonts/CharisSILR.ttf);
}
@font-face {
font-family: serif;
font-weight: bold;
font-style: normal;
src: url(res:///Data/fonts/CharisSILB.ttf);
}
@font-face {
font-family: serif;
font-weight: normal;
font-style: italic;
src: url(res:///Data/fonts/CharisSILI.ttf);
}
@font-face {
font-family: serif;
font-weight: bold;
font-style: italic;
src: url(res:///Data/fonts/CharisSILBI.ttf);
}
body, body.book, body.text, body.calibre, body.calibre1, body.calibre2, body.calibre3, body.calibre4 {
font-family: serif;
text-align:justify;
font-size: 1em;
line-height: 3.2em;
margin-top: 1em;
margin-left: 1em;
margin-right: 1em;
}
And another couple of comments whilst we're on the subject:
Finally, please note that the latest version of PRS+ has introduced some extra options for adjusting font-size, page margins, line-height, etc directly from the Sony. But, IMHO, it does require a bit more experience with css style manipulation to get it to work satisfactorily. |
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,717
Karma: 3790058
Join Date: Oct 2010
Location: NYC
Device: Kindle Paperwhite, Sony 650
|
Thanks so much, Jackie, I will try your suggestions. The CSS used is the same CSS I have been using during my Calibre conversions, and it is working fine there. Perhaps Calibre was also doing something else behind the scenes. The margin-top value seems to work just fine to put a margin at the top of each page, not the first paragraph of a chapter. My hope was that I wouldn't have to do Calibre conversions any more!
>>Finally, please note that the latest version of PRS+ has introduced some extra options for adjusting font-size, page margins, line-height, etc directly from the Sony. But, IMHO, it does require a bit more experience with css style manipulation to get it to work satisfactorily. << I just installed PRS+ a week ago, and I don't see these options. Where do I find them or is in the beta version? I installed the newest, non-beta version (as far as I know). Thanks, eP |
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,717
Karma: 3790058
Join Date: Oct 2010
Location: NYC
Device: Kindle Paperwhite, Sony 650
|
And Mark, I do have my reader set to display the cover image, and you are right, it was just one particular title that was taking so long to shut down. Now that I am reading different books, there is no lag in shutdown.
eP |
|
|
|
|
|
#7 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,717
Karma: 3790058
Join Date: Oct 2010
Location: NYC
Device: Kindle Paperwhite, Sony 650
|
And also: what does this dialog box mean: "affects only books opened afterwards!" The book I'm currently reading isn't affected? How about if I open another book and then open the book I was reading again? Is it affected then? Or does the setting only affect books I've never opened (those with the "New" icon)?
Thanks, eP |
|
|
|
|
|
#8 | |
|
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Quote:
You are, most certenly, using 2.0.18 which only applies custom CSS once, when a/the file is opened - not necessary a untouched new one, but it has to be opened from the file-system again. So with 2.0.18 it is/was necessary to open another book, and change then back to the original one to see the CSS applied. With 2.1.01a and 2.1.02a the epub-file will be reloaded by code. The CSS changes are applied immideately. The extra-options - jackie mentioned - are included in the font-size-dialog, you get when you push the SIZE (Magnifier) Button. For more info please see the WIKI on the project page. (Scroll down to Extended SizeOverlay for x50) [EDIT] Just reread your post, and you mention there you installed the latest none alpha/beta code, which IS 2.0.18. But IMHO it is well worth to try almost a full year of code-development which you find in 2.1.02a - even while alpha-state it is, most of the time, stable and safe to use [/EDIT] Last edited by Mark Nord; 02-22-2013 at 03:36 AM. |
|
|
|
|
|
|
#9 | |||
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,272
Karma: 16544702
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
Quote:
that the reason you are getting the page top margin you want is indeed due to your calibre conversion settings. But it is likely not your ExtraCSS which is creating it, but rather the settings you used on the Convert - PageSetup page. Any value, other than 'No margin', in the Margins: Top and Bottom boxes creates an @page {margin-top: value; margin-bottom: value} in the output epub css. These days it is stored in a second css file called page_styles.css. Before that it was stored in every single html file in the epub. [Just for completeness I'll add, the Left/Right margins from the PageSetup page (if not set to 'No margin') are stored in the epub main css file, in whichever css class calibre has created for the <body> tag.] Quote:
|
|||
|
|
|
|
|
#10 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,717
Karma: 3790058
Join Date: Oct 2010
Location: NYC
Device: Kindle Paperwhite, Sony 650
|
Thank you, Mark, I will definitely check out the newest version. I was a bit nervous to flash the reader, so I chose what I thought would be the most stable.
Jackie: You are right, I did have values in "Page Setup" in Calibre! I didn't even remember that. I will play around with all of this when I have the time. Thank you so much for all of your help! eP |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Price Custom Column Formatting Help | PaulineDesigns | Library Management | 13 | 07-22-2022 10:23 PM |
| Publisher Default Formatting and Custom Fonts | Stiggosaurus | Sigil | 1 | 01-22-2013 05:56 AM |
| Inconsistent Spacing | N00ter | ePub | 26 | 04-15-2012 10:51 AM |
| Formatting Floating Point # Custom Column | GeekyGal | Library Management | 3 | 06-03-2011 06:34 PM |
| Inconsistent Metadata | windybt | Calibre | 8 | 10-10-2010 01:31 PM |