Hacker News new | ask | show | jobs
by AlphaGeekZulu 949 days ago
Calibre is outstanding - really one of my most important research tools. Fulltext search over the content of an entire library is a killer feature. I maintain a couple of hundreds books in PDF format and sync them automatically with a Samsung tablet.

Version 7.0 crashes on my Ubuntu 23.10, unfortunately. Had to return to 6.29.0.

5 comments

If you run it from the terminal you can see the error. For me on 22.04 it was missing a dependency:

    sudo apt install libxcb-cursor0
Yess, thanks! Stupid me.

Installer is also hinting for the missing dependency now before installation.

Wait, full text including into PDFs? I didn't know that, that's really big!
Yep! In the search field above the library window, press the "FT" button on the very left. You have to create the index the first time you use the feature. It takes a while and from there on new books are indexed automatically.

FT search has word and phrase search, boolean operators and NEAR search abilities. And there is a really cool match list, giving some context of the match before you actually go to it in the PDF file.

You cannot search across libraries, though.

Note: AS far as I know, Calibre does not do OCR, so a PDF with only scanned content will not work.
I've had good luck using Tesseract [0] for scanned PDFs. If you're not CLI-inclined, there are several GUIs for it available [1]. I have had good luck downloading scanned PDFs from archive.org and running them through Tesseract.

Did not know about Calibre for this - I was relying on opening each search and searching it individually.

[0]: https://github.com/tesseract-ocr/tesseract [1]: https://www.opait.com/tessstudio/

OCRmyPDF is a tool using Tesseract, specifically designed for PDFs. I would recommend that over pure Tesseract.

https://github.com/ocrmypdf/OCRmyPDF

I recommend running any such PDFs through OCRmyPDF.

https://github.com/ocrmypdf/OCRmyPDF

Oh, lol, I never knew that.

I created a script that dumped my library of 1000s of books to .txt and then grepped them.

If you want even faster search across different formats, you can try ripgrep-all ( https://github.com/phiresky/ripgrep-all ). It can search across epub, docx, pdf, zip, mp4 etc. If you are handy with the tool, you can write custom adaptor to search across images using OCR with tesseract.
Curious on "as research tools" - do you use it to manage research papers?
I utilise zotero for this. Was unaware that calibre could do this; the search bit.
Could you tell me what software you are using for syncing?
I am using "Calibre Sync" on Android (Payware: US$ 5,49 and worth every penny).

For viewing/annotating on Android I use Flexcil.

Why not just use something like syncthing? Does it offer more advanced features than just syncing files?
> Does it offer more advanced features than just syncing files?

Yes! Covers, Metadata (searchable and including custom columns and comments), reading progress, filters (important for me: tags), different layouts, virtual views.

And it can use the full text search of Calibre (but only when connected to the Calibre content server).