06-26-2020, 08:51 AM | #376 | |
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
|
Quote:
|
|
06-26-2020, 01:17 PM | #377 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Nov 2011
Location: france
Device: kobo libra 2
|
Ok I have merged the part45.html and generated a new toc for files with calibre editor and all the footnotes seem to have the same pop-up behavior. I don't have see anywhere that the toc could disturb the footnote/endnote with kepub. Can this be "automatized" with the plugin ?
|
Advert | |
|
06-27-2020, 12:37 AM | #378 | ||
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
|
Quote:
Quote:
|
||
06-28-2020, 12:02 PM | #379 |
Member
Posts: 19
Karma: 10
Join Date: Jan 2017
Location: Birmingham, UK
Device: Kobo Aura H2O
|
I hope this isn't too far off-topic: does anyone know if there's a trick to convince the Calibre Editor to open a KEPUB file as an ePub? When I buy books from Kobo, I like to keep them in KEPUB format, so that I know it's an "official" KEPUB, and so that the output plugin simply copies the existing KEPUB directly to the device.
However, in order to do any editing of the file, I have to change the file's extension before I can edit it, then change it back. This is a bit of a pain. Any ideas? |
06-29-2020, 10:00 AM | #380 | |
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
|
Quote:
Otherwise, if you are willing to run calibre from source, I can tell you what changes to make to the source to edit kepubs. |
|
Advert | |
|
06-30-2020, 06:58 AM | #381 |
Zealot
Posts: 137
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
|
|
07-01-2020, 03:59 AM | #382 | |
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
|
Quote:
"add the kepub as an epub": You have to add the book to calibre. There are several ways to do this (press the add button, drag-and-drop, auto add, using the command line tools, probably others). But, it basically means telling calibre about the copy of the book in it's current format. Calibre uses the extension work out the format of the book. If you have a kepub from somewhere, it needs to have the extension "kepub" for calibre to see it as a kepub. If you use the extension "epub", it will be treated as an epub. As a kepub is actually an epub with some specific code added to it, you can change the extension to "epub" and calibre will just treat it as an epub. "use the extended driver" That is exactly what it means. Calibre comes with a built-in KoboTouch driver. This is used to communicate with Kobo devices. The KoboTouchExtended driver (the "extended driver") is an plugin that can be added to calibre and adds function to the built-in driver. The main one is an on-the-fly transformation of epubs to kepubs when an epub is sent to the device. It is generally used as an alternative to the Kepub Output plugin (which this thread is for) to create kepubs without adding them to the calibre library. The KoboTouch driver cans send kepubs to the device. If you have them in the calibre library, you do not need the extended driver. But, kepubs are not useful anywhere else. If you do have kepubs from another source, you can add them to calibre as kepubs. Or, you can change the extension and add them as epubs. This allows the books to be used elsewhere. But, if you want them sent to a Kobo device as a kepub, you need to use the extended driver. When the book is sent to the device, the extended driver will check if the kepub code is in the book. If it is, the book will be sent as kepub without any changes. If they are not there, the extended driver will do the work to create the kepub. The decision on what to do depends on what format your books are coming in, and how you want to use them. Other from Kobo, books don't normally come as kepubs. So, most add the format they get them in, and either convert to kepub, or send to the device using extended driver. Or just use the epub format. |
|
07-01-2020, 07:13 AM | #383 | |
Zealot
Posts: 137
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
|
Quote:
Thank you for the explanation and even more for Calibre which is really really a great program. It is said about this plugin that it is better to install KePub Metadata Reader and KePub Metadata Writer. Even if I never done that, the KePub conversion works well. Is it still a best to install those 2 plugins and why? Last, when the kepub is created the cover page revert to lang="en" even if I put lang="fr". Just curious to know why. |
|
07-01-2020, 07:59 AM | #384 | ||
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
|
Quote:
Quote:
|
||
07-03-2020, 07:55 AM | #385 | |
Member
Posts: 19
Karma: 10
Join Date: Jan 2017
Location: Birmingham, UK
Device: Kobo Aura H2O
|
Quote:
|
|
07-03-2020, 09:28 AM | #386 |
Resident Curmudgeon
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Either you trust the trust the extended driver or you read ePub.
|
07-03-2020, 09:53 AM | #387 |
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 Kepub output plugin basically just uses the ePub output plugin to do a conversion and then applies the spans. That code is largely shared with the extended driver. If one doesn't do the spans correctly, the other won't as well.
|
07-04-2020, 10:09 AM | #388 |
Member
Posts: 19
Karma: 10
Join Date: Jan 2017
Location: Birmingham, UK
Device: Kobo Aura H2O
|
Sorry, I was referring more to whether it would always detect that an epub is in fact already a kepub (with spans etc...) and simply send it to the device as-is. Is it safe to rely on its ability to detect that situation as opposed to keeping a copy with the kepub extension in the Calibre library?
|
07-04-2020, 10:58 AM | #389 | |
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
|
Quote:
It wouldn't be hard to fool the extended driver by adding one span with the appropriate class. But, overall, it should be safe. |
|
07-04-2020, 12:37 PM | #390 | ||
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Quote:
Quote:
Like davidfor said, it would not be difficult to fool this plugin (or the extended driver, the conversion code is shared between them). But that would prevent adding spans. To fool it into adding duplicate spans you would need to preprocess all content files to change the class and id attributes, then run the conversion, then post-process the file to restore the original class and id attributes. And at that point it's not a bug in the conversion that duplicate spans get added What would be possible is if Kobo changes the KePub format (it's their own format officially not implemented anywhere else, they can change it anytime they want for any reason) and that update completely changes both the class and id attributes or uses a tag other than "span". But I doubt that's likely to happen. |
||
|
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 |