06-29-2022, 02:43 AM | #61 |
Custom User Title
Posts: 8,656
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Yeah I figured it was something like that. Still a bit jarring how much disk space it ate up.
Last edited by ownedbycats; 06-29-2022 at 03:26 AM. |
06-29-2022, 05:08 AM | #62 |
Custom User Title
Posts: 8,656
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
UI thought: There ought to be a resizable divider between the search results and preview pane. Currently, the right preview pane is a little squished unless I maximize the window:
Also, the tooltip indicates that 'restrict searched books' should search all the books currently in view. Instead, it only searches currently selected books. It might also make sense to have a menu option to manually reindex selected books. Last edited by ownedbycats; 06-29-2022 at 05:24 AM. |
Advert | |
|
06-29-2022, 05:29 AM | #63 |
null operator (he/him)
Posts: 20,589
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
06-29-2022, 05:30 AM | #64 |
Custom User Title
Posts: 8,656
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Oh, I found it now that it's mentioned. I miss my dark mode.
|
06-29-2022, 05:48 AM | #65 | |
null operator (he/him)
Posts: 20,589
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
And the tool tip for the Restrict searched books checkbox text seems pretty clear to me:
Quote:
|
|
Advert | |
|
06-29-2022, 05:51 AM | #66 |
Custom User Title
Posts: 8,656
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
In my case, it only searched the one book I currently had selected. I had several other books visible in the list that had 'mustang' in the text, but only the selected one showed up.
I'm running from source, if ifthat's any matter. Last edited by ownedbycats; 06-29-2022 at 05:54 AM. |
06-29-2022, 06:12 AM | #67 |
null operator (he/him)
Posts: 20,589
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Gotcha - it's the same for me if I select a book or some books.
How can you unselect the current book… other than a library switch of some sort? BR Last edited by BetterRed; 06-29-2022 at 07:01 AM. |
06-29-2022, 06:17 AM | #68 |
null operator (he/him)
Posts: 20,589
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I think I'd prefer 3 radio buttons - search selected books, search within current VL and metadata search criteria, and search the entire library.
BR |
06-29-2022, 06:20 AM | #69 | |
Guru
Posts: 930
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
Also, I have one question: when the user changes from light to dark (or the other way around), does calibre emit any signal for the plugin to catch? My plugin has built-in themes but, without a signal, it only changes when calibre is restarted. |
|
06-29-2022, 07:14 AM | #70 |
creator of calibre
Posts: 43,870
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
restrict books was not supposed to work on selected books, but rather all currently shown books, this was a bug, now fixed.
|
06-29-2022, 07:16 AM | #71 |
creator of calibre
Posts: 43,870
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@thiago: QApplication.instance().palette_changed.connect(wh atever)
Not sure what you are saying about the themes. Are you saying that if you choose a theme for dark only and then calibre switches to light, the plugin icons dont work? Remind me what code you use for plugin icons? |
06-29-2022, 08:36 AM | #72 | ||
Guru
Posts: 930
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
Quote:
1) Erase RCC files (icons-any, icons-light, icons-dark) to reset theme options. 2) Go to Preferences>Look and feel>Change icon theme and choose any theme for the "For light and dark" option. Don't choose anything for Light and Dark only options. 3) Now, I have no icons for my plugins. 4) Go to Preferences>Look and feel>Change icon theme and choose any theme for the "For dark only" option. Don't choose a Light only theme. 5) Now, I have icons for my plugins while my Windows is set to dark. If I change it to Light, then I have no icons again. 6) Choosing a Light and a Dark theme on calibre fix all the issues. Code:
def get_icon(icon_name): # Check to see whether the icon exists as a Calibre resource # This will enable skinning if the user stores icons within a folder like: # ...\AppData\Roaming\calibre\resources\images\Plugin Name\ icon_path = os.path.join(config_dir, 'resources', 'images', PLUGIN_NAME, icon_name.replace('images/', '')) if os.path.exists(icon_path): pixmap = QPixmap() pixmap.load(icon_path) return QIcon(pixmap) # As we did not find an icon elsewhere, look within our zip resources if numeric_version < (5, 99, 0): return get_icons(icon_name) else: return get_icons(icon_name, PLUGIN_NAME) |
||
06-29-2022, 09:43 AM | #73 |
creator of calibre
Posts: 43,870
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Released 5.99.11 which uses pdftotext for indexing pdfs which is much faster and also gives better results for PDFs that are scanned pages with a text layer. Also fixes the issue with restrict searched books restricting to selected instead of displayed books.
|
06-29-2022, 10:15 AM | #74 |
creator of calibre
Posts: 43,870
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@thiago: Looking at utils.py in your Check Books plugin that's not the actual code its using. Are you using a non-published version of the plugin?
You need to: 1) First look for QIcon.ic(PLUGIN_NAME + '/' + themed_name) 2) Then look for QIcon.ic(PLUGIN_NAME + '/' + non_themed_name) 3) Then look for get_icons('images/' + themed_name) And note that with this approach your icons wont automatically change when going from light to dark mode you will have to listen to the signal and reset them manually. |
06-29-2022, 10:29 AM | #75 | |
Guru
Posts: 930
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
I'll PM you about this, cause I went off-topic here. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Searching for Text in Footnotes | aherinandrianina | Calibre | 1 | 12-05-2018 04:08 AM |
Troubles searching text in files | Maxwell61 | Library Management | 9 | 09-18-2018 06:13 PM |
searching google from e-reader text | garrry | Related Tools | 2 | 06-15-2013 04:39 AM |
searching a document based on highlighted text | KasPaz | Kindle Developer's Corner | 0 | 02-06-2012 10:37 PM |
Searching text on 300 and 505 | Thrasher | Sony Reader | 6 | 04-28-2010 03:41 AM |