![]() |
#46 | |
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 have found this for most of the books I have bought from Kobo. But, there have been a few where one format was noticeably better. In most cases, possibly all but I don't remember, it was the epub that was better. I can think of two reasons for this. For older books, the kepub converter might have had problems and messed up the formatting. And Kobo have reconverted these. But, I think the main reason is that the epub was supplied to Kobo had bad formatting. Kobo converted this to kepub and carried the bad formatting with it. Maybe with some extra errors due to GIGO. I think the next step in this is that the epub was fixed. Then it was supplied to Kobo again, but it wasn't sent through the kepub converter. I know that some books have been updated due to complaints made. Some have also been withdrawn because they were so bad, though I think those were missing text rather than just bad formatting. The thing to do is to complain to Kobo about the book. They do fix them, but it can take time. If the epub version is good, that should make it faster. |
|
![]() |
![]() |
![]() |
#47 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 600
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
Quote:
But the added Kobo Code is a sort of "catch all solution" to make sure that Kobo features can be changed through the user interface. But as my example shows it also alters the lay out in an unwanted way. Maybe this can be solved by rewriting the Kobo code but this might be easier said than done but not impossible. |
|
![]() |
![]() |
Advert | |
|
![]() |
#48 | |
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:
As I said, when I compare the epub and kepub versions of books, they are generally the same. I usually read the epub because I fix the formatting problems I see. And I don't want the title at the top or the pages per chapter. But, I have "Childhood's End" by Arthur C Clarke, and if it wasn't for the missing title at the top of each screen, I wouldn't be able to tell the epub and kepub versions apart. It isn't the only one I have like this, but it is one where I read the kepub version because there were no problems. I think there has been changes. Kobo have changed the kepub styling over time. There were more differences in the past. From something Kobo has said, I don't think they have applied this to all books, only new books and those people complain about. Or they are working on them with that being the priority. |
|
![]() |
![]() |
![]() |
#49 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 600
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
I think I've found the answer/solution.
There are "two" kepub versions 1. The "old version", where the kobo.css (/*VERSION:1*/) contains code, and causes the mentioned problems 2. The "new version", where the kobo.css is just an empty file, and doesn't have the mentioned problems. At some point in 2012 Kobo made some changes to the kepub html code to improve the text lay out. Kobo should have patched all existing kepubs by replacing the kobo.css with an empty one. The old kobo.css Code:
html {
height: 100% !important;
margin: 0 !important;
}
img {
max-width: 100%;
max-height: 100%;
overflow: none;
}
body {
font-size: 14pt;
line-height: 1.575em !important;
font-family: 'Georgia' !important;
margin: 0 !important;
height: 100% !important;
overflow-wrap: break-word !important;
}
.KBHeading, h1 {
margin-top: 0 !important;
display: block !important;
text-align: center !important;
font-family: 'Georgia' !important;
font-size: 1.33em !important;
text-transform: uppercase !important;
letter-spacing: 0.1em !important;
}
.KBSubheading, h2 {
margin-top: 0 !important;
display: block !important;
text-align: center !important;
font-family: 'Georgia' !important;
font-size: 1.25em !important;
}
.KBSubsubheading, h3, h4, h5, h6 {
margin-top: 0 !important;
font-size: 1em !important;
font-family: 'Georgia' !important;
font-weight: bold !important;
}
a:link {
color: #1DAEC7 !important;
}
a:visited {
color: #1DAEC7 !important;
}
a:hover {
color: #1DAEC7 !important;
}
a:active {
color: #1DAEC7 !important;
}
p, div {
font-size: 14pt;
line-height: 1.475em !important;
text-indent: 0 !important;
margin: 0 !important;
padding-top: 0 !important;
padding-bottom: 1.0em !important;
text-align: left !important;
}
.KBIcon {
padding-top: 0 !important;
}
.KBFooter {
position: static !important;
margin-left: auto !important;
padding-top: 10% !important;
}
Code:
padding-bottom: 1.0em !important; to padding-bottom: 0 !important; Text alignment to center text However, fooling around with text alignment settings in the kobo.css didn't solve the bug that text that should be displayed as centered was actually displayed as aligned to the left. But when all code in de kobo.css was deleted or replaced by an empty one the text alignment issue was solved. 1. Kepub preview, released May 2013 (no issues, "new kepub") 2. Kepub preview, released September 2012 ("old kepub") Edit: Quote:
The kepub has larger margins because "Kobo" uses a default page margin that come on top of the original page margins as defined in the epub. Except when margins are defined in a template.xpgt this rule of thumb doesn't apply. If you create a epub and set all page margins to 0 (e.g.: @page {margin:0;}, p {margin:0;padding:0;}) you'll see that the kepub has default margins. Last edited by Anak; 05-09-2013 at 05:14 AM. |
|
![]() |
![]() |
![]() |
#50 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,906
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Regards, David Last edited by DNSB; 05-08-2013 at 12:38 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#51 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,625
Karma: 11387182
Join Date: Nov 2012
Location: Canada
Device: Kobo Clara BW, Kindle Paperwhite (11th Gen)
|
The thing I don't like about the kepubs is there's a big space in between every sentence or paragraph.
Like this. And this. Such a waste of a page! So I just sideload and read the normal epubs. |
![]() |
![]() |
![]() |
#52 |
Trying for calm & polite
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,012
Karma: 9455193
Join Date: May 2010
Location: Mostly in Canada
Device: kobo original, WiFI, Touch, Glo, and Aura
|
PurpleStar--that is less true with newer books, as Kobo has made some changes. It seems that they are slowly going through many of the older ones and "fixing" that.
|
![]() |
![]() |
![]() |
#53 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,625
Karma: 11387182
Join Date: Nov 2012
Location: Canada
Device: Kobo Clara BW, Kindle Paperwhite (11th Gen)
|
|
![]() |
![]() |
![]() |
#54 | |
Watching the Sky
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 239
Karma: 634112
Join Date: Sep 2012
Location: Winnipeg, MB
Device: Kobo Aura
|
Quote:
Code:
margin: 0 !important; Code:
margin: 0 auto; |
|
![]() |
![]() |
![]() |
#55 |
Trying for calm & polite
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,012
Karma: 9455193
Join Date: May 2010
Location: Mostly in Canada
Device: kobo original, WiFI, Touch, Glo, and Aura
|
It may not be possible to fully automate this process, and they do have a whole lot of books that could benefit from this.
|
![]() |
![]() |
![]() |
#56 |
Watching the Sky
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 239
Karma: 634112
Join Date: Sep 2012
Location: Winnipeg, MB
Device: Kobo Aura
|
From all the epubs I've taken apart and looked at, it would be so nice if they would simply add something like "class=image" to p/div blocks that are exclusively for images. I assume if you removed the "margin: 0 !important" from the CSS file above, you may end up with funny looking paragraphs elsewhere in the book. If the images were in a div with their own class, it'd be easy to target them in the CSS file.
I know playing around lately that it's probably best to leave the justification settings on the Glo to "Off." Using left or justified will (correctly) apply those settings to everything. That includes items that should be centered (remembering that justified items with a width less than a whole line are left-aligned). |
![]() |
![]() |
![]() |
#57 |
Trying for calm & polite
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,012
Karma: 9455193
Join Date: May 2010
Location: Mostly in Canada
Device: kobo original, WiFI, Touch, Glo, and Aura
|
|
![]() |
![]() |
![]() |
#58 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 444
Karma: 2269648
Join Date: Jun 2010
Location: Toronto
Device: Kobo: Original, WiFi, Touch, Aura, Aura H20, MiniGloHD ;) iOS app
|
Probably us, ie; Kobo.
I think that when books are loaded onto the system there are some automated things that happen to the books, and I believe that adding the kobo css files is one of these things. There were changes last year to the css, and books were being reprocessed. With the number of books we have, that can take some time. Another thing to take into consideration is that any css changes do need to be evaluated on the various platforms to ensure they do not have unwanted behaviour. For example, a change that makes things better on eInk devices could cause a problem for an iOS device. I do recall iPhone and iPad css files, so there can be some device specific customizations, but anything generic we have to be very careful with. |
![]() |
![]() |
![]() |
#59 |
Trying for calm & polite
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,012
Karma: 9455193
Join Date: May 2010
Location: Mostly in Canada
Device: kobo original, WiFI, Touch, Glo, and Aura
|
Sharkus, if it is not a style sheet issue, but rather the coding of the book itself, then that is not a Kobo fix, but a Publisher issue though. Right? I have seen things that a style sheet fix will take care of, but other things that require some tweaking of the book's html.
|
![]() |
![]() |
![]() |
#60 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,906
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Sometimes, even trivial items such as renaming embedded font files which I did today while looking at one of Roger64's books. Changed the font file names, changed the @font-face entries. Everything looked fine except the drop caps. See the images below for what they looked like in ADE on a Windows PC. Ended up changing the drop cap css to some code used before and looked okay again. image 1 = original image 2 = font files renamed image 3 = drop cap css modified (let1) Regards, David Last edited by DNSB; 05-08-2013 at 10:39 PM. |
|
![]() |
![]() |
![]() |
Tags |
kepub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pros and Cons of using Kepubs vs ePubs | kaufman | Kobo Reader | 8 | 04-30-2013 04:41 PM |
Unsynced kepubs show up as on device in Calibre | Mrs_Often | Kobo Reader | 18 | 04-09-2013 07:13 AM |
Is it possible to have kepubs on different devices without them getting locked? | Nascarfan1972 | Kobo Reader | 5 | 01-20-2013 08:10 AM |
[Kobo Glo] kepubs and series (or: some kepubs invisible for Calibre) | beedaddy | Devices | 3 | 01-14-2013 02:05 AM |
kepubs, internal memory & calibre | elmussol | Kobo Reader | 1 | 10-10-2012 06:38 PM |