12-12-2024, 10:00 PM | #1 |
Member
Posts: 11
Karma: 10
Join Date: Jun 2024
Device: Boox Note Air 3 & 3C, KyBook 3 on iPad
|
How do I disable tooltips in Books Detail pane?
I have a macro that grabs the book subtitle via OCR from the image of the book cover in the Book Details pane. However, sometimes the large tooltip window with the message "Double click to open the Book details window" (along with the book's file path and cover size in pixels), gets in the way of the OCR.
Is there a way to disable it? Note: the option: Preferences|Look & feel|Main interface|Show tooltips in the book list does not control this. |
12-12-2024, 10:06 PM | #2 |
creator of calibre
Posts: 44,764
Karma: 24967300
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No there is no option to control it, why are you getting the cover from the book details panel anyway? calibr eincludes an extensive suite of command line utilities you can use to extract data including covers in scripts.
|
12-12-2024, 10:43 PM | #3 | |
Member
Posts: 11
Karma: 10
Join Date: Jun 2024
Device: Boox Note Air 3 & 3C, KyBook 3 on iPad
|
Quote:
My macro allows me to draw a quick selection rectangle around the text on the book cover and it automatically creates my book title in the proper format. |
|
12-12-2024, 10:59 PM | #4 |
creator of calibre
Posts: 44,764
Karma: 24967300
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can right click and open the cover in an image editor which is one extra step but not too onerous.
|
12-12-2024, 11:13 PM | #5 |
Member
Posts: 11
Karma: 10
Join Date: Jun 2024
Device: Boox Note Air 3 & 3C, KyBook 3 on iPad
|
I could...
I just wondered, since there was an option to hide the tooltips in the book list, if there was a similar option for the book details hiding somewhere and just I couldn't see it. |
12-12-2024, 11:42 PM | #6 |
want to learn what I want
Posts: 1,422
Karma: 6874872
Join Date: Sep 2020
Device: none
|
A more hackish approach would be to run Calibre from source using an edited book_details.py (full path is C:\somefolder\calibre-master\src\calibre\gui2\book_details.py)
I was able to reduce the tooltip to an empty rectangle using this: Code:
def update_tooltip(self, current_path): try: sz = self.pixmap.size() except: sz = QSize(0, 0) self.setToolTip( '<p>'+_('') ) # }}} Code:
def update_tooltip(self, current_path): try: sz = self.pixmap.size() except: sz = QSize(0, 0) self.setToolTip( '<p>'+_('Double click to open the Book details window') + '<br><br>' + _('Path') + ': ' + current_path + '<br><br>' + _('Cover size: %(width)d x %(height)d pixels')%dict( width=sz.width(), height=sz.height()) ) # }}} https://github.com/kovidgoyal/calibr...ads/master.zip Last edited by Comfy.n; 12-12-2024 at 11:48 PM. |
12-13-2024, 12:49 AM | #7 | |
null operator (he/him)
Posts: 21,214
Karma: 29110326
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
On Windows, I've used the IrfanView Tesseract plugin to extract titles, straplines, and author names from covers. Should be easy enough to do something similar with MacOS. BR Last edited by BetterRed; 12-13-2024 at 12:50 AM. Reason: wrong image |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
tooltips in the list of books | Fynjisx | Library Management | 1 | 11-23-2022 05:56 AM |
Tooltips for narrow columns | theducks | Library Management | 7 | 03-16-2015 11:58 PM |
How to turn off tooltips? | ktenney | Calibre | 8 | 01-23-2015 10:19 AM |
Disable tooltips? | jhalpin | Library Management | 7 | 06-08-2014 01:14 PM |