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 10-21-2024, 05:38 PM   #1201
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,596
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
It doesn't say anywhere obvious, but the Quality Check search uses a Regular Expression aka regexp.

While a powerful matching tool, regexp has some limitations. Not all boolean logic forms easily map to regular expressions.

To get (test1|test2) and (test3|test4), you'd need to also match everything in between. And in both directions.

Something like this maybe:
Code:
(((test1|test2).*(test3|test4))|((test3|test4).*(test1|test2)))
Honestly, you might be better served by doing one search, to reduce the search set, then run the second.

I assume you are also aware of Calibre's built-in full text search feature?
JimmXinu is offline   Reply With Quote
Old 10-21-2024, 10:00 PM   #1202
Trester99
Member
Trester99 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2024
Device: Kindle Paperwhite
Thanks JimmXinu!!

I feel better now, I thought that I had tried all of the "and" variants and nothing worked. I have been running the two "or" statements one after the other, so I will continue that method.

I had read that indexing a database takes a long time so that is why I haven't done it. Guess I should really try it before discounting it.

Thanks again, I really appreciate you taking the time to respond!!!!
Trester99 is offline   Reply With Quote
Old 10-23-2024, 07:30 AM   #1203
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quality Check v1.13.15 released

Release Notes:
https://github.com/kiwidude68/calibr...check-v1.13.15

Requested by Comfy.n
kiwidude is offline   Reply With Quote
Old 10-23-2024, 01:56 PM   #1204
Comfy.n
want to learn what I want
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.
 
Posts: 1,284
Karma: 6433040
Join Date: Sep 2020
Device: Calibre E-book viewer
Quote:
Originally Posted by kiwidude View Post
Release Notes:
https://github.com/kiwidude68/calibr...check-v1.13.15

Requested by Comfy.n
Thank you so much for this addition!

I often use this plugin for more detailed FTS, like searching for words after/before some punctuation marks, case-sensitive queries to match the beginning of a sentence and so on:

Click image for larger version

Name:	MWSnap 2024-10-23, 13_40_01.png
Views:	50
Size:	45.5 KB
ID:	211615
Click image for larger version

Name:	2024-10-23 13_42_54-Quality Check log.png
Views:	47
Size:	47.8 KB
ID:	211614

By the way I recently started customising the CSS in the results log, that's why the screenshots above don't match the original colors in dark mode!

Comfy.n is offline   Reply With Quote
Old 10-23-2024, 02:07 PM   #1205
Comfy.n
want to learn what I want
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.
 
Posts: 1,284
Karma: 6433040
Join Date: Sep 2020
Device: Calibre E-book viewer
and this is me finding what books contain vitamins

(just to give an example of the number of matches use, I hope)
Attached Thumbnails
Click image for larger version

Name:	MWSnap 2024-10-23, 14_03_44.png
Views:	66
Size:	79.8 KB
ID:	211616  
Comfy.n is offline   Reply With Quote
Old 11-05-2024, 06:26 AM   #1206
Trester99
Member
Trester99 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2024
Device: Kindle Paperwhite
Searching for Covers with Bad Aspect Ratio's

I have a large # of ebooks that I am trying to find all of the covers that obviously have bad aspect ratio's. When I use the feature "check dimensions" and enter 500w x 250h (example) with "less than" condition, the algorithm returns all covers less than 500w, but ignores the 250h and returns ALL covers less than 500w only.
Trester99 is offline   Reply With Quote
Old 11-08-2024, 08:38 PM   #1207
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by Trester99 View Post
I have a large # of ebooks that I am trying to find all of the covers that obviously have bad aspect ratio's. When I use the feature "check dimensions" and enter 500w x 250h (example) with "less than" condition, the algorithm returns all covers less than 500w, but ignores the 250h and returns ALL covers less than 500w only.
Yes the functionality at the moment is about finding excessively small or large covers based on either dimension exceeding those inputs. So if you enter 500w x 250h with operator "less than" then it will return all books that are either < 500w OR < 250h

I think if you explicitly want to check aspect ratio then it would have to be added to that dialog as a separate option. Where you specify the proportions you want as raw numbers (e.g. 3:4) and have a similar dropdown of operators for that ratio. Will take a look at adding that...
kiwidude is offline   Reply With Quote
Old 11-08-2024, 09:39 PM   #1208
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Please give this version a whirl for feedback purposes on the addition of the cover aspect ratio feature. If it is ok as is then will release it in a few days.

EDIT: Removed as officially released

Last edited by kiwidude; 11-10-2024 at 09:57 PM.
kiwidude is offline   Reply With Quote
Old 11-10-2024, 11:22 AM   #1209
Trester99
Member
Trester99 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2024
Device: Kindle Paperwhite
Quote:
Originally Posted by kiwidude View Post
Please give this version a whirl for feedback purposes on the addition of the cover aspect ratio feature. If it is ok as is then will release it in a few days.
Works Great! Thanks for taking the time to add this feature. Cleaning up a large library would not be possible without your Quality Check Plugin. A contribution has been sent!
Trester99 is offline   Reply With Quote
Old 11-10-2024, 09:56 PM   #1210
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quality Check v1.13.16 released

Release Notes
https://github.com/kiwidude68/calibr...check-v1.13.16

@Trester99 - thanks for the feedback, and donation!
kiwidude is offline   Reply With Quote
Old 11-14-2024, 12:36 AM   #1211
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,577
Karma: 64960983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
While the option for searching authors with a comma helps find improperly separated authors, is there also an option that checks for "and"? I recently found a book where the authors were (non-)separated by that.
ownedbycats is offline   Reply With Quote
Old 11-14-2024, 04:51 AM   #1212
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,043
Karma: 7548549
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
While the option for searching authors with a comma helps find improperly separated authors, is there also an option that checks for "and"? I recently found a book where the authors were (non-)separated by that.
Calibre accepts "and" as an authors separator, converting it to '&'. What problem did the "and" cause for you?
chaley is offline   Reply With Quote
Old 11-14-2024, 11:00 AM   #1213
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,577
Karma: 64960983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by chaley View Post
Calibre accepts "and" as an authors separator, converting it to '&'. What problem did the "and" cause for you?
I have a few authors that legitimately use "and", which doesn't separate them:

Click image for larger version

Name:	2024-11-14 10_57_41.png
Views:	26
Size:	2.2 KB
ID:	211993

Aside from this, I also recently found that a book imported some 5 years ago had the authors not separated because of "and" instead of "&." I just wanted to check there were no other cases of this (aside from various company names).
ownedbycats is offline   Reply With Quote
Old 11-14-2024, 11:33 AM   #1214
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,043
Karma: 7548549
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Then you have almost certainly set the tweak "Splitting multiple author names (ID: authors_split_regex)" to not include "and".

The default of that tweak is
Code:
authors_split_regex = '(?i),?\\s+(and|with)\\s+'
chaley is offline   Reply With Quote
Old 11-14-2024, 12:05 PM   #1215
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,577
Karma: 64960983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Yup, at some point I'd removed the 'and'. I think this was to handle that specific Literature and Latte case above.

Code:
authors_split_regex = '(?i),?\\s+(with)\\s+'
ownedbycats is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Search the Internet kiwidude Plugins 434 09-30-2024 04:04 AM
[GUI Plugin] Clipboard Search kiwidude Plugins 29 04-02-2024 11:05 PM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 09:39 AM
[GUI Plugin] Kindle Collections (old) meme Plugins 2070 08-11-2014 01:02 AM
[GUI Plugin] Book Sync **Deprecated** kiwidude Plugins 111 06-07-2011 08:47 PM


All times are GMT -4. The time now is 04:28 AM.


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