Mobileread
[Device Plugin] Kobo Touch Extended Driver
#1  jgoguen 04-19-2013, 09:09 PM
THIS PLUGIN IS BEING INTERMITTENTLY DEVELOPED! FEATURE REQUESTS AND BUG REPORTS MAY TAKE A FEW DAYS TO BE REPLIED TO.



This plugin enables some additional features for all Kobo devices supported by calibre from the Kobo Touch onwards. ePub books processed with this plugin will be rendered using Kobo's internal kepub renderer instead of the standard ePub renderer.



The main benefits of using the kepub renderer (which some may prefer not to have) are:





You are encouraged to install these two plugins as well, to ensure KePub metadata is correctly processed when sending to your Kobo device:



Usage

To use this plugin after installing:





Special Notes



Installation Directions

Open Preferences -> Plugins -> Get new plugins and install the 'Kobo Touch Extended' plugin. You may also download the attached zip file and install the plugin manually, then restart calibre as described in the Introduction to Plugins thread.



Known Issues

Not everything works perfectly all the time. Here are some of the issues I know about that are likely to stick around for a while.



Spoiler Warning below












Contributing

Decided you want to contribute to the development of this plugin? Awesome! If you want to contribute to the development of this plugin, you have many options:





Submitting Bugs

Found an issue? Have a new feature request? Great, I want to hear from you! Go to the BitBucket issue tracker and submit a new bug report. To save us all time, please make sure to include the following details:





Although I'm generally perfectly happy to discuss possible issues here, any issues sent to me through any means other than the Launchpad bug tracker (including email, PM, etc.) may be silently ignored. This is not because I don't care! It's because I have a terrible memory, the BitBucket issue tracker is my "to-do list" for this plugin, and there's been instances where I've seen a post or PM here and promptly forgotten all about it until I happened to stumble across the post again later. If you aren't sure if you have an issue, feel free to post here and we can work together to decide if you need to make a new Launchpad issue or not. If you are sure you have an issue, or if you have an error or exception from calibre, post a new issue. It isn't necessary to post here when you make a new issue, I get notified of all new bugs and I check the list regularly. The worst that could possibly happen on BitBucket is the same that could happen here: I'll tell you that it's not a bug and you'll have the opportunity to convince me otherwise!



README file

The current version is always here on BitBucket.



Version History

Spoiler Warning below







Version 3.0.2 - 2017-12-24
Call load_translations where there are translated strings
Version 3.0.1 - 2017-12-03
Fixed an error uploading DRM-encumbered files. Added new translations.

Version 3.0.0 - 2017-10-30

Imported to BitBucket, made small bugfix and formatting changes, new translations

Version 2.8.2 - 2016-09-19

Fix a typo resulting in an always-true error

Version 2.8.0 - 2016-08-20

Fix a problem with hyphenation introduced in version 2.7.0

Update database code to use apsw for increased performance.

Version 2.7.2 - 2016-07-03

Set minimum calibre version to 2.61.0

Version 2.7.1 - 2016-06-26

Spanish (es_ES) translation update

Version 2.7.0 - 2016-06-26

New settings display format

[B]Version 2.6.2 - 2016-05-16

Fix exceptions raised when the spine has files not actually in the book (a.k.a., fixing what the publisher should be fixing)

[B]Version 2.6.1 - 2016-04-13

Fix spaces being removed from some tags

[B]Version 2.6.0 - 2016-04-09

Be more Kobo-like in KePub generation (whitespace between sentences goes at the beginning of the following span)

Version 2.5.3 - 2015-09-30

Fix problem preventing the cover image from being set properly with unusually-set OPF IDs

Version 2.5.2 - 2015-09-23

Fix mangling of file names when saving to the device.

Version 2.5.1 - 2015-08-05

Fix problems with file names not being converted properly

Version 2.5.0 - 2015-08-03

General tweaks and improvements from adding metadata read/write and conversion input

Version 2.3.3 - 2015-02-02

Update style-hacks.css to remove everything except the padding rules

Version 2.3.2 - 2015-01-30

Update to wrap the book text in divs matching Kobo KePubs, with accompanying CSS changes

Version 2.2.19 - 2014-08-13

Fix an issue with text after empty tags being duplicated

Version 2.2.18 - 2014-07-16

Fix an issue with prefs panes not loading properly

Version 2.2.17 - 2014-07-09

Compatibility with upcoming calibre 2

Version 2.2.16 - 2014-05-30

Bug #1324884 - Image tags need to be wrapped in koboSpan tags

Version 2.2.15 - 2014-05-01

