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 04-24-2020, 02:12 PM   #1
Geremia
Addict
Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!
 
Posts: 235
Karma: 100000
Join Date: Oct 2012
Device: Calibre
Search comments' HTML?

How do I search the HTML of comments?

I tried:
Code:
comments:"<p><br></p>"
, but that didn't find books that have "<p><br></p>" in their HTML.
Geremia is offline   Reply With Quote
Old 04-24-2020, 03:13 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: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
did you actually SEE that code in the comments?

Your search results WAS valid because you term was wrong
BR is a self closed tag. it needs the / before the >

Code:
comments:"<p><br /></p>"
The space may be optional
theducks is offline   Reply With Quote
Old 04-24-2020, 05:39 PM   #3
Geremia
Addict
Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!
 
Posts: 235
Karma: 100000
Join Date: Oct 2012
Device: Calibre
Quote:
Originally Posted by theducks View Post
did you actually SEE that code in the comments?

Your search results WAS valid because you term was wrong
BR is a self closed tag. it needs the / before the >

Code:
comments:"<p><br /></p>"
The space may be optional
No, that's not the issue. I have some comments dating back to Calibre 2.x, which didn't use "<br/>".

(I could do a regexp on every book of my library, but wouldn't that change the modification date of every book?)
Geremia is offline   Reply With Quote
Old 04-24-2020, 11:31 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: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's probably because it is actually just a <p><br> (the markup you see via the edit metadata dialog is not an accurate representation of what is present internally as it is roundtripped through Qt's text edit widget.
kovidgoyal is online now   Reply With Quote
Old 04-25-2020, 06:43 AM   #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: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Geremia View Post
(... but wouldn't that change the modification date of every book?)
If you mean the caiibre Modification date I think there maybe a plugin option to undo that, pretty sure it's one of DaltonST's, maybe Audit Log ==>> Index of plugins

BR
BetterRed is offline   Reply With Quote
Old 04-29-2020, 05:45 PM   #6
Geremia
Addict
Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!
 
Posts: 235
Karma: 100000
Join Date: Oct 2012
Device: Calibre
Quote:
Originally Posted by kovidgoyal View Post
That's probably because it is actually just a <p><br> (the markup you see via the edit metadata dialog is not an accurate representation of what is present internally as it is roundtripped through Qt's text edit widget.
Ah, I see. thanks
Geremia is offline   Reply With Quote
Reply

Tags
calibre, comments, html, metadata, search


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching in comments for html-tags Kuhnke Calibre 1 05-23-2017 09:33 PM
Posible but at html comments Terisa de morgan Library Management 8 07-05-2016 07:22 AM
Useful way to search in comments nssl Calibre 18 05-06-2016 06:11 PM
Search comments? scarlettruin Library Management 3 04-03-2016 08:13 AM
Calibre Companion V3.1 HTML Comments chaley Calibre Companion 34 09-15-2013 09:22 AM


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


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