05-21-2016, 04:20 PM | #166 |
Zealot
Posts: 108
Karma: 695156
Join Date: Apr 2013
Device: Kindle 4 NT
|
Nevermind.
Last edited by evanft; 05-21-2016 at 04:24 PM. |
07-18-2016, 02:17 AM | #167 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2016
Device: Kobo Glo HD
|
I've been struggling with a problem for some time and I haven't been able to find any solution or ideas. When I convert and send some books to my Kobo Glo HD, the page numbers are completely incorrect and messy. For example, the book will start on page 10 in the copyright information, then go to page 15 on the table of contents, jump to 40 on the dedication and then finally begin on page 2, only to jump to page 100 on chapter 2.
The weird thing is that the chapters are actually fine, but I can never know how far into the book I am because of this and the statistics on how long it is to the end of the book are totally wrong too. I have no idea what to do about this and I haven't found anyone mentioning it. Any ideas? Edit: I just noticed that this happens when simply changing the extension from epub to kepub.epub too, so maybe it's not just a problem with the conversion, but I still have no idea what to do. |
Advert | |
|
07-18-2016, 03:29 AM | #168 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
From memory, this is an issue with the ToC in the book. For a kepub to work best, every internal file needs to be in the ToCthere needs to be one one ToC per internal file and. If you edit the book in the calibre editor and rebuild the ToC properly, it should fix it.
|
07-19-2016, 04:52 PM | #169 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2016
Device: Kobo Glo HD
|
Thank you!
|
11-03-2016, 10:39 AM | #170 |
Zealot
Posts: 137
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
|
Gett the Cover page into the Table of Contents
I'm using "Kepub Output" to converting my epubs into kepubs. I'm very satisfied with the output.
However, I'm unable to get a link to the Cover page into the Table of Contents even if I have that link in the original epub file. Do someone know how to? |
Advert | |
|
11-03-2016, 06:42 PM | #171 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Where is the link missing? In the generated NCX or when you look at the ToC on the device?
If the link is missing from the NCX, then you need to check the options for building the ToC. For a conversion, the ToC isn't usually carried over. It is rebuilt from the book using the options specified. The file for the cover is probably just embedding the cover image and has nothing extra that can be picked up as the ToC entry for the cover page. When I want to do this, I add a hidden heading to the file. This will be something like: Code:
<h1 class="hidden">Title of the Book</h1> Code:
.hidden { display: None } |
11-03-2016, 09:36 PM | #172 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@davidfor,
I can confirm what jiembe says. A source epub which has a ToC entry in the NCX for each file including the cover page (a standard calibre SVG-type cover page) produces a kepub which still has the cover page but the NCX entry for the cover page disappears during the conversion process. An epub-to-epub conversion using the same source epub and conversion settings does not lose the cover page entry in the NCX. I can post a small test epub if you need one. |
11-03-2016, 09:59 PM | #173 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
@jackie_w: OK, that's not what I expected. I'll have a look over the weekend.
I probably have a suitable epub, but if you post your sample, then we are working from the same starting point. Can you also post the conversion logs? They will show the settings used and I can make sure I have them correct. |
11-03-2016, 10:38 PM | #174 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@davidfor,
I've attached the test source epub and the converted kepub. Hopefully that's enough, but let me know if something's missing. This is only a guess but I think the problem might have something to do with the cover page file (titlepage.xhtml) being moved out of its text/ sub-directory into the root directory during the kepub conversion. Perhaps the NCX loses track of the move. Conversion job details Spoiler:
Last edited by jackie_w; 11-04-2016 at 02:52 PM. Reason: Pre-judging a problem with no facts is probably counter-productive |
11-06-2016, 12:11 AM | #175 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
The problem is in the calibre conversion code. For everything except epubs, the conversion process strips the ToC entry pointing to the cover before passing everything to the output plugin. I have made a change to add kepub to the exceptions and checked it in. Assuming Kovid agrees, it will be in the next release.
For those who want to check, the change is https://github.com/davidfor/calibre/...fd85fbb5bf941e |
11-06-2016, 09:48 AM | #176 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
[Conversion Output] KePub Output Plugin
Should that be a list in the class, so plugins can override it?
|
11-06-2016, 01:04 PM | #177 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
11-06-2016, 06:32 PM | #178 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
I wouldn't code it as a list. If I was doing it properly, I would probably add a property along the lines of "supports_cover_in_toc". Default that to false in the base OutputPlugin class and set it to true wherever appropriate. That was more than I felt like doing yesterday and the change I made was in keeping with the coding style in of the class and method I was changing. And if we keep adding things like, this Kovid will eventually accept that kepubs are a standard format. Wouldn't we all like to edit kepubs in the calibre editor??? Just two or three changes if anyone is interested.
Also, is the git repository up to date? My local copy doesn't match but I'm not sure which are changes I've meant to throw away. |
11-06-2016, 07:25 PM | #179 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
It should be. Though since I moved the code folder to my Dropbox it wouldn't be the first time I forgot to run "git push"
|
11-10-2016, 06:22 PM | #180 |
Member
Posts: 10
Karma: 10
Join Date: Oct 2016
Device: Kobo Aura One
|
Hi, the right side of my kepub books is slightly clipped, is that a known issue? I'm using an aura one, and it happens with all books that I've tried. The font settings also don't seem to have an influence on the issue.
Here is a sample of what it looks like: http://i.imgur.com/Dhavd3k.jpg |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
catalogue builder output columns are not in the same order in the output | KWhytte | Library Management | 5 | 12-04-2012 02:03 AM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 02:24 AM |
Plugin which uses net as input and output | medve | Development | 0 | 12-04-2011 03:20 PM |
Creat new Output plugin (LaTeX and/or txt2tags) | Lebewesen | Development | 3 | 11-22-2011 11:10 AM |
AZW Conversion Output Plugin | tylau0 | Plugins | 59 | 08-14-2011 10:36 PM |