Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 10-13-2016, 09:52 PM   #1
chromeuser
Member
chromeuser began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Apr 2016
Device: Samsung Tab A 10.1, Fire HD8, Kindle Paperwhite, Kobo Aura One
Top and bottom margins with side loaded EPUB

I just got the Kobo Aura One - so far, I like it. However, I have a problem with the margins with sideloaded epubs. The margin space works for left and right but not top and bottom (there is little space at the top). Is there a patch that allows me more control over the margins? Also, how would I install the patch? Thanks!
chromeuser is offline   Reply With Quote
Old 10-13-2016, 10:44 PM   #2
344a
Groupie
344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.
 
344a's Avatar
 
Posts: 188
Karma: 505964
Join Date: Feb 2016
Location: Hong Kong
Device: Hong Kong is done.
You might be able to do it by Calibre.
http://blog.the-ebook-reader.com/201...-wasted-space/

Last edited by 344a; 10-13-2016 at 11:49 PM.
344a is offline   Reply With Quote
Old 10-14-2016, 09:25 AM   #3
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 chromeuser View Post
I just got the Kobo Aura One - so far, I like it. However, I have a problem with the margins with sideloaded epubs. The margin space works for left and right but not top and bottom (there is little space at the top). Is there a patch that allows me more control over the margins? Also, how would I install the patch? Thanks!
This can be quite a complicated topic because there are different ways the publisher can set the top/bottom margins, and so while there are some simple solutions that will work for most books, there are certain books that might need extra work to fix.

In short, the simplest method is to use Calibre to change the @page margin in the book's stylesheet. You can do this manually by editing the book and adding your own @page style, or automatically by configuring the KoboTouch driver to use the "Modify CSS" feature.

An example of a @page margin style, to increase the top margin only, is:
Code:
@page { margin-top: 25px; margin-bottom: 0px; }
Change the numbers to suit your device and preferences, put it in a file named "kobo_extra.css" in the root directory of your device, and configure the KoboTouch driver in calibre to enable the "Modify CSS" option. Thereafter every book you send to the device with Calibre will have that style added to its CSS stylesheet.

There are also patches that can override the publisher's @page top/bottom margin style, either with a fixed-size margin, or with adjustable margins that change when you change the left/right margins with the slider. See this post. If you do choose to use a patch, I recommend still using Calibre to change the @page margin in the book as well, so that if the patches stop working in the future you will still have sensible @page margins in the book to fall back on. Apart from being able to make the top/bottom margins adjustable, the advantage of patching is that it can override the @page margins in DRM books too.

But there are complications, here are some:

1. There are actually two ways that the publisher can set the top/bottom margins in a book: @page margin styles in the CSS stylesheet is one; the other is using the Adobe XPGT stylesheet (usually called page-template.xpgt). Some publishers use one method, some use the other, some use both (resulting in extra-large margins), and some use neither. The easiest way to avoid this complication is to use the Modify ePub plugin in Calibre to "Remove Adobe .xpgt files and links" before you sideload the book. There is also a patch that will cause the XPGT stylesheet to be ignored.

2. Some publishers set different @page styles for different parts of the book. For example, some set zero margins on the cover page so that the cover reaches the edges of the screen, but set it to a larger value for other pages. if you use the patch to override the @page margins then it will override all of them with the same value. If you use Calibre to change the @page margins in the stylesheet it might not override styles set for individual pages inside the individual HTML files. You can use the Modify ePub plugin to "Modify @page and body margin styles" to override the @page margins, but it doesn't always work for the body margins.

3. If the publisher makes the left/right margins large then the top/bottom margins will not be in proportion, and since the left/right margins can be set by the publisher using a number of different methods it is impossible to account for every possibility with any automatic procedure. There will be some books where the only way to reduce the left/right margins is to edit the book manually.

4. You may need to change the top/bottom margins if you switch from normal reading mode to full-screen mode, because of the huge footer in normal mode you probably want the bottom page margin to be zero, but in full-screen mode you probably want it to be the same as the top margin.

