View Single Post
Old 12-17-2014, 11:09 AM   #30
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Quote:
Originally Posted by GeoffR View Post
The difference with the kepubs results could be that I am adding margin/padding to the device's built-in stylesheet, rather than to the book's stylesheet, and testing with synced kepubs.
Unless you are speaking about another thing, I still cannot replicate your behaviour. I've redone the tests using kobo-book.css instead of the book internal css tables and everything continues as I posted before.

Look at the first attached picture. That book (it's Jellby's updated test book from here) has body {margin: 0; padding: 0} but I've set body {margin: 1em} through kobo-book.css. And you can see how the trimming issue is gone.

(Although, as I said, it reappears if I set the device margin setting at 0. In that picture it is actually set at 1, I mean, at the next possible minimum value in the GUI slider).

Quote:
Originally Posted by GeoffR View Post
Quote:
Originally Posted by arspr View Post
I mean that RMSDK (epubs) does actually have a 0 margin so, of course, you get trimmed characters because they are partially outside the screen.
The font cut-off doesn't happen at all in the epub reader, even with a zero margin.
Look at the second picture. As I said, within epubs you can get trimmed characters because RMSDK does support a true 0 value in the margin. So yes, part of your characters are in fact outside of the screen... and therefore they are "trimmed".



OTOH and somehow offtopic...

I don't like how kepub-book.css is working...

I mean the exact kepub-book.css code I've used is:
Code:
body {
margin: 1em;
}
But the book has an explicitly style set inside:
Code:
body {
  margin: 0;
  padding: 0;
}
So the kepub-ebook.css one shouldn't have been applied!!! I should have need !important in the kepub-book.css code. Why is an external CSS setting overriding an internal CSS one?
Attached Thumbnails
Click image for larger version

Name:	Test book with margin 1em in kobo-book.css.jpg
Views:	376
Size:	572.0 KB
ID:	132614   Click image for larger version

Name:	No margin in RMSDK.jpg
Views:	375
Size:	576.0 KB
ID:	132615  

Last edited by arspr; 12-17-2014 at 04:25 PM.
arspr is offline   Reply With Quote