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

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 12-12-2024, 10:00 PM   #1
karlfranz
Member
karlfranz began at the beginning.
 
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.
karlfranz is offline   Reply With Quote
Old 12-12-2024, 10:06 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 12-12-2024, 10:43 PM   #3
karlfranz
Member
karlfranz began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2024
Device: Boox Note Air 3 & 3C, KyBook 3 on iPad
Quote:
Originally Posted by kovidgoyal View Post
No there is no option to control it, why are you getting the cover from the book details panel anyway? calibre includes an extensive suite of command line utilities you can use to extract data including covers in scripts.
To clarify: I'm not trying to get the covers themselves. I am using the cover image to retrieve subtitles that are often not found in the metadata downloaded from sources like Goodreads or Amazon or is not in the format I prefer. I use Apple's OCR technology to grab this data from cover image. It is very good at recognizing text regardless of fonts and layouts (e.g. vertical or diagonal text, text in an arch, etc.).

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.
karlfranz is offline   Reply With Quote
Old 12-12-2024, 10:59 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 12-12-2024, 11:13 PM   #5
karlfranz
Member
karlfranz began at the beginning.
 
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.
karlfranz is offline   Reply With Quote
Old 12-12-2024, 11:42 PM   #6
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,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>'+_('') 
        )

    # }}}
instead of:

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://manual.calibre-ebook.com/dev...nt-environment

https://github.com/kovidgoyal/calibr...ads/master.zip
Attached Thumbnails
Click image for larger version

Name:	MWSnap 2024-12-13, 00_36_29.png
Views:	35
Size:	23.9 KB
ID:	212467  

Last edited by Comfy.n; 12-12-2024 at 11:48 PM.
Comfy.n is offline   Reply With Quote
Old 12-13-2024, 12:49 AM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,214
Karma: 29110326
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by karlfranz View Post
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.
You can open the cover with a custom keystroke, viz:

Click image for larger version

Name:	Screenshot 2024-12-13 154604.jpg
Views:	29
Size:	229.5 KB
ID:	212469

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
BetterRed 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
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


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


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