5. Edit: There are other things that affect the size of the gap at bottom of the page apart from margins: widows/orphans paragraph styles can add extra blank lines, so you might want to override the default or publisher's orphan/widows settings as well as @page margins, either using Calibre or a patch. Even with a zero bottom margin and no extra blank lines caused by orphans/widows settings, the space used by the footer is very large so you might want to reduce it using a patch. Also with some fonts the text doesn't sit in the centre of the line, so for example if it sits closer to the top of the line than the bottom then the top margin will look smaller and the bottom margin bigger. Some publishers have a small margin between each paragraph, which makes it impossible to get the gap at the bottom of the page consistent from page to page bacuse the number of paragraphs changes.

Edit: I am not suggesting this would suit everyone, but personally this is what I do (I have a Glo, currently running firmware 3.19.5761 but this hasnt changed for years):
* I read all books in full-screen mode (no header or footer.)
* I strip all XPGT stylesheets from the book using Modify ePub before sideloading.
* I manually edit all books before sideloading to set the left/right body margins to zero, set the orphans/widows to 1, remove margins between paragraphs, and set a default @page margin in the CSS stylesheet (but I leave the publisher's @page margins intact for special cases like the cover page.)
* I use the `ePub fixed/adjustable top/margins` patch with top and bottom margin adjustable. Because I have set the left/right margins in the book to zero, that results in all four top/bottom/left/right page margins being the same size whichever slider setting I select.

Last edited by GeoffR; 10-14-2016 at 10:45 AM. Reason: ... personally this is what I do ...
GeoffR is offline   Reply With Quote
Old 10-14-2016, 01:34 PM   #4
chromeuser
Member
chromeuser began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Apr 2016
Device: Samsung Tab A 10.1, Fire HD8, Kindle Paperwhite, Kobo Aura One
Thanks a lot for the responses - especially, Geoff for the time taken and the detail provided

Just a question - to implement 'ePub fixed/adjustable top/bottom margins' is there a file I need to alter and code to use in the altered file (similar to full screen mode)?

Apologies, as this is my first Kobo device, so I am still learning.

Thanks again
chromeuser is offline   Reply With Quote
Old 10-15-2016, 07:00 AM   #5
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 chromeuser View Post
Just a question - to implement 'ePub fixed/adjustable top/bottom margins' is there a file I need to alter and code to use in the altered file (similar to full screen mode)?
There is some information on patching in the Index to the Metazoa firmware patches thread, which includes links to threads for each specific firmware version with instructions.This is a more complicated process than just editing the device's configuration file, and it might take a while to learn how it all works.

Enabling the full-screen reading options is a much simpler process, there are some instructions in this post.

My usual advice is not to rush into patching when you are still new to the device. It is a good idea to become famliar with what it can do with the stock firmware, and learn what your preferences are first.

Will you read ePubs exclusively, KePubs exclusively, or will you read both?

Will you read in normal mode (with the footer showing progress), in full-screen mode, or do you want to be able to switch between the two?

The problem with the top/bottom margins in ePubs is affected by the presence of the footer. (The same huge footer is used for ePubs and KePubs, but KePubs have a huge header to balance it.)

If you want to keep the footer, then using the patch for adjustable top/bottom margins will be more complicated, and will probably require another patch to modify the footer -- either to make it much smaller or to shift the position of the progress indicator upward to reduce the gap between book text and progress indicator. But doing this can spoil the symmetry of the header/footer when reading KePubs. It is much simpler to use a fixed top margin in ePubs if you are not using full-screen mode, and that doesn't require a patch.

If you read exclusively in full-screen mode then using the patch for adjustable top/bottom margins is much simpler, and switching between ePub and KePub is no problem because in full-screen mode KePubs have adjustable top/bottom margins too.

Last edited by GeoffR; 10-15-2016 at 07:02 AM. Reason: spelling
GeoffR is offline   Reply With Quote
Old 10-15-2016, 09:25 PM   #6
chromeuser
Member
chromeuser began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Apr 2016
Device: Samsung Tab A 10.1, Fire HD8, Kindle Paperwhite, Kobo Aura One
Geoff,

Thanks a lot for the info.

I agree, in the long run, Calibre is the way to go.

I'll be using the Kobo Aura One mainly for epubs and PDFs (I'm using KOReader for PDF files and so far no serious problems). However, I have a few books with Nook that will transfer to Kobo soon (Nook no longer operates in the UK, transferring their content to Sainsbury's. Now Sainsbury's is closing its e-book service and transferring their content to Kobo). I assume the transferred e-books will be in Kobo's native format.