Bug #1310967 - properly decode internal content files that are not UTF-8

Version 2.2.14 - 2013-12-20

Translations update

Version 2.2.13 - 2013-11-16

Support Firmware 3.0.0

Version 2.2.12 - 2013-11-08

Bug #1246505 - Stop adding spaces around em-dashes

Add translation support and initial translations

Version 2.2.11 - 2013-10-28

Support database version 89.

Version 2.2.10 - 2013-10-13

Bug #1227733 - Allow choosing the page number format (normal per-chapter or full-book)

Version 2.2.6 - 2013-08-28

Bug #1217488 - Commit container after mainline driver processing

Version 2.2.5 - 2013-08-25

Bug #1216504: Properly handle Processing Instruction and Comment nodes

Version 2.2.4

Bug #1215698 - Fix crashing on first-time plugin configuration

Version 2.2.3 - 2013-08-20

Code restructured to allow sharing as much code as possible with the new conversion output format plugin.

Update to not process books that have already been processed by the conversion output format plugin.

Version 2.1.0 - 2013-08-02

Bug #1205702 - met67 fixed the nested Kobo spans, which appears to resolve highlighting issues.

General updates to support KoboTouch driver changes in calibre 0.9.42

Version 2.0.2 - 2013-07-30

Bug #1206406 - Update hover text for hyphenation

Bug #1206451 - Do not crash when configuring from the Configure This Device option.

Version 2.0.1 - 2013-07-29

Bug #1205976 - Fix crash on non-ePub file upload

Bug #1204730 - Allow easy choice between ePub and KePub upload

Version 2.0.0 - 2013-07-28

Allow the options dialog to be scrollable so people with small screen resolutions don't lose parts of the dialog.

Bug #1202864 - When copying KePub files to a debug directory, use the driver save template to generate the path to copy the book to.

Bug #1197219 - When silently ignoring failed conversions, actually upload the books as ePub instead of teasing the poor end user with suggestive wording.

Add an option to block award tiles from the home screen.

Improve detection of books already converted to KePub to avoid processing a converted book again.

Bug #1204907 - Change hyphenation option to use CSS-based hyphenation. Updated README with new method and directions.

Bug #1205703 - Embed driver details in converted books for improved debugging.

Version 1.5.0 - 2013-07-02

Bug #73 - Fix auto-detection of the ePub cover image

Bug #69 - Add an option to add a DB trigger to disable the ReventBooks tile when processing new books. Applies to side-loaded and Kobo-synced books.

Add an option to add a DB trigger preventing the Kobo analytics DB table from being updated.

Version 1.4.3 - 2013-06-16

Bug #66 - Do not add spaces after punctuation marks where there shouldn't be any.

Bug #68 - Fix issues with multi-line comment nodes being mangled when smartening punctuation.

Version 1.4.2 - 2013-06-09

Support Kobo FW 2.6.1.

Bug #60 - When sanitizing file names, remove all characters prohibited by Windows.

Bug #61 - Parse content files even if they have the wrong content type.

Bug #65 - Fix errors sending books with smarten punctuation enabled.

Do not add the Kobo JavaScript if there is already a kobo*.js file present.

Tighten up logic when detecting cover image without OPF metadata hints.

Do not add Kobo spans to files that already have them.

Force cleanup of invalid markup.

Version 1.4.1 - 2013-05-30

Bug #56 - Remove slashes from names when sending books

Bug #57 - Fix handling of ProcessingInstruction nodes

Bug #58 - Make sure there's actually text to append to

Version 1.4.0 - 2013-05-27

Bugs #48, 52, 53 - Optimize Kobo span generation, significantly reducing file size and DOM complexity.

Bug #54 - Verify that a node has children before trying to reference child nodes.

Bug #55 - Fix issues with adding spaces where there should be none by including the trailing whitespace in the text group regex

Do not consider the semi-colon a full-stop character. It's used for entity encoding.

Version 1.3.3 - 2013-05-22

Bug #42 - Only set the ImageID for books in the current calibre library.

Bug #43 - Allow specifying a directory to copy generated KePub files to (for debugging purposes).

Bug #44 - Don't process ProcessingInstruction nodes like normal nodes, they're special.

Bug #45 - Fix missing text between HTML tags.

Bug #46 - Update ImageID fields in batches to avoid Python query limits.

Bug #47 - Properly account for multi-line text nodes that start with line-break characters.

Bug #50 - Only set the ImageID field when covers are being uploaded.

Fix issues smartening punctuation when HTML comments are present.

Version 1.3.2 - 2013-05-17

