Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-26-2022, 08:32 AM   #16
Comfy.n
Addict
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Comfy.n's Avatar
 
Posts: 366
Karma: 2636542
Join Date: Sep 2020
Device: Calibre E-book viewer/ PW3
Quote:
Originally Posted by feuille View Post
Hello Comfy.n,

I implemented two of your hints (see history).

In order to calculate the display time of a progress bar, I stopped intermediate times in the program flow. To my surprise, the HTML rendering of the text browser widget consumes 2/3 of the total runtime! I may implement in a future release a workaround like stepwise asynchronous loading with a timer or so, but I need to do some research on that.
Thank you for the mention, I appreciate it!
Just did a quick test and confirmed that I had two identical books (Ratio 0):

Click image for larger version

Name:	MWSnap0922 2022-11-26, 09_09_47.png
Views:	33
Size:	61.7 KB
ID:	198017

Then I found both are sourced from Gutenberg (one is a StandardEbooks edition).
Dark theme on-screen output is fine now, and it's great to have a one-click TextDiff tool within Calibre, thank you again.
Comfy.n is offline   Reply With Quote
Old 11-26-2022, 12:22 PM   #17
feuille
Enthusiast
feuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enough
 
Posts: 34
Karma: 666
Join Date: May 2020
Device: android smartphone
The ratio is described in https://docs.python.org/3/library/difflib.html: »Note that this is 1.0 if the sequences are identical, and 0.0 if they have nothing in common.« Hmmm...
feuille is offline   Reply With Quote
Advert
Old 11-26-2022, 12:57 PM   #18
Comfy.n
Addict
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Comfy.n's Avatar
 
Posts: 366
Karma: 2636542
Join Date: Sep 2020
Device: Calibre E-book viewer/ PW3
Quote:
Originally Posted by feuille View Post
The ratio is described in https://docs.python.org/3/library/difflib.html: »Note that this is 1.0 if the sequences are identical, and 0.0 if they have nothing in common.« Hmmm...
yes I found it interesting to be zero, because when i did previous comparisons with very similar texts (translation variations), ratio would be like 0.95 or so

then I thought it was the other way -- the lower, the closer to identical
Comfy.n is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 492 10-25-2022 09:13 AM
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB lrpirlet Plugins 2 08-18-2022 04:15 PM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 06:25 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 07:18 AM.


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