07-25-2013, 05:32 PM | #496 | |
Calibre Companion Fanatic
Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
Quote:
|
|
07-25-2013, 05:34 PM | #497 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
It can't be done with the way the Kobo device processes information. To do this all at once would require Kobo changing how the firmware processes books.
Like, say, perhaps supporting EPUB3 metadata |
Advert | |
|
07-25-2013, 05:56 PM | #498 |
Grand Sorcerer
Posts: 12,168
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
The challenge is that the row in the database that stores the series info is the same row that only gets created when Kobo processes the book post disconnect,
|
07-28-2013, 03:07 PM | #499 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
KoboTouchExtended version 2.0.0 has been posted. Coming soon to a calibre update notification, or attached to the first post of this thread for the impatient among us
This version breaks compatibility with versions of calibre prior to 0.9.41, and brings support for Kobo firmware 2.8.1. People with smaller screen resolutions should notice that they can now actually see the entire options dialog, which is expected to improve their ability to view and select options. When copying post-conversion KePubs to a directory, the driver save template is now used to generate the file path to copy the book to. When silently ignoring failed conversions, the driver will actually upload the books as ePub now instead of teasing you with suggestive wording and leaving you to wonder where the books went. If you have Reading Life partially or fully disabled, the Awards tile may still show up but be blank. There's now an option to block the Awards tile from appearing at all. The way hyphenation was being done sucked. It caused larger files, caused all manner of issues with the display of text, and made looking up words in the dictionary even harder and more confusing. I saw lots of messages saying that "word" could not be found, but the closest match is "word". Hyphenation now depends on a CSS file that gets added to books during conversion. See the README directions for how to send an improved or new hyphenation dictionary to your device. Sorry, it's not really simple. Hyphenation languages provided are:
To help with future debugging, some details are embedded into each converted book:
|
07-28-2013, 03:27 PM | #500 |
Grand Sorcerer
Posts: 12,168
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Would you consider adding the Readme contents to the first post here? I know that when I was testing somehting the other day, I had wanted to ensure that I had the Kobo.js file in place, and frankly, it was not that straight forward to track down your instructions.
|
Advert | |
|
07-28-2013, 05:13 PM | #501 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Done. Now I just have to try to remember to keep it up to date
|
07-29-2013, 06:42 AM | #502 |
Connoisseur
Posts: 78
Karma: 165868
Join Date: Jan 2012
Device: Nook Touch
|
Hi,
WRT the need of not nesting spans (as discussed here), I have taken a look at the code that adds the KoboSpans and, IIUIC, it loops through the nodes of each (x)html file in the epub and, when it finds a text node (i.e. a node made only of text, without tags), it splits the text on sentence boundaries and replace the textonly node with a subtree of (possibly nested) spans. If this is the case, wouldn't it be easier to add the spans as texts? What I mean is that, when you find a texonly node, you could split it in sentences and then put it back together enclosing each sentence in strings like '<span class="..." id="...>' and '</span>'. The resulting string would then be passed up as a textonly node. This, if supported by the etree library, would be a lot easier to implement and would need very few special cases and exceptions... Please bear with me if I said something stupid, I'm not comfortable with Python and Calibre plugin development (that's why I am not tring this suggestion by myself ) |
07-29-2013, 08:10 AM | #503 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
The thing about etree is that you don't pass up strings like '<span class=...'. Tags are objects and text nodes are just a property of the object. Take this XML fragment for example:
Code:
<p class="test">This is a <strong>text node</strong> of a paragraph.</p>
So, my thought for fixing this is that anywhere I would nest a span tag, I instead end processing the current span and add the new text node as part of the list of child nodes of the parent. Currently, the above fragment would evaluate to: Code:
<p class="test"><span class="koboSpan" id="kobo.1.3">This is a <strong><span class="koboSpan" id="kobo.1.1">text node</span></strong><span class="koboSpan" id="kobo.1.2"> of a paragraph.</span></p> Code:
<p class="test"><span class="koboSpan" id="kobo.1.1">This is a </span><strong><span class="koboSpan" id="kobo.1.2">text node</span></strong><span class="koboSpan" id="kobo.1.3"> of a paragraph.</span></p> |
07-29-2013, 08:34 AM | #504 |
Connoisseur
Posts: 78
Karma: 165868
Join Date: Jan 2012
Device: Nook Touch
|
Uhhmmmm, I made some tests and you are right in saying that what I suggested wouldn't work: when I do something like
Code:
a = ET.Element('a') a.text = '<x>This is inside x tags inside a.</x>' Code:
<a><x>This is inside x tags inside a.</x></a> Keep up the good work and thanks for what you are doing for us |
07-29-2013, 09:15 AM | #505 |
Addict
Posts: 294
Karma: 107414
Join Date: May 2013
Device: Kobo Glo
|
I hesitate asking this, since I've been crying wolf a couple of times before, but I have a really weird problem since the last FW update:
I will sideload a book with Calibre and the extended driver. It will seem to work fine. When I exit the book and then go back into it, the Kobo will freeeze with a blank page with only header and footer visible. The footer will say it is loading the chapter, but nothing more happens. I then have to reboot the Kobo. Sometimes, a book will seem to work for a number of sessions, then all of a sudden this problem will happen. When it does, I have to remove the book from the Kobgo, retransfer it and just read it without ever going to the home screen again. I am at a loss! |
07-29-2013, 09:31 AM | #506 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
https://bugs.launchpad.net/calibre-k...r/+bug/1204504
In general, if you go to file a bug and type in a brief summary (a short sentence, or a few words) you'll get a list of bugs that may be the same as what you're trying to report. The search box on the list of bugs only searches "open" bugs (unless you go into the Advanced Search), the search when reporting a bug includes all bugs by default. So, if you're worried that you're putting something out there that's weird, you can go try to report a bug and see if it's already reported. If it is, you can indicate that it also affects you and toss in your two cents. If not, you can come here as usual, or report the bug on Launchpad. And regardless, searching for bugs is a good idea anyway |
07-29-2013, 10:08 AM | #507 |
Addict
Posts: 294
Karma: 107414
Join Date: May 2013
Device: Kobo Glo
|
Aha, I see that you've been through this already :-) And a workaround through the dictionary, even. I'll go through it after work and see it there is anything I can contribute. Thanks!
|
07-29-2013, 10:19 AM | #508 |
Wizard
Posts: 2,018
Karma: 13471689
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
|
|
07-29-2013, 07:38 PM | #509 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Somewhat embarrassingly, 2.0.1 is released. Improvements here are not crashing when sending non-ePub files, and an easy choice between ePub and KePub uploads.
The consequence of that latter change is that the 'Extended Features' option only enables/disables the Kobo spans and JavaScript addition; all other options are now executed regardless of the 'Extended Features' option. The consequence of the former change is that the plugin does what it's supposed to and I get to go bury myself in a book and try to forget I missed something so trivial |
07-30-2013, 04:17 AM | #510 | |
Guru
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
Quote:
Code:
calibre, version 0.9.41 ERROR: Unhandled exception: <b>AttributeError</b>:'QScrollArea' object has no attribute 'validate' Traceback (most recent call last): File "site-packages\calibre\gui2\device.py", line 944, in validate AttributeError: 'QScrollArea' object has no attribute 'validate' I think the error was there in your 1.60 version and I thought it had gone away with 2.0 but now I've realised that it depends on how you get to the dialogue I can't be sure. BobC |
|
Tags |
error, kobo aura one |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kobo Device Driver Update | davidfor | Devices | 284 | 05-24-2019 05:24 PM |
[Device Plugin] Kindle 2, 3, 4, Touch Device Interface MBP Update Mod | cryzed | Plugins | 7 | 10-28-2012 04:58 PM |
[Device Interface Plugin] Update for Nook Color Driver | jmricker | Plugins | 0 | 10-22-2011 10:11 AM |
Touch Kobo Touch Extended 2 Year Warranty - Is it worth the $34.99? | EverC | Kobo Reader | 11 | 08-31-2011 11:47 PM |
Touch Kobo Touch Extended Warranty Program | SensualPoet | Kobo Reader | 1 | 07-17-2011 04:08 AM |