![]() |
#16 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 62
Karma: 13112
Join Date: Feb 2013
Device: Kindle Paperwhite; KOBO AURA HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#17 |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Thanks Anak for your detailed explanation. I've just learned the "technical" name (negative side bearing) for my "ordinary" protrusion name...
![]() |
![]() |
![]() |
![]() |
#18 | |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
EDITED I was fully wrong. Fullscreen mode DOES affect the text trimming issue. See this post. Last edited by arspr; 12-17-2014 at 05:46 PM. |
|
![]() |
![]() |
![]() |
#19 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
|
![]() |
![]() |
![]() |
#20 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Will this work with sideloaded kepubs created by Calibre? I guess it doesn't work if the kepub is just a renamed epub. Last edited by GeoffR; 12-15-2014 at 10:40 AM. Reason: Should work with synced kepubs, not sure about sideloaded |
|
![]() |
![]() |
![]() |
#21 | |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
![]() Edited: I was fully wrong. You can explicitly test with my final version of Jellby's test book which you can grab in this thread. Just kepubize it however you prefer and enjoy. One of the final tested is just a repeated italic "jf" text. Last edited by arspr; 12-17-2014 at 05:47 PM. |
|
![]() |
![]() |
![]() |
#22 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,530
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Saying it only happens in kEpubs is rather misleading. Does this happen in OFFICIAL kEpubs as well as user created ones?
Sent from my Nexus 7 using Forum Fiend v1.2.14. |
![]() |
![]() |
![]() |
#23 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
1. Text gets cut off at the right, as if the whole screen has been shifted right. Only happens with kepubs in full-screen mode that have a non-zero body margin. 2. Certain characters (such as j,f) get cut off (left or right). Can happen with kepubs in either mode. Problem 1 is solved by setting the body margin to zero. As far as I have seen official kepubs have a zero body margin already, but Calibre-created ones might not. Problem 2 is solved by adding padding to a wrapper div. Official kepubs come with the necessary wrapper, but it lacks padding. Calibre-created kepubs are missing the wrapper altogether. (There is now a firmware patch to add padding to the wrapper, but it only works with official kepubs because Calibre-created ones lack the wrapper.) |
|
![]() |
![]() |
![]() |
#24 | |||||
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
Quote:
Quote:
Quote:
Quote:
The problem is solved adding any kind of "room" to the text in order to contain those negative side bearing characters. It doesn't matter if you use either padding or margin, or if you directly apply them to body, div or even p. (But curiously, if you add margin through the device GUI, the problem is NOT solved. WTH!?!?). Last edited by arspr; 12-16-2014 at 01:47 PM. |
|||||
![]() |
![]() |
![]() |
#25 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Edit: On second thought, perhaps adding something something like body div, body p {padding: 0 1%} would work ... Quote:
Last edited by GeoffR; 12-16-2014 at 02:12 PM. Reason: On second thought ... |
||
![]() |
![]() |
![]() |
#26 | |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
(But when using a 0 margin in GUI, although the device actually has a minimum available margin. I mean that RMSDK (epubs) does actually have a 0 margin so, of course, you get trimmed characters because they are partially outside the screen. But ACCESS (kepubs) always has a small margin even at the minimum value in GUI. But even with this available space, you get trimmed fonts when the slider is at it's minimum value). But if you use padding in-book instead of margin, then even with a 0 margin slider in GUI the problem is gone. So as Anak said, padding ("internal" margin) is therefore more effective than margin ("external" one) in order to "fix" the trimming font issue. EDITED And solved the trigger of the word trimming issue (the start of the thread). The problem arises when you have body with a margin different than 0. (Remember that if it is not set it defaults to 0). As example: In the Moby Dick book posted in the third message each html file has three linked stylesheets (1.css, 0.css and psepub.css). And body has margin set in 0.css (margin: 5%) and in psepub.css (margin: 0.5em). (In case you want to know the highest priority one is the psepub.css one) So when you are doing the last conversion, it seems you are ADDING an even higher priority style which overrides the former ones. The result: your final book has a body with margin 0 and then it works. And as I hate margins, I always kill that setting in my books. Because of that I always have an effective 0 margin (the default value if not set) and because of that I haven't suffered it as I said in the second post. Probably the time I suffered it was because I just uploaded the book before doing my "compulsory" editing... Last edited by arspr; 12-16-2014 at 05:07 PM. Reason: Solved the trigger of WORD trimming. |
|
![]() |
![]() |
![]() |
#27 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Quote:
Quote:
I've posted a new patch for firmware 3.12.0 that adds padding to the div and p elements immediately below body, this should work for sideloaded kepubs. |
|||
![]() |
![]() |
![]() |
#28 | |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
![]() ![]() ![]() ![]() Either you, or much more possible I, are doing something wrong... I'll post a simple test book because there cannot be such discrepancies in such simple tests... But not today, I'm going to bed. ![]() |
|
![]() |
![]() |
![]() |
#29 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
The difference with the kepubs results could be that I am adding margin/padding to the device's built-in stylesheet, rather than to the book's stylesheet, and testing with synced kepubs.
|
![]() |
![]() |
![]() |
#30 | ||
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
Look at the first attached picture. That book (it's Jellby's updated test book from here) has body {margin: 0; padding: 0} but I've set body {margin: 1em} through kobo-book.css. And you can see how the trimming issue is gone. (Although, as I said, it reappears if I set the device margin setting at 0. In that picture it is actually set at 1, I mean, at the next possible minimum value in the GUI slider). Quote:
![]() OTOH and somehow offtopic... I don't like how kepub-book.css is working... I mean the exact kepub-book.css code I've used is: Code:
body { margin: 1em; } Code:
body { margin: 0; padding: 0; } ![]() ![]() Last edited by arspr; 12-17-2014 at 04:25 PM. |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Letters of some words are cut off on the right hand side of Calibre screen | innogen | Calibre | 1 | 12-02-2012 10:10 PM |
Kindle 4NT Full-Screen PDF Reading(HELP) | CapitainDerya | Kindle Developer's Corner | 2 | 09-25-2012 03:45 PM |
Possible solution for full screen images | erez213 | Kindle Developer's Corner | 242 | 06-20-2012 11:15 AM |
THE full screen reading | irukandji | Kindle Developer's Corner | 5 | 08-08-2011 10:21 PM |
Gen3 Words "falling off" the screen / sentences cut off (mobipocket) | Spektakel | Bookeen | 6 | 04-17-2010 11:26 PM |