Thread: nbsps in titles
View Single Post
Old 03-01-2023, 12:20 PM   #3
isarl
Addict
isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.
 
Posts: 293
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
Quote:
Originally Posted by ownedbycats View Post
Currently, nbsps in titles seem to be either stripped or converted to regular spaces. Is this intended?

Context: I have two fanfics titled Unknown. Usually, I title them "Unknown." (with period) so that the title would appear in book details. I thought an nbsp (U+00A0) at the end would work instead and be a bit less intrusive. It didn't work.
I think this is likely a result of Calibre's tendency to strip preceding and trailing whitespace from most fields when they are edited. I am not at my computer right now, but have you experimented with adding non-breaking spaces in the interior of a title and seeing if they are replaced? I would expect that they are not – but I also expect that your idea to use a trailing whitespace character will be unsuccessful no matter which whitespace character you use. (I would expect that Python's string.strip() method correctly handles all Unicode whitespace class characters equivalently.)
isarl is offline   Reply With Quote