Thread: Viewer question
View Single Post
Old 07-24-2014, 03:55 PM   #1
Hampshire Nanny
Guru
Hampshire Nanny ought to be getting tired of karma fortunes by now.Hampshire Nanny ought to be getting tired of karma fortunes by now.Hampshire Nanny ought to be getting tired of karma fortunes by now.Hampshire Nanny ought to be getting tired of karma fortunes by now.Hampshire Nanny ought to be getting tired of karma fortunes by now.Hampshire Nanny ought to be getting tired of karma fortunes by now.Hampshire Nanny ought to be getting tired of karma fortunes by now.Hampshire Nanny ought to be getting tired of karma fortunes by now.Hampshire Nanny ought to be getting tired of karma fortunes by now.Hampshire Nanny ought to be getting tired of karma fortunes by now.Hampshire Nanny ought to be getting tired of karma fortunes by now.
 
Hampshire Nanny's Avatar
 
Posts: 615
Karma: 8064562
Join Date: Aug 2009
Device: Sony PRS-505, Kindle 3 KB, iPad2
Viewer question

When viewing an ePub book using the built-in viewer, I noticed that the characters on the right side are clipped. See the attached image. This happens for both Mobi and ePub formats.

Searching the forum for questions about the right margin, I found this post by HarryT which explains how to set a larger right margin in the output profile.

So, I followed the directions and the ePub appears to have the correct values in its CSS:

Code:
.calibre {
    display: block;
    font-size: 1em;
    line-height: 1.2;
    padding-left: 0;
    padding-right: 0;
    text-align: justify;
    margin: 0 15pt 0 5pt
    }
But the output display is exactly the same as when the right margin was set to 5pt. I tried making the font larger and smaller in the viewer, and this effect goes away at the smallest font size -- but that font is too small to read. And, since the output display is exactly the same regardless of the right margin value in the CSS, it appears that the viewer is ignoring the style directions in the ePub.

Environment is Windows 7 Professional, Calibre 1.42 Portable. I started with an ePub downloaded from Baen. (Interestingly, it had six style sheets each with a name containing "calibre".) I created a new ePub using the larger right margin value given by HarryT. Also created a Mobi file with the same output values.

I couldn't identify which subforum, if any, should be used. If this post is in the wrong place, please pardon me.
Attached Thumbnails
Click image for larger version

Name:	trimmed-edge.jpg
Views:	203
Size:	66.6 KB
ID:	125796  
Hampshire Nanny is offline   Reply With Quote