|
|
#76 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
|
|
|
|
|
#77 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
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 | |
|
|
|
|
#78 | ||
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,269
Karma: 16544702
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
When you said Quote:
|
||
|
|
|
|
|
#79 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,829
Karma: 150249619
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.
|
|
|
|
|
|
#80 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,032
Karma: 30277294
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 07:48 PM. Reason: clarity |
|
|
|
| Advert | |
|
|
|
|
#81 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,163
Karma: 92500001
Join Date: Nov 2011
Location: Charlottesville, VA
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:
|
|
|
|
|
|
#82 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
|
|
|
|
|
#83 | |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
https://github.com/kovidgoyal/calibr...6bcbb6e8c9b9a5 |
|
|
|
|
|
|
#84 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,163
Karma: 92500001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
|
|
|
|
|
|
|
#85 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,269
Karma: 16544702
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
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. |
|
|
|
|
|
#86 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@jackiew: this takes care of it: https://github.com/kovidgoyal/calibr...56f741a8048232
|
|
|
|
|
|
#87 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,269
Karma: 16544702
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
That seems OK, now.
|
|
|
|
|
|
|
#88 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,269
Karma: 16544702
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@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:
|
|
|
|
|
|
#89 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
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 08:32 AM. |
|
|
|
|
|
#90 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
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 02: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 02:09 PM |
| Attn plugin developers: calibre moving to Qt 5 | kovidgoyal | Plugins | 157 | 01-02-2015 12:22 AM |
| Can I develop a plugin in a launguage other than Python? | jamawg | Development | 2 | 06-13-2014 01:38 AM |
| Calibre in a Python 3.2 world, attn: Kovid | Kevin McAleavey | Calibre | 8 | 01-09-2012 06:49 PM |
| How do I Create a Python Plugin? | Sydney's Mom | Plugins | 25 | 01-27-2010 07:26 AM |