Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-26-2016, 06:51 AM   #46
LittleBiG
Zealot
LittleBiG began at the beginning.
 
Posts: 122
Karma: 10
Join Date: Nov 2014
Device: Kindle Oasis 3, K4NT, Kobo Mini
Thanks, but I am not fully happy yet. How could I make this space smaller? Which value should I modify?
Attached Thumbnails
Click image for larger version

Name:	IMG_20160226_123118_cr.jpg
Views:	740
Size:	223.6 KB
ID:	146729  
LittleBiG is offline   Reply With Quote
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
Advert
Old 02-26-2016, 02:48 PM   #48
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,559
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Another thing is a smaller font and/or smaller line-height.
JSWolf is online now   Reply With Quote
Old 03-01-2016, 03:04 AM   #49
LittleBiG
Zealot
LittleBiG began at the beginning.
 
Posts: 122
Karma: 10
Join Date: Nov 2014
Device: Kindle Oasis 3, K4NT, Kobo Mini
Thanks, it was very thorough and useful.
LittleBiG is offline   Reply With Quote
Old 03-07-2016, 08:26 AM   #50
nicholi
Junior Member
nicholi began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2016
Device: kobo glo hd
Hi guy, can you help me how to edit the patch to show vietnamese book's name. and even i can add vietnamese dictionary. it can not show the word correctly. Thank you.
sorry for my bad English.
nicholi is offline   Reply With Quote
Advert
Old 03-07-2016, 10:56 AM   #51
grizzly666
Junior Member
grizzly666 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Mar 2016
Device: Kobo aura h2o
aparantly i´m a noob

Last edited by grizzly666; 03-07-2016 at 11:18 AM. Reason: Sorry posted in the wrong tread!
grizzly666 is offline   Reply With Quote
Old 03-07-2016, 10:59 PM   #52
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 nicholi View Post
Hi guy, can you help me how to edit the patch to show vietnamese book's name. and even i can add vietnamese dictionary. it can not show the word correctly.
None of the existing patches in this thread can help with that.

The basic problems are that Vietnamese is not one of the languages officially supported by the device UI; and the UI only uses the built-in fonts, none of which fully support Vietnamese; and the built-in fonts are encrypted so we can't change them.

Some languages that are not officially supported such as Russian, Hebrew, Arabic still display the book titles correctly in those languages, but I think that is because there is support for those languages in some of the built-in fonts. I don't know if anyone has worked out how to make the UI use a sideloaded font yet.

However I know little about the dictionaries, I only read in English and hardly use them, so maybe someone else who knows more will have some ideas on how to do it.

Edit: I see you posted in the Modifications for bad eyes thread too. Do as tshering suggests -- make sure you have Vietnamese fonts sideloaded and working correctly -- you might find that some things will work without any patching needed.

Last edited by GeoffR; 03-08-2016 at 12:48 AM.
GeoffR is offline   Reply With Quote
Old 03-08-2016, 02:09 AM   #53
nicholi
Junior Member
nicholi began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2016
Device: kobo glo hd
thank you a lot, i was try but not things can change it, just a little bit annoying when i use dictionary at my phone )
nicholi is offline   Reply With Quote
Old 04-09-2016, 05:29 AM   #54
Number9
Dude
Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.
 
Number9's Avatar
 
Posts: 206
Karma: 2184130
Join Date: Feb 2014
Location: Dobbstown
Device: Kobo Aura One; Kobo Aura H2o; Sony Reader PRS-T3
Thank you so much for this patch GeoffR! My first one, and all went well!
Number9 is offline   Reply With Quote
Old 04-09-2016, 06:12 AM   #55
meeera
Grand Sorcerer
meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.
 
meeera's Avatar
 
Posts: 5,808
Karma: 68407974
Join Date: Dec 2011
Location: Australia
Device: Kobo Libra 2, iPadMini4, iPad4, MBP; support other Kobo/Kindles
I just finally bit the bullet and patched my H2O - thanks Geoff!

The finer brightness control and advanced tweaks on sideloaded fonts are the bomb.
meeera is offline   Reply With Quote
Old 04-20-2016, 02:37 PM   #56
Josieb1
Grand Sorcerer
Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.
 
Posts: 5,084
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra Colour, Libra 2
I've just patched for the first time and it was quite scarey tbh. I only changed the default no to yes for the 'Freedom to Advanced Font Controls' as thats all I wanted, I like Bookely but wanted it darker.

Thanks to everyone who is involved for the instructions which even a code phobic like me could manage

Last edited by Josieb1; 04-20-2016 at 02:58 PM. Reason: Relief
Josieb1 is offline   Reply With Quote
Old 04-28-2016, 12:45 PM   #57
rociox
Junior Member
rociox began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2016
Device: kobo h2o
Gracias!
rociox is offline   Reply With Quote
Old 05-01-2016, 02:14 AM   #58
GERGE
Guru
GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.
 
Posts: 733
Karma: 5797160
Join Date: Jun 2010
Location: Istanbul
Device: Kobo Libra
Hi,

When I use "Custom kepub default margins" patch, I can't set margins at all with Kobo Glo HD. They stay at a minimum value. I didn't have that problem with Kobo Glo.
GERGE is offline   Reply With Quote
Old 05-01-2016, 02:33 AM   #59
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 GERGE View Post
When I use "Custom kepub default margins" patch, I can't set margins at all with Kobo Glo HD. They stay at a minimum value. I didn't have that problem with Kobo Glo.
Are you using full-screen mode?

Just beware there is a new bug in firmware versions 3.19.xxxx that causes the margin adjustment to stop working in KePubs after you have paged past a chapter break. The only work-around seems to be to close the book and open it again, and then adjust the margins before you pass the next chapter break.

This bug is not related to the patch, it happens on an unpatched device too. It only affects KePubs in full-screen mode.
GeoffR is offline   Reply With Quote
Old 05-01-2016, 02:45 AM   #60
GERGE
Guru
GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.GERGE ought to be getting tired of karma fortunes by now.
 
Posts: 733
Karma: 5797160
Join Date: Jun 2010
Location: Istanbul
Device: Kobo Libra
Didn't know that, thanks.

I am using full screen mode and just started reading KePubs. They seem to be much faster in Glo HD than ePubs, and apparently they fixed hyphenation greatly.

Thanks again.
GERGE is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Instructions for patching firmware 3.17.3 GeoffR Kobo Developer's Corner 60 09-17-2015 05:35 PM
Instructions for patching firmware 3.17.0 GeoffR Kobo Developer's Corner 49 08-16-2015 05:20 AM
Instructions for patching firmware 3.16.10 GeoffR Kobo Developer's Corner 12 08-14-2015 03:40 AM
Instructions for patching firmware 3.11.0 GeoffR Kobo Developer's Corner 226 06-01-2015 05:32 AM
Instructions for patching firmware 3.8.0 GeoffR Kobo Developer's Corner 92 10-22-2014 07:22 AM


All times are GMT -4. The time now is 04:35 PM.


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