View Single Post
Old 01-08-2025, 11:22 AM   #5
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,461
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I can repeat more-or-less what you saw. It appears to be a problem in Qt's HTML renderer. The HTML generated by calibre is fine.

Example: a composite that produces one character as output:
Code:
program: '✏️'
The resulting HTML
Code:
<div id="_composite" class="comments"><p class="description">✏️</p></div>
An online HTML renderer gives me this:
Attachment 212932

The result in book details is this. Note that I see a pencil, just not the one the character specifies:
Attachment 212930

If I turn on the field header then I get this:
Attachment 212931

Clearly Qt's renderer is misbehaving. I don't know why, but there are now two workarounds:
  • The one you used, a zero-width space.
  • Turn on the header.
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.jpg
Views:	146
Size:	2.1 KB
ID:	212935   Click image for larger version

Name:	Clipboard03.jpg
Views:	154
Size:	10.9 KB
ID:	212936  
Attached Images
 
chaley is offline   Reply With Quote