Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 08-01-2013, 05:38 PM   #541
met67
Connoisseur
met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.
 
Posts: 78
Karma: 165868
Join Date: Jan 2012
Device: Nook Touch
Quote:
Originally Posted by jgoguen View Post
This diff fails to apply. I took a quick look at your container.py and it looks like you've got mixed tabs and spaces for indentation (specifically, 72 tab characters over 29 lines), which Python won't accept and will throw an exception over, and your indentation is way off in some places (even if I convert each tab character to four spaces) as a result. Please re-do container.py, using four spaces as indentation (no tab characters anywhere), make sure indentation is correct, and re-verify just to make sure that nothing got messed up fixing the indentation.

What OS are you running and what editor are you using? There may be some settings changes that you can make to make Python coding easier. If you're using vim I could add the appropriate comment to the top of the file so vim correctly applies the important settings.
Yes, it may well be that I have mixed spaces and tabs (this is my first run with python...).
AW I have successfully used the container.py that I added together with the other file from the last released plugin, without exceptions.
I wrote this under Windows 7, using Ultraedit and I think I use tab set to 2 spaces.
The problem is that I am leaving tomorrow with my family and won't be back near a PC for at least 3 weeks (I'll take my tablet, but no PC).

I'll try to take a look at it tonight, will let you know.
met67 is offline   Reply With Quote
Old 08-01-2013, 06:16 PM   #542
met67
Connoisseur
met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.
 
Posts: 78
Karma: 165868
Join Date: Jan 2012
Device: Nook Touch
Last chance before blackout

I've changed tab with spaces and re-made the diff (couldn't test it, though).

As for my changes, you can just replace your '__add_kobo_spans_to_node()' with mine and add '__append_kobo_spans_from_text()' just before it.
(There is a minor change in 'add_kobo_spans()', I initialize 'segment_counter' to 1 instead than 0, but this should not be a problem)
Attached Files
File Type: zip container_diff.zip (10.9 KB, 139 views)
met67 is offline   Reply With Quote
Old 08-01-2013, 07:25 PM   #543
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Considering that it's the difference between kobo.1.0 and kobo.1.1 it probably doesn't matter, but then again I figured that nested spans wouldn't matter since it's still valid XHTML

If this doesn't work for me I'll try to apply it manually and test it, I'd like to get this in for the update I need to release close to the calibre 0.9.42 update.

Last edited by jgoguen; 08-01-2013 at 07:31 PM.
jgoguen is offline   Reply With Quote
Old 08-01-2013, 08:36 PM   #544
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Good work! The diff applied cleanly, no errors when I checked, and a couple books I tried it on seem to be working properly. I'll commit this and have it out with 2.1.0
jgoguen is offline   Reply With Quote
Old 08-01-2013, 09:12 PM   #545
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by jgoguen View Post
davidfor may have something for you in this next calibre update...
I just have to do the bit I hate most: documentation
davidfor is offline   Reply With Quote
Old 08-01-2013, 09:16 PM   #546
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,087
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by davidfor View Post
I just have to do the bit I hate most: documentation
Do you know of any developer that likes to do the documentation part?
theducks is offline   Reply With Quote
Old 08-01-2013, 09:19 PM   #547
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
That's why technical writers are in demand. Plus, they can write it better and faster than most developers could
jgoguen is offline   Reply With Quote
Old 08-01-2013, 09:29 PM   #548
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
KTE 2.1.0 has been posted. I've asked Kovid to update the plugin index entry, which I expect he'll do around the same time the calibre 0.9.42 release is posted.

This update requires calibre 0.9.42 due to some fairly significant changes in the KoboTouch driver. Good changes though, making the necessary changes on my end reduced the size of my code by about 20%

For bugs, 2.1.0 fixes bug 1205702, where met67 has fixed the nested Kobo span tags. Not too shabby for a first run with Python!
jgoguen is offline   Reply With Quote
Old 08-02-2013, 01:34 AM   #549
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by theducks View Post
Do you know of any developer that likes to do the documentation part?
Quote:
Originally Posted by jgoguen View Post
That's why technical writers are in demand. Plus, they can write it better and faster than most developers could
Well you can see how bad I am by reading https://www.mobileread.com/forums/sho...56#post2584056.
davidfor is offline   Reply With Quote
Old 08-02-2013, 01:53 AM   #550
taming
Trying for calm & polite
taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.
 
taming's Avatar
 
Posts: 4,012
Karma: 9455193
Join Date: May 2010
Location: Mostly in Canada
Device: kobo original, WiFI, Touch, Glo, and Aura
The plugin was available to me before the new calibre update. I am glad that I read this thread and knew to wait and do the calibre update first.
taming is offline   Reply With Quote
Old 08-02-2013, 04:49 AM   #551
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Yea, with time differences there really wasn't any way to make the plugin available at the same time as calibre 0.9.42. The update happens at something like 2am or 3am my time, so either the plugin would be early and fail to load, or late and running in an unsupportable state.

Calibre 0.9.42 is available now though! Probably posted not long after you posted, the post time says 2:53am for me and it seems that the calibre update goes up around then.
jgoguen is offline   Reply With Quote
Old 08-02-2013, 08:10 AM   #552
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,541
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by taming View Post
The plugin was available to me before the new calibre update. I am glad that I read this thread and knew to wait and do the calibre update first.
Well it showed as available for me too but was not installable since the version of calibre it needed was 0.9.42 and I was on 0.9.41
PeterT is offline   Reply With Quote
Old 08-02-2013, 09:12 AM   #553
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,541
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
I wonder if it would make more sense to centralize the various options that the KoboTouchExtended driver and Kobo Utility plugin have for creating database triggers.

Currently we seem to have
KTE:
  • Block Kobo Analytics DB
  • Dismiss New Book Tiles
  • Dismiss Award Titles
Util:
  • Awards
  • Extras
  • Library
  • Recommendations
  • Shelf
  • Top 50
  • Bookstore
  • Global Stats
  • Quick Tour
  • Related Items
  • Sync

Logically, to my mind at least (and we all know how irrational my mind can be at times), all these triggers belong in one place; the Utility and not the driver.
PeterT is offline   Reply With Quote
Old 08-02-2013, 12:27 PM   #554
buffaloseven
Watching the Sky
buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.
 
buffaloseven's Avatar
 
Posts: 239
Karma: 634112
Join Date: Sep 2012
Location: Winnipeg, MB
Device: Kobo Aura
Just a quick question...what exactly does "Clean internal ePub Markup" do? Is it worth checking?
buffaloseven is offline   Reply With Quote
Old 08-02-2013, 12:38 PM   #555
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
I recommend checking it, but really it's up to you. What it does is:
  • Convert em-dashes and en-dashes to their ASCII representation (two and three dashes, respectively; makes it a lot easier later to deal with the XHTML)
  • Remove empty header tags
  • Remove Unicode replacement characters (�)
  • Remove any cruft from any Microsoft program that may have been involved in creating the ePub
In a proper well-formed book, this won't actually do anything. Books made and validated as fully valid with Sigil (or even just validated), for example, won't be changed by this option. However, publishers tend not to always put out well-formed books (which is a shame, that's part of their job IMO) and self-published novels I've looked inside of have generally been even worse.
jgoguen is offline   Reply With Quote
Reply

Tags
error, kobo aura one


Forum Jump

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


All times are GMT -4. The time now is 01:36 PM.


MobileRead.com is a privately owned, operated and funded community.