View Single Post
Old 06-02-2019, 07:51 PM   #29
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 crimson View Post
Can anyone get "ePub fixed/adjustable top/bottom margins" to work? I want to make the top and bottom margins adjustable so I leave everything commented but all I got is this. The margins are fixed.

This patch worked on GeoffR's version so I'm not sure what I did wrong.
It is possible that the patch no longer works, I am still on firmware 4.8.1073 and while I have been updating that patch I haven't actually tested it on later versions.

From your screenshot I guess you have enabled the Reduce top/bottom page spacer patch? (in nickel.yaml) If so then you should also edit the last line of the ePub fixed/adjustable top/bottom margins patch to reflect the new size of the built-in margins:
Spoiler:
Code:
    # Replacement value: Set this to the size of the device's built-in top margin,
    # in pixels. This value is subtracted from the adjustable top/bottom margin
    # (if any) to compensate for any unremovable built-in top margin.
    # Suggested values:
    #   24  (Touch/Mini)
    #   32  (Glo/Aura/Aura2ed)
    #   44  (AuraHD/H2O/GloHD/ClaraHD)
    #   56  (AuraOne/Forma)
  - ReplaceInt: {Offset: 0x4A65D2, Find: 1, Replace: 44}


Edit: Two more things to check:
* Check that the book really is an ePub. The adjustable top/bottom margins stopped working for KePubs in firmware version 4.12.12111.
* Check that the book doesn't have an Adobe XPGT stylesheet: If it does then use the Modify Epub plugin in Calibre to remove it.

Last edited by GeoffR; 06-02-2019 at 11:09 PM. Reason: Two more things to check:
GeoffR is offline   Reply With Quote