02-04-2018, 09:28 AM | #1 |
Grand Sorcerer
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Text cut off on right/left on full screen option despite fix
Hi
I'm running firmware version 4.7.10413 on a Kobo Aura one. If text is cursive, some letters such as the f are cut off when they are at the end or beginning of a line. This is despite having the kobo_extra.css fix in place, with the following lines: Code:
body { margin: 0 !important; padding: 0 !important; } div#book-columns { padding-left: 0.2em !important; padding-right: 0.2em !important; } Thanks for your time |
02-04-2018, 01:02 PM | #2 |
Grand Sorcerer
Posts: 12,183
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Disable full screen mode.
|
Advert | |
|
02-04-2018, 02:02 PM | #3 |
Resident Curmudgeon
Posts: 74,097
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You'll need to go into the Kobo developer's forum and get the patches and a copy of the firmware for your KA1. Then you can patch to fix the full screen problem you are having with kepub.
|
02-04-2018, 06:21 PM | #4 |
Grand Sorcerer
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
WTH....
One person suggests turning off the full screen option, which would decrease the amount of text on screen to the point that I could actually just use my old KPW1, and the other suggests installing patches, which I specifically stated I don't want to do. Let me rephrase the question. Has something changed in recent firmwares, which has broken the above CSS-code in some way, and if so, does someone know the solution? |
02-04-2018, 06:32 PM | #5 |
Resident Curmudgeon
Posts: 74,097
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I gave the solution. Patches.
You want patch_name = `Fix three KePub fullScreenReading bugs` in libnickel.so.1.0.0.patch. Last edited by JSWolf; 02-04-2018 at 06:35 PM. |
Advert | |
|
02-04-2018, 07:13 PM | #6 | |
Grand Sorcerer
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Also, you might want to check a recent book sent to make sure the CSS was added. I don't use this function of the driver myself, so if it was broken somehow, I probably wouldn't notice. Or, maybe you disabled the option at some point. Other than that, try fiddling with the padding and see if making it a bit bigger helps. |
|
02-04-2018, 07:23 PM | #7 |
Grand Sorcerer
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Thanks, David. I've only seen this issue with one book, and only because it has some chapters in cursive (which they should be), so they fill the screen. I'll check the options in Calibre and resend a book, and see what happens. I've not changed my calibre options in ages, but I do update it, and the plugins regularly.
|
02-04-2018, 07:33 PM | #8 |
Wizard
Posts: 1,148
Karma: 5061953
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
|
What do you mean cursive? A custom embedded font?
You might have to increase the left and right padding values. The value of 0.2em is used in the patches, (and my .css example) simply because that seems to be enough margin to avoid the problem, but other fonts might need more. My css is a little different from yours.. I haven't examined in detail to see what the difference would be, but I use: body { margin: 0 !important; padding: 0 !important; } body>div { padding-left: 0.2em !important; padding-right: 0.2em !important; } And for those suggesting that patches are the answer, pls take a moment to actually read the patches and see what it actually does? Last edited by rashkae; 02-04-2018 at 07:35 PM. |
02-04-2018, 07:49 PM | #9 |
Resident Curmudgeon
Posts: 74,097
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
One reason the patches are the answer is that you then don't need extra CSS. It's just fixed on the Reader.
There are other things you can fix/change with kepub with the patches. |
02-04-2018, 08:15 PM | #10 |
Grand Sorcerer
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
|
02-04-2018, 08:45 PM | #11 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
There are some books where the 0.2em in this stylesheet modification isn't enough:
Code:
div#book-columns { padding-left: 0.2em !important; padding-right: 0.2em !important; } However some publishers used Calibre to create the original book, and so the font-sizes might have been rescaled already. In that case all you can really do is increase the padding in the stylesheet modification above to compensate. 50% increase (0.2em to 0.3em) should be enough in most cases, but sometimes 100% (0.2em to 0.4em) might be needed. I don't know any automatic way to reverse the effects of font size rescaling, and it can be quite a bit of work to do it manually. (There can be other issues with some books too, such as embedded fonts with highly sloped italics, or the publisher has done something stupid like set negative left/right margins on paragraphs.) |
02-04-2018, 08:56 PM | #12 | |
Wizard
Posts: 1,148
Karma: 5061953
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
|
Quote:
Try copying the book file off of the Kobo itself, rename the file extension to .zip. extract it, and examine the css file directly to make sure the Kobo driver successfully appended the code. Edit: On second thought,if that were the case, it would affect all the text in the book, not only the italics paragraphs. Nothing more to do but look at the actually css of the paragraphs in involved to see what's going on. I'm Liking Geoffr's theory of negative margins. In the original book, a margin in the body of the text, and a negative margin on the italicized paragrah, could have been used to make that text appear wider than the rest. But forcing the body margin to 0 would then push the negative paragraph margins off the page. Last edited by rashkae; 02-04-2018 at 09:06 PM. |
|
02-04-2018, 09:16 PM | #13 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
To be practical, if the problem only occurs with the occasional book then the easiest work-around might just be to select a different font to read those books, one that has fairly upright italics and doesn't have characters with large side-bearings. (the built-in Amasis font could be a good choice.)
Last edited by GeoffR; 02-04-2018 at 09:19 PM. Reason: ... to read those books ... |
02-05-2018, 05:22 AM | #14 |
Grand Sorcerer
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Thanks all. Today I'm going to check if the driver actually appends the CSS. I've seen the problem only with one book lately, and only because it has entire chapters in italic (part introductions). If it's one book in a long while that might have this problem, and everything else is working fine, I'm not going to change anything.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
List numbers cut off when text is enlarged! How to fix? | fluoresce | ePub | 2 | 05-10-2017 12:55 PM |
Text still full justifying on iPad, even through style says align left | SamL | ePub | 13 | 04-20-2017 10:24 PM |
How to show position in book in top left and full screen as a percentage | mastershakecup | Calibre | 0 | 11-29-2015 11:03 AM |
CSS solution for words cut-off in kepub full screen reading | scoky | Kobo Reader | 35 | 04-29-2015 02:07 AM |