Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-04-2025, 12:33 PM   #1
ReaderOfBooks1
Junior Member
ReaderOfBooks1 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2025
Device: Kobo
Searching for books with annotations

Hey all,

I've been playing around with the experimental "Annotations" import feature. Great to see it added, it seems to be working so far.

What I am trying to accomplish is to figure out how to search for books where the annotations have been imported. Example syntax:

Chapter 8: 5
Highlight
Chapter progress: 65.62%
Highlight:


I am trying to use a regex to find this, but am struggling. I'm either getting false positives or the regex returns nothing. I am aware it is most likely an error on my part, and would appreciate any help from the community.

Works with false positives: comment:"Highlight" and comment:"~Highlight\s"
Example that doesn't work: comment:"~^Highlight\s$(?m)"

What I am trying to get based on the above syntax that doesn't seem to work (pseudocode): comment"[use regex][match start of line][match Highlight][match trailing whitespace][match end of line][use mode to match start and end of line]"
ReaderOfBooks1 is offline   Reply With Quote
Old 07-04-2025, 01:52 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,023
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Are you using the Annotations plugin (felt marker icon)?
It has a Find Annotations menu item.
theducks is offline   Reply With Quote
Advert
Old 07-05-2025, 05:16 AM   #3
ReaderOfBooks1
Junior Member
ReaderOfBooks1 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2025
Device: Kobo
Quote:
Originally Posted by theducks View Post
Are you using the Annotations plugin (felt marker icon)?
It has a Find Annotations menu item.
I included the answer in my initial post, I am using the experimental annotations import feature included in Calibre (https://manual.calibre-ebook.com/gui.html). I am exploring it because the annotations plug-in seems to be broken in Calibre 8.x and no longer seems to have a maintainer.: https://www.mobileread.com/forums/sh...ght=annotation I also would prefer to use native Calibre features rather than plug-ins where possible.

Any inputs on my original inquiry about about using regex search on specific data in the comments column would be greatly appreciated.
ReaderOfBooks1 is offline   Reply With Quote
Old 07-05-2025, 10:12 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,023
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Sorry, I missed that .
theducks is offline   Reply With Quote
Old 07-05-2025, 09:11 PM   #5
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,708
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by ReaderOfBooks1 View Post
Hey all,

I've been playing around with the experimental "Annotations" import feature. Great to see it added, it seems to be working so far.

What I am trying to accomplish is to figure out how to search for books where the annotations have been imported. Example syntax:

Chapter 8: 5
Highlight
Chapter progress: 65.62%
Highlight:


I am trying to use a regex to find this, but am struggling. I'm either getting false positives or the regex returns nothing. I am aware it is most likely an error on my part, and would appreciate any help from the community.

Works with false positives: comment:"Highlight" and comment:"~Highlight\s"
Example that doesn't work: comment:"~^Highlight\s$(?m)"

What I am trying to get based on the above syntax that doesn't seem to work (pseudocode): comment"[use regex][match start of line][match Highlight][match trailing whitespace][match end of line][use mode to match start and end of line]"
AFAIK Annotations are not stored in the 'comments' table, they're stored in the 'annotations' table which can be viewed in the Annotations browser which has a Find feature:

Click image for larger version

Name:	Screenshot 2025-07-06 105455.jpg
Views:	13
Size:	114.1 KB
ID:	216742

You need to add Browse annotations to a toolbar/menu or use a keyboard shortcut (default is 'B') to pop that dialogue box.

And, AFAICT 'annotations' are not available to the Book list search feature:

Click image for larger version

Name:	Screenshot 2025-07-06 110136.jpg
Views:	10
Size:	127.0 KB
ID:	216743

BR

Last edited by BetterRed; 07-05-2025 at 09:14 PM. Reason: wrong image
BetterRed is offline   Reply With Quote
Advert
Reply

Tags
annotation, comment, regex


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching screenshot: Kobo annotations in Calibre DarkTrick Viewer 1 08-06-2022 09:35 AM
Searching for books with annotations ownedbycats Library Management 2 09-21-2021 10:33 PM
Best Reader for Annotations+Highlights: Saving, Searching, and Transferring? crk Which one should I buy? 23 10-08-2020 12:51 PM
Need help in searching books. Aaryan.25 Introduce Yourself 2 11-06-2016 07:51 PM
Books Metadata Sync and Searching Books gavinjb Kobo Reader 7 05-29-2014 10:58 AM


All times are GMT -4. The time now is 07:35 PM.


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