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 07-31-2013, 09:41 AM   #526
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
Quote:
Originally Posted by jgoguen View Post
Yes, unfortunately so. It will continue to be so until I get around to re-working how the Kobo spans are added. With a small child due Any Day Now, that could be a while before I get around to even looking at it
That's what I thought. I'm excited for you getting a new addition to the family! Our little guy is almost 2 now and it's been one of the best things ever
buffaloseven is offline   Reply With Quote
Old 07-31-2013, 10:30 AM   #527
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
Quote:
Originally Posted by buffaloseven View Post
That's what I thought. I'm excited for you getting a new addition to the family! Our little guy is almost 2 now and it's been one of the best things ever
My little guy is 38, and continues to be one of the best things ever.
taming is offline   Reply With Quote
Old 07-31-2013, 12:09 PM   #528
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
Quote:
Originally Posted by met67 View Post
To keep you busy during your wait () , I've been playing with the plugin's code and managed to put together a version which doesn't nest KoboSpans.
Since I can't make a git patch (can't use git...), can I send you a normal diff (or the full container.py) file?
The diffs are relatively small...
My approach is to use a <DUMMY> tag as a container for the spans generated by a node's text and than remove it when appending it to the originating node.

EDIT: spoke too soon
What do you mean, "can't use Git"? Git is easy :P Relative to bzr anyway.

If you have access to a UNIX-ish system, the output of "diff -u" is fine. If you can do a GitHub pull request or a standard Git pull request, that would be best since then it records you as the author.
jgoguen is offline   Reply With Quote
Old 07-31-2013, 12:35 PM   #529
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
What do you mean, "can't use Git"? Git is easy :P Relative to bzr anyway.
Last time I tried, FW was blocking it....
AW I spoke too soon, I still have to nail down some details before it is ready...
met67 is offline   Reply With Quote
Old 07-31-2013, 01:06 PM   #530
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
You can (I'm pretty sure anyway) use Git over HTTPS if SSH is blocked. Unless you have an application firewall running a man-in-the-middle attack or outbound HTTPS is also blocked of course
jgoguen is offline   Reply With Quote
Old 08-01-2013, 04:49 AM   #531
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
Greetings appreciators of fine literature! There's a major change (for the better!) in the mainline KoboTouch driver coming with this next release of calibre. There will be a corresponding update to KoboTouchExtended. Late tonight (from my UTC-3 perspective) I'll be posting the update to match up with what davidfor has done. This will be KTE 2.1.0. If you get calibre 0.9.42 before KTE 2.1.0, it should be safe (but probably slower and definitely unsupported) to continue using KTE; if you get KTE 2.1.0 before calibre 0.9.42, KTE will not work and you are solely responsible for any gremlins that pop out of your computer.

So in short, when you start getting updates, for best (and supported) results wait until you have calibre 0.9.42 and KTE 2.1.0 before sending books to your device.
jgoguen is offline   Reply With Quote
Old 08-01-2013, 07:13 AM   #532
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
If you have access to a UNIX-ish system, the output of "diff -u" is fine. If you can do a GitHub pull request or a standard Git pull request, that would be best since then it records you as the author.
I think I nailed it, so I'll attach here the ouput of 'diff -u' (I still cant' use git...).

I dropped the <DUMMY> node hack and rewrote '__add_kobo_spans_to_node()' with a more conservative approach: I try to never delete empty spaces, instead I save and re-add it at the proper place.
I made a few tests and it works fine for me.
Attached Files
File Type: zip container_diffs.zip (10.9 KB, 181 views)
met67 is offline   Reply With Quote
Old 08-01-2013, 10:15 AM   #533
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
Can you re-run your diff with the arguments reversed? The way you did it has the diff removing your changes and adding my code

The general form is 'diff -u <old file> <new file>'
jgoguen is offline   Reply With Quote
Old 08-01-2013, 10:38 AM   #534
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
Can you re-run your diff with the arguments reversed? The way you did it has the diff removing your changes and adding my code

The general form is 'diff -u <old file> <new file>'
Here you go. In case I have included also the whole files...

EDIT:
BTW, in the mean time I have reloaded a library of circa 1 thousand books on my Aura using my code and it worked fine.
Attached Files
File Type: zip container_diff.zip (11.0 KB, 172 views)

Last edited by met67; 08-01-2013 at 10:59 AM.
met67 is offline   Reply With Quote
Old 08-01-2013, 12:53 PM   #535
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
What will the noticeable effect of correcting the span nesting problems?
buffaloseven is offline   Reply With Quote
Old 08-01-2013, 01:27 PM   #536
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 buffaloseven View Post
What will the noticeable effect of correcting the span nesting problems?
It makes the highlight function works.
In general this should produce kepubs that are very similar (if not equal) to those made by Kobo, which is the format that the renderer expects.
met67 is offline   Reply With Quote
Old 08-01-2013, 01:46 PM   #537
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
Quote:
Originally Posted by met67 View Post
It makes the highlight function works.
In general this should produce kepubs that are very similar (if not equal) to those made by Kobo, which is the format that the renderer expects.
Oh, wow; that's great! Now I'll just need to fix orphans and widows on my books.
buffaloseven is offline   Reply With Quote
Old 08-01-2013, 01:49 PM   #538
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
davidfor may have something for you in this next calibre update...
jgoguen is offline   Reply With Quote
Old 08-01-2013, 01:56 PM   #539
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
This is an exciting time to be a KG owner! I'm quite happy with FW 2.8.1, your extended driver rocks and looks like the few remaining bugs will be squished thanks to some community help, the widow/orphans issue could be easily fixed and there's hope for enabling advanced font configuration for side-loaded fonts. Pretty happy I stumbled on this community and calibre when I started hunting about e-readers.
buffaloseven is offline   Reply With Quote
Old 08-01-2013, 05:18 PM   #540
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
Quote:
Originally Posted by met67 View Post
Here you go. In case I have included also the whole files...

EDIT:
BTW, in the mean time I have reloaded a library of circa 1 thousand books on my Aura using my code and it worked fine.
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.
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 07:22 PM.


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