![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 2072578
Join Date: Jan 2017
Device: Kobo Aura H20
|
Kobo Aura H20 bottom space not removed via css.
I already have the following css in the book.
I just added widows:0 and orphans:0 to the body property that was already part of the epub I had purchased but it's doing _nothing_ to reduce the bottom bar spacing thing. Top bar is removed, but I was trying to reduce the amount of wasted lines at the bottom as right now it looks like it's got ~3-5 lines between the bottom of the book and the "status" bar thing. I like having page number at the bottom but would like to reduce the wasted lines some. Code:
body { -epub-hyphens:auto; -webkit-hyphens:auto; widows:0; orphans:0; } Last edited by masterz87; 01-17-2017 at 03:06 AM. |
![]() |
![]() |
![]() |
#2 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
And the gap is between the top of the bottom bar and the text. So tap the screen to bring up the bottom bar to show the line. The text can go down to just above the line. Quote:
Quote:
Have you checked there are no errors in the CSS? If you are using the epub renderer, and there are errors, the complete stylesheet will be ignored. |
|||
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
There are patches you can apply that will lessen the amount of usable space between the text and the footer. which patches you need dependson which version firmware you ate running.
|
![]() |
![]() |
![]() |
#4 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 2072578
Join Date: Jan 2017
Device: Kobo Aura H20
|
Quote:
the only @page I have is this one and since it _can_ reduce margins by me changing the settings. @page { margin : 20px 30px 20px 30px; } the line-height isn't work for me even though you say it should. It's a standard epub and I could've sworn my old nst the line spacing was able to be changed without any major issues. I am going to dig it out and put the book on there as is, and see if it has a similar issue with line-height aka line spacing. I like to have it set at ~1.5 lines as it makes it easier to read. For the other issue atm I have enabled full screen mode until I can find a real fix. OK so line-spacing isn't working on my nst either. I'll post the whole css I guess as it sems to be valid to me. Code:
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, p, pre, code, blockquote { margin:0; padding:0; border-width:0; } td, th { border-style:solid; border-width:1px; } table { border-collapse:collapse; } li { display:block; } body { -epub-hyphens:auto; -webkit-hyphens:auto; } @page { margin : 20px 30px 20px 30px; } h1.header { -epub-ruby-position:over; color:#212120; font-size:1.25em; font-style:normal; font-variant:normal; font-weight:bold; line-height:1.267; margin-bottom:0px; margin-left:0px; margin-right:0px; text-align:left; text-decoration:none; text-indent:0px; } h2 { font-size: 1.1em; color: gray; } h2.subhead { -epub-ruby-position:over; color:#858586; font-size:1.167em; font-style:normal; font-variant:normal; font-weight:bold; line-height:0.929; margin-bottom:0px; margin-left:0px; margin-right:0px; text-align:left; text-decoration:none; text-indent:0px; } p.base { -epub-hyphens:none; -epub-ruby-position:over; -webkit-hyphens:none; color:#212120; font-size:0.917em; font-style:normal; font-variant:normal; font-weight:normal; line-height:1.182; margin-bottom:0px; margin-left:0px; margin-right:0px; text-align:left; text-decoration:none; text-indent:21px; } p.align-r { -epub-hyphens:none; -epub-ruby-position:over; -webkit-hyphens:none; color:#212120; font-size:0.917em; font-style:italic; font-variant:normal; font-weight:normal; line-height:1.182; margin-bottom:0px; margin-left:0px; margin-right:0px; text-align:right; text-decoration:none; text-indent:21px; } p.first { -epub-hyphens:none; -epub-ruby-position:over; -webkit-hyphens:none; color:#212120; font-size:0.917em; font-style:normal; font-variant:normal; font-weight:normal; line-height:1.182; margin-bottom:0px; margin-left:0px; margin-right:0px; text-align:left; text-decoration:none; text-indent:0px; } p.whitespace { -epub-hyphens:none; -epub-ruby-position:over; -webkit-hyphens:none; color:#ffffff; font-size:0.917em; font-style:normal; font-variant:normal; font-weight:normal; line-height:1.182; margin-bottom:0px; margin-left:0px; margin-right:0px; text-align:left; text-decoration:none; text-indent:21px; } p.copyright { -epub-hyphens:none; -epub-ruby-position:over; -webkit-hyphens:none; color:#212120; font-size:0.5em; font-style:normal; font-variant:normal; font-weight:normal; line-height:1.25; margin-bottom:0px; margin-left:0px; margin-right:0px; text-align:left; text-decoration:none; text-indent:0px; } body{ orphans:1; widows:1; } Last edited by masterz87; 01-18-2017 at 07:11 AM. |
|
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Take out the @page. It's in the way. Then try the eBook again on the H2O.
By having no margins, it gives the person reading the ability to set the left/right margins as wanted with the slider. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
Quote:
My memory was that the line height in the settings worked if there was either no line height in the book, or a relative unit was used. So, if the line height was in em or percent, it would change, but if it was px, it wouldn't. I've just done a test, and it doesn't change the line height if they are set at all in the styles for a paragraph. I don't notice this a I usually strip the line height except for headings and use the smallest setting in the settings. |
|||
![]() |
![]() |
![]() |
#7 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 2072578
Join Date: Jan 2017
Device: Kobo Aura H20
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
But before you do that, there is a margin test ePub that you can load and it will show you how close to the footer you can get. https://www.mobileread.com/forums/at...7&d=1432037904 Last edited by JSWolf; 01-18-2017 at 01:08 PM. |
|
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
I will say that I can get my epubs to display such that there is less than a lines worth of empty space between the bottom of the text and the top of the bottom bar. Sometimes it seems to be more, but when I open the bottom bar and the line is drawn, it is obvious there is not enough space for another line. |
|
![]() |
![]() |
![]() |
#10 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 2072578
Join Date: Jan 2017
Device: Kobo Aura H20
|
Margin test on my NST shows it literally right above the line number It has only a single character below it a ^ symbol and it's only 2 lines of text. The kobo touch the "bottom" bar thing is pointless that it can't be reduced by dedfault. If you open the menu itself it'll cover the book anyway. NST is ~2 lines of text below the margin test itself just ^ symbol, and x of y is below it. That's it.
I had to do standaline as the plugin isn't apparently kept up to date as it won't work with calibre. |
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
How much space is the margin test showing there is between the bottom and the footer on your H2O? It's been more than a year since I've run unpatched firmware and that was maybe a week at most when I first got the H2O.
|
![]() |
![]() |
![]() |
#12 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
You have not specified widows and orphans in the stylesheet. Therefore the device is using the default. And that means you get the big space at the bottom of the screen as the renderer tries to make sure the right number of lines are kept together. The NST is wrong as it is not respecting the default and is forcing a value of 1 for both orphans and widows. The fix is to add "widows:1; orphans:1" to the body tag. |
|
![]() |
![]() |
![]() |
#13 | ||
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 2072578
Join Date: Jan 2017
Device: Kobo Aura H20
|
Quote:
And also the NST has an option that states "publisher defaults" and I'm pretty sure that that is the thing does the margins if you don't select it. On my NST I have the margins set to minimum. That's the whole shebang. It has 3 levels of margins I selected minmum and I imagine that that sets it to 1 line of text between the epub and the status bar. publisher defaults setting seems to e the middle one that proably does 2 lines as it's the "default" setting for reading but i always do minimum margins as I see it as a waste. Plus ereaders are based upon how many page refreshes are done it makes sense to me to decrease them. Quote:
NST the default setting has the space between last line of text and status bar as follows Default setting is ~2 lines. It has 3 options for margins(top,bottom,left, and right together). Minimum setting is 1, highest is 3. So it _is_ doing what's proper non-default setting reduced the blank lines as part of the standard since it was overridden by user configuration. Last edited by masterz87; 01-19-2017 at 02:48 PM. |
||
![]() |
![]() |
![]() |
#14 | ||||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Well, it doesn't. Kobo is using the default in the specs. Whether that is the correct thing can be argued.
Quote:
Quote:
The Kobo reading settings work with the book a lot more than others. The margins effectively works as adding to whatever is in the book. But, it only does the sides and doesn't affect the top and bottom. The line-height works were it hasn't been set. The font size works as a base and relative font sizes set in the book work from this. If the font size in the book is absolute, then it won't be changes. Choosing a font overrides anything set in the book. For epubs, the justification mainly works on paragraphs and doesn't affect headings. Quote:
Quote:
- Set the widows and orphans to 1 in the appropriate parts of the CSS. - Remove the @page or change it to set the margins to 0 or whatever you are comfortable with. - Set the left and right margins on the main paragraph styles to 0 or remove them completely. The book designer should do this, but if you look at the code, it is obvious most have no idea what they are doing and a few think they know better. Doing the above means you will maximize the text on the page. But still get formatting on the page that is important (scene breaks or formatting to show a letter or something ). With this, I have no wasted space at the bottom of the screen. |
||||
![]() |
![]() |
![]() |
#15 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 2072578
Join Date: Jan 2017
Device: Kobo Aura H20
|
Now that it's showing differences in line-spacing it seems the default one is more than 1.5 even at minimum seems to be ~1.6-1.8 and unless I do "publisher defaults" for the font setting it does that insane line spacing. I thought the minimum should be 1 but it seems to be way more than that.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kobo Aura One VS Aura H20 | feebsjee | Kobo Reader | 15 | 10-13-2017 10:01 PM |
Ended Sold: Kobo Aura H20 | Fanchee | Flea Market | 2 | 09-25-2016 09:35 PM |
Buy Kobo Aura H20 | uppon2 | Flea Market | 1 | 12-08-2014 11:41 AM |
KOBO AURA H20 questions | Susan A | Which one should I buy? | 12 | 12-07-2014 08:57 AM |
Kobo Aura H20 vs Aura HD comparison photos | Fanchee | Kobo Reader | 13 | 10-08-2014 01:53 PM |