Quote:
Originally Posted by d3m0sth3n3s
I want to use a Search & Replace regex that relies on the comments to be in HTML to add some structure and styling to them in bulk. It doesn’t work well for plain text comments so I intended to HTML-ize them as a prior step.
I’m thinking that I would be better coding a more complex template that takes plain text comments into account. Just more work, I’m afraid.
PS: I know it’s not a big problem, it just seems inconsistent to me that the calibre database may store imported comments without styles both in HTML code and in plain text just because you edited them in the GUI metadata editor or not.
|
It has nothing to do with whether they were edited - mainly tto do with what was embedded in the format file that was used to create the book in the calibre library.
The books in my Test library that have plain text comments would have acquired them from the format files I added… e.g. Book 801 came as a PDF from The Lancet website - calibre extracts the Description property from the PDF metadata and puts it in the Comments column, viz:
Code:
The Lancet, Corrected proof. doi:10.1016/S0140-6736(22)01585-9
Whereas Book 671 came as an EPUB from Verso, the Comments were extracted from the OPF file in the EPUB, viz:
Code:
<description xmlns="http://purl.org/dc/elements/1.1/"><i>&amp;ldquo;It would be an endless task to trace the variety of meannesses, cares, and sorrows, into which women are plunged by the prevailing opinion that they were created rather to feel than reason, and that all the power they obtain, must be obtained by their charms and weakness.&amp;rdquo;</i>&#8212;Mary Wollstonecraft <br>Composed in 1790, Mary Wollstonecraft&amp;rsquo;s seminal feminist tract <i>A Vindication of the Rights of Woman</i> broke new ground in its demand for women&amp;rsquo;s education. A Vindication remains one of history&amp;rsquo;s most important and elegant broadsides against sexual oppression. In her introduction, renowned socialist feminist Sheila Rowbotham casts Wollstonecraft&amp;rsquo;s life and work in a new light.</description>
BR