View Single Post
Old 09-06-2025, 05:36 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,495
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
This feature has a small bug in calibre 8.10.0 where the first time one defines a custom tooltip for a column, calibre must be restarted to "see" it. Subsequence edits of the tooltip for that column don't require the restart. The fix is in calibre source and will be in the next release/preview.

Here is a basic example of using a custom tooltip: presenting a list of genres in a more readable fashion.

The standard tooltip looks like this. There are multiple genres per line with some of them broken across lines.
Click image for larger version

Name:	Clipboard01.jpg
Views:	39
Size:	30.8 KB
ID:	217913

If I use this template to generate the tooltip
Code:
program: 
	res = 'Genres:';
	vals = list_sort($#genre, 0, ',');
	for t in vals:
		res = res & '<br>' & t
	rof;
	res
then I see
Click image for larger version

Name:	Clipboard02.jpg
Views:	36
Size:	27.5 KB
ID:	217914

And yes, the genres don't make a lot of sense.
chaley is offline   Reply With Quote