I found your patches with the instructions provided here:

https://www.mobileread.com/forums/sho...d.php?t=279351

It worked and helped a lot - I was careful and only activated the patches that I needed. Applying the right increment for top and bottom margins is trial and error. Advanced font options for side-loaded fonts is a great feature to add to a Kobo device.
chromeuser is offline   Reply With Quote
Old 10-16-2016, 01:03 PM   #7
robko
Wizard
robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.
 
Posts: 2,454
Karma: 5469320
Join Date: Jul 2010
Device: Kobo
Quote:
Originally Posted by chromeuser View Post
However, I have a few books with Nook that will transfer to Kobo soon (Nook no longer operates in the UK, transferring their content to Sainsbury's. Now Sainsbury's is closing its e-book service and transferring their content to Kobo). I assume the transferred e-books will be in Kobo's native format.
In theory they should be available for download as a regular epub as well as in kepub (Kobo) format.
robko is offline   Reply With Quote
Old 10-16-2016, 04:14 PM   #8
Poppaea
Lucifer's Bat
Poppaea ought to be getting tired of karma fortunes by now.Poppaea ought to be getting tired of karma fortunes by now.Poppaea ought to be getting tired of karma fortunes by now.Poppaea ought to be getting tired of karma fortunes by now.Poppaea ought to be getting tired of karma fortunes by now.Poppaea ought to be getting tired of karma fortunes by now.Poppaea ought to be getting tired of karma fortunes by now.Poppaea ought to be getting tired of karma fortunes by now.Poppaea ought to be getting tired of karma fortunes by now.Poppaea ought to be getting tired of karma fortunes by now.Poppaea ought to be getting tired of karma fortunes by now.
 
Poppaea's Avatar
 
Posts: 2,536
Karma: 19491715
Join Date: Nov 2010
Location: Earth/Berlin
Device: Kobo Libra 2
Quote:
Originally Posted by robko View Post
In theory they should be available for download as a regular epub as well as in kepub (Kobo) format.
In real life that wasn't the case with the Sony accounts, what makes you think they'll act differently now?
Poppaea is offline   Reply With Quote
Old 10-16-2016, 04:28 PM   #9
Sir Loyne
Connoisseur
Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!
 
Sir Loyne's Avatar
 
Posts: 71
Karma: 5392
Join Date: Oct 2016
Device: Kobo Aura One
Hi. I don't know if you got the answer yet, but, for me anyway, the easiest thing to do would be to install Calibre and then install the Kobo Touch Extended plugin (look up how to install plugins. It's easy). After you do this Calibre will automatically convert your epubs to kepubs (Kobo ePub) when you send the book to your reader. This will fix all of your problems

Last edited by Sir Loyne; 10-16-2016 at 05:49 PM.
Sir Loyne is offline   Reply With Quote
Old 10-16-2016, 04:33 PM   #10
robko
Wizard
robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.
 