Add significantly more Kobo span tags to improve position detection and hopefully fix bookmarks and annotations

Fix issue preventing this plugin from working with calibre 0.9.30 or later on Windows and Mac due to a bug in Python 2.7.4 (Linux users were unaffected)

Version 1.3.1 - 2013-05-09

Firmware 2.5.2 is now supported

Version 1.3.0 - 2013-05-08

Firmware 2.5.1 is now supported

A new option to smarten punctuation during conversion is now available

Spaces are properly added where text is followed by XHTML tags

Error position reporting is improved

Extract Kobo JavaScript from a provided KePub (see the README for details)

Issues resolved detecting where to add Kobo span tags

Version 1.2.7 - 2013-04-17

Fix an issue where the selected node does not always have a parent to be removed from.

Fix an issue where hyphenating removes spaces when HTML tags follow text.

Version 1.2.6 - 2013-04-17

Fix an issue which prevented non-ePub files from being sent to the device

Add progress reporting

Previous versions - Please see the GitHub commit log

[zip] KoboTouchExtended.zip (30.7 KB, 17814 views)
Reply 

#2  ShellShock 04-20-2013, 04:28 AM
thanks. When using this plugin, is the title bar displayed when reading, as usual with kepubs but not with epubs?
Reply 

#3  jgoguen 04-20-2013, 05:21 AM
The title bar is another kepub feature. I don't believe I can disable it.
Reply 

#4  buffaloseven 04-20-2013, 11:43 AM
So just out of curiosity, Calibre plugins are entirely python-based (just making sure I'm not missing anything)? If so I could definitely contribute code from time to time. Seems like container.py is the part Calibre talks to and driver.py does the heavy lifting?

The plugin is great; so far I've had no troubles with annotations or bookmarks, but that's probably just as likely to be luck of the draw with my .epub structures. Also, thanks for so quickly addressing the issue with car/cbz files.
Reply 

#5  jgoguen 04-20-2013, 07:25 PM
Yes, so far as I'm aware, plugins are purely Python. For me, container.py is the interface to the unpacked ePub structure, and it's where I do most of the book modification work, and driver.py does the rest of the heavy lifting. There is some modification (hyphenation mostly) outside container.py but I plan to work on moving that around later.
Reply 

#6  Moonraker 04-22-2013, 06:00 AM
How do I disable the main Kobo driver when I am installing this plugin?

Calibre tells me it cannot be disabled.

Am I selecting the correct one to disable?
Reply 

#7  bookwurm70 04-22-2013, 08:38 AM
Okay, so I've downloaded the kobo extended plugin. How do I use it? Will the resulting kepubs say kepub? Will I be able to use the kepub on my iPad/iPhone?
Reply 

#8  jgoguen 04-22-2013, 08:44 AM
Quote Moonraker
How do I disable the main Kobo driver when I am installing this plugin?

Calibre tells me it cannot be disabled.

Am I selecting the correct one to disable?
First, make sure you don't have your Kobo device plugged in while you're doing this.

Then, in calibre open Preferences -> Plugins and look under the Device Interface Plugins list for Kobo Reader Device Interface and KoboTouch. For each one, select it and click the Enable/Disable plugin button. As long as your device isn't plugged in, they should be disabled.
Reply 

#9  jgoguen 04-22-2013, 08:54 AM
Quote bookwurm70
Okay, so I've downloaded the kobo extended plugin. How do I use it?
To use the plugin, you just send books to your Kobo device.

Quote bookwurm70
Will the resulting kepubs say kepub?
On the Kobo device, yes the modified books are identified as KOBO EPUB while unmodified ePub files are identified as EPUB. If you mean in calibre, then no they aren't identified in any way because the kepub version is never saved to your calibre library.

Quote bookwurm70
Will I be able to use the kepub on my iPad/iPhone?
I don't know if you can use the generated kepubs on your iOS app. I don't see why not, but it's not something that I've tested. If you would like to try it and report back on how it worked, there may be other people who would also like to know.
Reply 

#10  bookwurm70 04-22-2013, 09:24 AM
Quote jgoguen
First, make sure you don't have your Kobo device plugged in while you're doing this.

Then, in calibre open Preferences -> Plugins and look under the Device Interface Plugins list for Kobo Reader Device Interface and KoboTouch. For each one, select it and click the Enable/Disable plugin button. As long as your device isn't plugged in, they should be disabled.
Thanks! I disabled the other Kobo plugins. Now all I need is for my Aura to arrive and I'm ready to side load!
Reply 

  Next »  Last »  (1/182)
Today's Posts | Search this Thread | Login | Register