View Single Post
Old 08-23-2020, 09:25 PM   #1853
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by anacreon View Post
What you propose would be cleaner than what I do, but my problem is "heritage". My comments now include the page number and line on all my 11000+ books, and eliminating them would be an enormous hassle, so I'm sort of locked in.
Of course. And that's one of the problems with populating the metadata that way. But, you should be able to clean it up.

What you are adding to the comments appears to be well structured. You should be able to use search-and-replace to remove it. At a first pass the search would be:

Code:
\d+ pages<BR>_________________________(.*)
Though I would probably use:

Code:
\d+ pages<BR>_+(.*)
And the replace string is just:

Code:
\1
With the search and destination fields both being comments.

The problem I can think of with this is that any changes to the comments in the metadata editor would wrap tags around it and change the exact format.
davidfor is offline