Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
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
Old 07-24-2014, 11:22 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This has nothing to do with the CSS and is caused by a bug in Qt WebKit with certain fonts. You should try changing the fonts int he viewer preferences, you will have to experiment with a few fonts till you find one that works.
kovidgoyal is online now   Reply With Quote
Advert
Old 07-25-2014, 06:13 AM   #3
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
Viewer and Embedded Font

Dear kovidgoyal,

Somehow Viewer (even the 1.46 version - Portable one) doesn't show embedded font, while Editor and even Moon Reader Pro has no problem.

This is the epub I created

https://db.tt/BEqBqJfN
nqk is offline   Reply With Quote
Old 07-25-2014, 06:26 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use the qt 5 version of calibre from https://www.mobileread.com/forums/sho...d.php?t=242223

or replace the %20 with space characters in fonts.css or better yet, change the name of the font file to not include spaces at all.
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Viewer Layout question zobop Library Management 2 06-19-2012 10:17 PM
Question about Viewer in Calibre CJEngland Calibre 7 08-31-2011 03:33 PM
Question re: v7.35 Viewer new Inspect feature jackie_w Calibre 2 12-24-2010 12:17 PM
PC .imp viewer question surrealmind Fictionwise eBookwise 3 01-27-2010 09:15 PM
Viewer Scroll Question Ralob Calibre 2 10-15-2009 07:29 PM


All times are GMT -4. The time now is 07:53 AM.


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