View Single Post
Old 02-26-2016, 01:45 PM   #47
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by LittleBiG View Post
Thanks, but I am not fully happy yet. How could I make this space smaller? Which value should I modify?
You would need to reduce the min-height and max-height values further, enough to allow room for one more line of book text to fit in the gap. And if that results in the page number text being clipped then you would also need to reduce the caption font size too.

If you want to see how much space the footer is occupying, use the margintest.epub test book. This will let you see how much of the gap is due to the size of the reading footer, and how much is a result of your choice of other settings.

A more precise approach: The screen height on the Aura is 1014px, so if you subtract from that the size of the top @page margin and the size of the reading footer, then divide by the number of lines of book text you have on the screen, you will get a line height L and a remainder R. You would need to reduce the footer height by a minimum of L-R pixels to make the gap large enough to fit in another line of text at those settings.

Edit: Also beware that the publisher often sets the top @page margin in the book, so if you want the bottom gap to be consistent for all books then you would either need to edit the books and remove page margins from the CSS and XPGT stylesheets before sideloading (The Modify ePub Calibre plugin is useful for doing thsi) or else investigate the `ePub fixed/adjustable top/bottom margins` patch to override the CSS @page margin and possibly the `Ignore ePub book Adobe XPGT stylesheet (page-template.xpgt)` patch too. Also some publsihers add a small paragraph margin which will cause the bottom gap to vary depending on the number of paragraphs on the current page, and the only way to avoid that is to edit the book and remove the paragraph margins. The smaller you try to make the bottom gap, the more likely these other factors are to upset it. In the end you might find it less hassle just to adjust your line spacing, font size, etc. a little to minimise the bottom gap each time you start reading a new book rather than try to find custom settings for the `Custom reading footer style` patch to suit all situations.

Last edited by GeoffR; 02-26-2016 at 02:54 PM. Reason: spelling
GeoffR is offline   Reply With Quote