Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-21-2022, 03:49 AM   #1
albell
Member
albell began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2016
Device: Onyx Boox N96ML
Mark indexed books?

Hello
I just installed 6.1 and would like to index the library. But I wonder if after the operation is done, there is a way to mark the indexed files in order to distinguish them from those that are not (for various reasons, the most typical of which is that a pdf does not have the layer text)?
thank you!
albell is offline   Reply With Quote
Old 07-21-2022, 03:52 AM   #2
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: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I don't believe there is a way currently.

I wonder if there could be made a template function something like annotation_count() but a boolean, -- has_index_text() perhaps.
ownedbycats is offline   Reply With Quote
Advert
Old 07-21-2022, 05:45 AM   #3
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,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
I wonder if there could be made a template function something like annotation_count() but a boolean, -- has_index_text() perhaps.
There isn't an API to ask if a book is in the index.

EDIT: and looking at the code it would be *very* slow, requiring a DB lookup for each book. The answer would need to be cached, something I am not prepared to do as it isn't clear that such a function is worth the effort.

Last edited by chaley; 07-21-2022 at 05:56 AM.
chaley is offline   Reply With Quote
Old 07-21-2022, 06:02 AM   #4
albell
Member
albell began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2016
Device: Onyx Boox N96ML
Quote:
Originally Posted by chaley View Post
There isn't an API to ask if a book is in the index.

EDIT: and looking at the code it would be *very* slow, requiring a DB lookup for each book. The answer would need to be cached, something I am not prepared to do as it isn't clear that such a function is worth the effort.
Perhaps a simpler thing would be to be able to automatically tag indexed books in a custom column (I use one for this type of service information). But I don't know if it's really that simple.
albell is offline   Reply With Quote
Old 07-21-2022, 06:57 AM   #5
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: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
all books are indexed. there is no such thing as a non indexed book. only books that have been indexed or are queued to be indexed. Even if a book doesnt have much text in it, it will still be indexed with whatever text it does have. If it has no text it will be indexed with the empty string.
kovidgoyal is online now   Reply With Quote
Advert
Old 07-21-2022, 07:53 AM   #6
albell
Member
albell began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2016
Device: Onyx Boox N96ML
Quote:
Originally Posted by kovidgoyal View Post
all books are indexed. there is no such thing as a non indexed book. only books that have been indexed or are queued to be indexed. Even if a book doesnt have much text in it, it will still be indexed with whatever text it does have. If it has no text it will be indexed with the empty string.
Thank you Kovid for the clarification.
So there is no way to know which books are indexed with an empty string? These would be surely pdf scanned without ocr: it would be useful (for me at least ) to catch them and perform ocr.
albell is offline   Reply With Quote
Old 07-21-2022, 08:15 AM   #7
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: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Run a bulk PDF to TXT conversion and search your library for very small TXT files. That should tell you.
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where's the option to mark new books? ownedbycats Calibre 2 06-27-2020 04:30 PM
Open books mark. sbaguz KOReader 0 05-29-2019 12:30 PM
Why is Kindle 3 REINDEXING books that were already indexed? mypolar Amazon Kindle 18 11-26-2010 03:46 PM
How do you mark books read? Sydney's Mom Calibre 10 12-09-2009 09:09 PM
A way to mark new or unread books? sassanik Calibre 6 09-04-2009 08:39 PM


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


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