12-20-2019, 10:58 AM | #76 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
12-20-2019, 10:58 AM | #77 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
The config directory should support both python2 and python3 without modifications. And in fact, it has done so for me throughout my testing.
|
Advert | |
|
12-20-2019, 11:20 AM | #78 | ||
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
When you said Quote:
|
||
12-20-2019, 11:34 AM | #79 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
However, you could use the 4.6 portable and copy the config for use with the portable version. That way you won't have to worry about your config getting messed up with the 4.99+ beta. Plus, all your existing plugins will still work.
|
12-20-2019, 03:31 PM | #80 |
null operator (he/him)
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@jackie_w - FWIW - another way,
If/when a new beta is released repeat steps 2-4. This will leave your 'everyday' calibre as is. BR Last edited by BetterRed; 12-20-2019 at 06:48 PM. Reason: clarity |
Advert | |
|
12-20-2019, 05:56 PM | #81 |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
One thing I noticed running portable version of the 4.99.2 beta is a difference in error reporting for an EPUB containing DRM. Trying to convert or edit pops up the expected "This book has DRM" dialog. But invoking the viewer instead produces a different error dialog:
Spoiler:
|
12-20-2019, 10:22 PM | #82 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
12-21-2019, 01:29 AM | #83 | |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
https://github.com/kovidgoyal/calibr...6bcbb6e8c9b9a5 |
|
12-21-2019, 03:09 AM | #84 | |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
|
|
12-26-2019, 07:03 AM | #85 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Win10 running in debug mode from source with a fully up-to-date 4.99.2
I think I've found a bug in the Editor when editing an image. These steps will reproduce it:
GIFs don't appear to have the same problem as JPG/PNG. |
12-26-2019, 07:40 AM | #86 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@jackiew: this takes care of it: https://github.com/kovidgoyal/calibr...56f741a8048232
|
12-26-2019, 08:44 AM | #87 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
|
|
01-05-2020, 06:11 PM | #88 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@Kovid and @davidfor,
I've been working my way through my Editor plugins and I think I've found something a bit odd with the count_words function in calibre.spell.break_iterator in calibre 4.99.2. I sometimes use count_words in my Editor plugins before & after a plugin's mass cleanups to sound an immediate alarm if text content accidentally got removed. It seems to run very much slower in 4.99.2 than in 4.8 and I wonder if you can shed any light on why that might be? @davidfor, I know count_words is also an integral part of the Count Pages plugin. I ran some tests to illustrate the problem. I selected 4 books (2 long, 1 medium, 1 short) in EPUB2 format. They all validate clean in both calibre CheckBook and EpubCheck. For each EPUB I counted the words (python script attached in spoiler below) using 3 different versions of calibre in debug mode: - Win 64bit 4.99.2 - Win 32bit 4.8 - Win 64bit 4.99.2 run from source (fully up-to-date) These are the results. As you can see v4.99.2 runs 10 to 35 times slower than v4.8: Code:
1. Alexandre Dumas - The Count of Monte Cristo DEBUG: 0.0 Start: calibre: 4.99.2 [64bit]; ispy3: True DEBUG: 7.4 End: Wordcount: 496791 DEBUG: 0.0 Start: calibre: 4.8; ispy3: False DEBUG: 0.7 End: Wordcount: 496791 DEBUG: 0.0 Start: calibre: 4.99.2* [64bit]; ispy3: True DEBUG: 7.4 End: Wordcount: 496791 2. Peter F Hamilton - The Naked God DEBUG: 0.0 Start: calibre: 4.99.2 [64bit]; ispy3: True DEBUG: 21.9 End: Wordcount: 455220 DEBUG: 0.0 Start: calibre: 4.8; ispy3: False DEBUG: 0.6 End: Wordcount: 455220 DEBUG: 0.0 Start: calibre: 4.99.2* [64bit]; ispy3: True DEBUG: 22.0 End: Wordcount: 455220 3. EF Benson - Mapp and Lucia DEBUG: 0.0 Start: calibre: 4.99.2 [64bit]; ispy3: True DEBUG: 2.8 End: Wordcount: 114695 DEBUG: 0.0 Start: calibre: 4.8; ispy3: False DEBUG: 0.2 End: Wordcount: 114695 DEBUG: 0.0 Start: calibre: 4.99.2* [64bit]; ispy3: True DEBUG: 2.9 End: Wordcount: 114695 4. Evelyn Waugh - Vile Bodies DEBUG: 0.0 Start: calibre: 4.99.2 [64bit]; ispy3: True DEBUG: 1.3 End: Wordcount: 76836 DEBUG: 0.0 Start: calibre: 4.8; ispy3: False DEBUG: 0.1 End: Wordcount: 76836 DEBUG: 0.0 Start: calibre: 4.99.2* [64bit]; ispy3: True DEBUG: 1.3 End: Wordcount: 76836 Spoiler:
|
01-06-2020, 01:22 AM | #89 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Using linux from source on git master I don't see any difference between python2 and python3; both are averaging times of "0.0".
EDIT: for a 3224 word short story. The variance is no different though, for a 313426 word story, averaging out 3.8 for both (with the time taking 3.6 being one of the python3 ones, as if that were statistically relevant). Last edited by eschwartz; 01-06-2020 at 07:32 AM. |
01-06-2020, 01:27 AM | #90 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I haven't looked into it yet but almost certainly this i because in windows strings are natively utf-16 which is what they are in python 2 as well and in ICU, so there is no conversion required. With python3 one has to copy/convert strings to and fro
Last edited by kovidgoyal; 01-06-2020 at 01:30 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Plugin Devs: Should we include a License or COPYING file? | KevinH | Plugins | 3 | 08-15-2017 01:09 PM |
Attn plugin developers: calibre moving to Qt 5 | kovidgoyal | Plugins | 157 | 01-01-2015 11:22 PM |
Can I develop a plugin in a launguage other than Python? | jamawg | Development | 2 | 06-13-2014 12:38 AM |
Calibre in a Python 3.2 world, attn: Kovid | Kevin McAleavey | Calibre | 8 | 01-09-2012 05:49 PM |
How do I Create a Python Plugin? | Sydney's Mom | Plugins | 25 | 01-27-2010 06:26 AM |