Quote:
Originally Posted by mg10
Hello
Is there any combination of patches for getting this in kepub?:
- set a fix margin for each side, top and bottom
- remove header and footer
Now I use these patches:
Custom kepub default margins
Fix three KePub fullScreenReading bugs
Custom left & right margins
...and full screen mode. However, when I increase margin to the first position of slide bar to get a minimum margin, a blank line in the bottom of every page appears. Changes in margin slide bar affect in a disproportionate way to bottom.
|
This is a complicated subject. For KePubs in full-screen mode the slider adjusts all four page margins equally. However the total amount of space at the edges of the page depends on a lot of other things besides the page margins:
* Top: depends mainly on which font is used, some fonts sit higher on the line and make the top margin look smaller, others sit lower on the line and make it look larger. Also depends on font size, and a bit on line spacing setting.
* Bottom: Usually most of the space at the bottom of the page is caused by there not being enough room to fit another line of text, and the only way to change that is to adjust font size, line height, and margins until you find a setting that works. If the publisher has added some space between paragraphs then ii will be impossible, as the space at the bottom will vary from page to page depending on how many paragraphs are on each page. Also depends a bit on font choice, as with the top margin.
* Left/Right: Depends on whether the publisher has done something to increase the left/right margins. Some publishers add a wrapper <div> with margin around all text, that results in the left/right margins being much larger than the top/bottom. Only way to fix this is to edit the book and remove the margin from the stylesheet. The `Fix three full-screen bugs` patch also adds a very small amount of space to left/right.
In short, to get the space at all four edges the same you may need to edit the book to remove any left/right and inter-paragraph space added by the publissher; and adjust font size, line spacing and margin sliders by trial-and-error until you get a combination that fits evenly.
(Enabling the `My 24 line spacing values`, `Custom left/right margins` and `Custom font sizes` patches will allow finer adjustments of line spacing, margin and font sizes.)
Edit: I should also add: The smaller the margins, the more noticable any difference in size. So generally the smaller you make the page margin, the more difficulty you will have getting themn all to look even.
Edit2: One more note: The above is for KePub books. All four page margins in ePub books can be set independently via the @page style, but as there is only one margin slider it is not possible to adjust them all independently on the device, though the `ePub fixed/adjustable top/bottom margins` patch can be adapted to choose which margins are set by the slider and which remain fixed.