Posts: 2,454
Karma: 5469320
Join Date: Jul 2010
Device: Kobo
Quote:
Originally Posted by Poppaea View Post
In real life that wasn't the case with the Sony accounts, what makes you think they'll act differently now?
I was not aware of that. So even if there is an epub option for a book bought directly from Kobo, if you had the same book transferred over from Sony you can't access the epub version (as opposed to the small number of books that don't have an epub version at all)?
robko is offline   Reply With Quote
Old 10-16-2016, 09:06 PM   #11
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by robko View Post
I was not aware of that. So even if there is an epub option for a book bought directly from Kobo, if you had the same book transferred over from Sony you can't access the epub version (as opposed to the small number of books that don't have an epub version at all)?
From what I saw when Sony accounts were transferred, the vast majority of books were available in the new Kobo accounts in exactly the same way as if the books had been bought from Kobo. i.e. epub downloadable from the library or kepub downloaded to the Kobo apps and devices. There were some books that didn't transfer, but my impression was that this was well under 10%.
davidfor is offline   Reply With Quote
Old 10-16-2016, 09:14 PM   #12
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,401
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Poppaea View Post
In real life that wasn't the case with the Sony accounts, what makes you think they'll act differently now?
The only person I know who was caught in the move from Sony to Kobo had 95% of the ebooks in his library made available in downloadable epub format and Kobo's direct sync to Kobo devices/apps kepub format. A few of his books were not available after the transfer and it took a while to get some of them made available while others did not seem to be available from Kobo and he finally gave up on them. I will note that he could not sync the kepubs to his ereader until after he moved to a Kobo device but the Kobo desktop app synced them immediately.
DNSB is offline   Reply With Quote
Old 10-17-2016, 04:35 PM   #13
Sir Loyne
Connoisseur
Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!Sir Loyne , Klaatu Barada Niktu!
 
Sir Loyne's Avatar
 
Posts: 71
Karma: 5392
Join Date: Oct 2016
Device: Kobo Aura One
Perhaps this is more of what you're looking for.

Enable Full Screen Mode on Kobo eReaders
Sir Loyne is offline   Reply With Quote
Old 10-19-2016, 05:48 PM   #14
ZodWallop
Gentleman and scholar
ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.
 
ZodWallop's Avatar
 
Posts: 10,989
Karma: 108312789
Join Date: Jun 2015
Location: Space City, Texas
Device: Clara HD; Nook ST w/Glowlight, (2015) Glowlight Plus, Paperwhite 3
Quote:
Originally Posted by Sir Loyne View Post
...install the Kobo Touch Extended plugin...Calibre will automatically convert your epubs to kepubs...This will fix all of your problems
I have the plugin and really do appreciate it. But it won't fix the problem the OP mentioned. Instead of having one bar, he'll have two and by default they can not be adjusted.
ZodWallop is offline   Reply With Quote
Old 10-20-2016, 11:59 PM   #15
chromeuser
Member
chromeuser began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Apr 2016
Device: Samsung Tab A 10.1, Fire HD8, Kindle Paperwhite, Kobo Aura One
Thanks everyone for the contributions.

Sir Loyne - I tried converting an epub to kepub, via Calibre, and you were right it makes a huge difference (the converted e-book is far more responsive to line spacing, margins etc.). I just don't think the Kobo Aura One handles epubs very well. I decided to do a factory re-set and remove all the epub patches and just keep KOReader on the device. I only use KO Reader for PDF files.

I installed the Kobo Touch Extended plugin and the kepub batch convert plugin. It might be a nuisance to convert every epub to a kepub but that is what I do when converting an epub to a mobi for the Paperwhite. The only difference is that I can do it online and send it direct to my Kindle, via my email. However, the excellent hardware and larger screen with the Kobo makes it worth it.

ZodWallop - I tried the plugin with one epub conversion and it works. I can now alter all the margins (top, bottom, left and right). Of course, this is just one epub, so not too sure how it works out with others. I only wish Kobo will let us remove the header and keep the footer only. The full screen patch allows you to remove both or keep them. Anyway, I don't mind too much, due to the larger screen. I can understand how annoying it would be with a six inch Kobo.
chromeuser is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aura Remove top/bottom margins mortimer7 Kobo Reader 23 10-29-2015 11:45 PM
Converting epub to PDF - can't get top/bottom margins to work Cayo Conversion 17 04-12-2012 08:19 PM
top and bottom margins when converting to pdf jhsrennie Conversion 3 04-06-2012 02:26 AM
Wider top and bottom margins in LRF Uke Devices 3 05-06-2011 07:55 AM
Missing TOC, top/bottom margins and hyperlinks in ePub -> PDF conversion amoroso Conversion 2 04-26-2011 10:48 AM


All times are GMT -4. The time now is 10:27 AM.


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