View Single Post
Old 09-17-2021, 10:42 AM   #11
codychan
Groupie
codychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud of
 
codychan's Avatar
 
Posts: 153
Karma: 27950
Join Date: Nov 2018
Device: Kobo Aura One, Kobo Forma
Quote:
Originally Posted by davidfor View Post
"FFF"is "FanFicFare" which is a plugin to download fanfiction and build epubs from them. That part you can safely ignore.

The plugboard is set in the "Metadata plugbpoard" page of the calibre preferences. Different plugboards can be used for different devices or actions such save-to-disk. The way calibre parses the comments when used in a plugboard means that extra whitespace is removed. That include new-lines between tags.

To be fair, it means that Kobo handles it differently than calibre. And while it is inconsistent with other places that HTML tags are used (ignoring whitespace between tags), strictly, the rules are up to them as to what to do. I disagree with how they do it and have reported it as a problem. I recommend that you do the same.


"Clean Comment" will remove all tags from the comments. Which makes me wonder what you were doing before. You said "already converted into plain text". But I suspect that means you removed any styles using the metadata editor. Or, you were removing them in the "HTML source" view. If the latter, then some tags will be put back when the changes are saved. "Clean Comment" will remove them, but, they may get added again if you edit the metadata of the book again.
Thanks for your reply, "Clean Comment" works for simple comments, if the comment contains a lot of complicated tags such as color, font size, or any other fancy css stuff, this plugin shouldn't be used.

The "already converted into plain text" means I select the text in the Normal view and click the Remove formatting button or add some simple comments using Edit Metadata inside the Normal view like I write text in a simple text editor and paste it into the Normal view, I didn't pay attention to the HTML source before.

Now I know the plugboards, and the suggested
Code:
any format:KOBOTOUCHEXTENDED = ([{comments}] -> comments)
works very well.

Thanks. I'll mark this issue solved.
codychan is offline   Reply With Quote