![]() |
#16 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
If I can get EPUBs to work in full screen without leaving parts of the screen blank and NOT get KEPUBs to work, I wonder what I'm going to prefer; the full screen reading, or the chapter previews and time to read of the KEPUBs. I stopped caring about TTR on the Kindle, because it's unreliable; at some point, it *always* suddenly cuts TTR in half. |
|
![]() |
![]() |
![]() |
#17 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Alhough it is better to solve the problem with CSS, if the cut-off problem you are seeing is the one where only certain letters are cut off (ones with large side bearing values, such as J and f), a work-around is to use a font that doesn't have letters with large side bearing values. It just happens that the default font on Kobo (Georgia) has very large side bearing on some letters and so is especially badly affected by the problem.
(An example of a font without large side bearing values is Caudex. See the Google specimen.) Last edited by GeoffR; 09-13-2016 at 04:57 AM. Reason: Addedlink to Google specimen |
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
With regard to patching: it's a bit confusing. The two patches I am interested in are the KEPUB full screen fix patch, and the Font Freedom patch, but I haven't been able to figure out yet where to get the correct version of the firmware and the patch. I understand how to install it, but I can't find the files and be sure they're the right versions. If I would like to undo the patch (assuming the reader boots), would I be able to just flash the default firmware? If the reader does not boot, what would I do to get it working again? |
|
![]() |
![]() |
![]() |
#19 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
All the `Fix three KePub fullScreenReading bugs` patch does is set the margin and padding to zero in the device's built-in stylesheet when full-screen mode is used, so if the patch fixes that problem then you should be able to fix it without the patch by setting the margin and padding to zero in the book's stylesheet. Quote:
|
||
![]() |
![]() |
![]() |
#20 | ||||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
Should it be: Quote:
Quote:
Quote:
|
||||
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Code:
body { margin: 0 !important; padding: 0 !important; } div#book-columns { padding-left: 0.2em !important; padding-right: 0.2em !important; } To be sure that Calibre is adding the CSS correctly it is best to examine a book after it has been sent to the device. i.e. after sending it to the device, copy the kepub.epub file from the device back to the PC and unzip it to check that the stylesheet and html has been modified correctly. Last edited by GeoffR; 09-13-2016 at 07:44 AM. Reason: added !important |
|
![]() |
![]() |
![]() |
#22 | ||||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
What does the second line do exactly? In the thread I linked previously, it is mentioned that it adds 'soft margins', but I don't know about the rendering (and associated problems) on Kobo devices to guess what it means. Quote:
Quote:
This slider problem which you mentioned (and which I have already encountered): Quote:
|
||||
![]() |
![]() |
![]() |
#23 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
The fact that the glyphs would be clipped in the first place is probably because of a bug in the KePub reader. (One that isn't present in the ePub reader, which uses a completely different rendering engine.) The reason that the bug isn't usually noticed in KePubs in normal reading mode is that there the viewport is set to the full size of the screen and the user-selected margins are added by changing the body margin, so the bug is only seen when the margins are set to minimum. In full-screen mode the body margins are supposed to be zero and the margin slider changes the size of the viewport instead, so the bug is seen at all slider positions. (That is just what I think based on looking at code in the firmware, I don't know all the details.) Quote:
In practice the problem with the margin slider stoppng working after a chapter boundry is crossed is not a major annoyance because once you set the margin slider for one book it becomes the default for the next book and you don't often need to change it again. |
||
![]() |
![]() |
![]() |
#24 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#25 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
It is mainly compiled C++, so you need to disassemble the executable code and read assembly language, but there is also a certain amount that can be learned from the CSS strings embedded in the executables.
|
![]() |
![]() |
![]() |
#26 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
In that case, it's a miracle you get your patches to work correctly. A lot of people have enough trouble getting normal C/C++ code they are writing themselves to run crash free, let alone having to inject new code into an existing binary
![]() |
![]() |
![]() |
![]() |
#27 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@Katsunami,
If I may I'd like to respond to this statement you reported in the 'Kobo Aura One owners thread'. It's probably more technically detailed than the general readers of that thread want to hear about with their new toys. Quote:
Code:
body { widows: 0 !important; orphans: 0 !important; } For your extra info, you may not be aware that widows, orphans and @page statements are treated as special cases by the calibre drivers if you include new statements for them in kobo_extra.css. All existing widows/orphans/@page CSS code in your epubs will be completely removed before appending your new values. So !important wouldn't achieve anything anyway. ETA: In case I haven't been clear, all the above refers to dealing with standard epubs not kepubs. Last edited by jackie_w; 09-13-2016 at 10:10 AM. |
|
![]() |
![]() |
![]() |
#28 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
Quote:
!important means: "Use these values, whatever comes after." A cascading stylesheet overwrites values of properties, so if you set "X" to 15 on an element, and then you set it to 20 on the same element (further down in the same stylesheet, or in one linked after the one that has "X" at 15), then the value will be 20. If you set "X" to "15 !important" however, the value will not be overwritten. The "!important" value will be the one used, independently of where it appears in the stylesheet. (Maybe it can be overwritten by a later defined, new "!important" on the same element; I don't know that.) Quote:
|
|||
![]() |
![]() |
![]() |
#29 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 521
Karma: 8500000
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe, Kindle 4 Touch
|
Quote:
So, in this case, it works, but in the general case, !important can be overridden, depending on where and how it is applied. Last edited by nabsltd; 09-14-2016 at 05:08 PM. |
|
![]() |
![]() |
![]() |
#30 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Thanks for the extra information
![]() ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
confused about moon reader pro and calibre companion | Kaysclie | Kindle Fire | 36 | 01-26-2015 05:13 PM |
confused by epub page numbering | cybmole | Sigil | 12 | 06-11-2011 04:45 PM |
Confused about epub on Sony Reader | ficbot | Sony Reader | 12 | 05-01-2009 12:16 PM |
new member, mac user, kindle reader, confused | crow | Introduce Yourself | 5 | 01-03-2009 08:00 AM |
Sony Reader and DRM'ed books - confused | garygibsonsf | Which one should I buy? | 6 | 01-07-2008 09:37 PM |