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 06-12-2024, 12:36 PM   #1
phm92190
Junior Member
phm92190 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2011
Device: Kindle
How to format {comments} in custom column?

Hi,
not sure where to put this question.
I created a custom column to display the comments field of the book record (limited to the beginning of the comment that fits in the column width).

It works but it shows the "source html" of the comment (often beginning with <div> or <p>).

Is there a way to display this column in the "normal" format of the comment, or to just display the text of the comment (hiding and ignoring the html tags) ?

phm92190 is offline   Reply With Quote
Old 06-12-2024, 01:17 PM   #2
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 11,481
Karma: 230178176
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
In the settings for the column, do you have HTML for Interpret this column as...?
Sirtel is online now   Reply With Quote
Old 06-12-2024, 05:53 PM   #3
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,255
Karma: 6426810
Join Date: Sep 2020
Device: Calibre E-book viewer
My workaround is setting a Column Icon, see:

Click image for larger version

Name:	2024-06-12 17_42_00-Create_edit a column icon rule.png
Views:	98
Size:	20.1 KB
ID:	208822

here's my setup:

Click image for larger version

Name:	2024-06-12 17_42_44-Edit custom column.png
Views:	83
Size:	20.4 KB
ID:	208823

so, before the icon it looked like this...

Click image for larger version

Name:	before column icon.png
Views:	94
Size:	3.4 KB
ID:	208824

then after setting the column icon, it looks fine, although I need to mouse hover over the cell to see the comment in the tooltip:

Click image for larger version

Name:	after column icon.png
Views:	89
Size:	12.9 KB
ID:	208825
Comfy.n is offline   Reply With Quote
Old 06-12-2024, 09:35 PM   #4
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,997
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
↑ ↑ ↑ ✔

I do something similar. But I turned off Book list tooltips when I first installed calibre… version 0.8.?. So, I move imported Comments to a custom Long text column (Blurb/#blurb) and press F2 on the Blurb icon. This also means I can edit Blurb in the book list.

I have metadata edit search and replace saved settings that copy Comments to Blurb, clear Comments, and copy Blurb to Comments (rarely used).

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding custom column data to comments BookJunkieLI Library Management 5 01-01-2024 04:52 PM
Custom Column made from Comments slantybard Library Management 5 01-31-2022 02:07 AM
using re() and shorten() for custom comments column? rebl Library Management 8 09-07-2014 05:58 AM
Custom Column Format aceflor Calibre 5 12-10-2010 11:28 AM
create custom format column blaubach Calibre 12 09-17-2010 04:22 PM


All times are GMT -4. The time now is 06:39 PM.


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