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 03-01-2023, 11:47 AM   #1
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,975
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
nbsps in titles

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.
ownedbycats is offline   Reply With Quote
Old 03-01-2023, 11:53 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Titles don't have nbsps so no need for such.
JSWolf is offline   Reply With Quote
Advert
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: 287
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
Old 03-01-2023, 12:38 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
NBSP is not a valid file name character.
Not allowing, just saves the struggle to make a valid filename on ALL OS.
theducks is offline   Reply With Quote
Old 03-01-2023, 12:46 PM   #5
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: 287
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
Quote:
Originally Posted by theducks View Post
NBSP is not a valid file name character.
Not allowing, just saves the struggle to make a valid filename on ALL OS.
While I definitely agree with the sentiment that NBSPs in filenames is not good practice, I am going to nitpick the broadness of your claims here. What constitutes a valid filename character depends on the filesystem. For example, NTFS uses Unicode to encode path names and does not prohibit nbsp characters.

Furthermore, as I understand them, OP isn't bothered if a title has nbsps replaced with ordinary spaces in the filename itself, and is instead mostly interested in tweaking the metadata in their Calibre library to distinguish a value of “Unknown” from the special value Calibre looks out for, which is that same string of “Unknown”, so that in the end, OP's custom “Unknown” tag appears in the tag browser instead of being ignored.
isarl is offline   Reply With Quote
Advert
Old 03-01-2023, 03:46 PM   #6
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,975
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by theducks View Post
NBSP is not a valid file name character.
Not allowing, just saves the struggle to make a valid filename on ALL OS.
I expected it to just convert to an underscore.
ownedbycats is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
10% Credit Towards Great on Kindle Titles When Purchasing One of Those Titles Manabi Deals and Resources (No Self-Promotion or Affiliate Links) 0 11-01-2019 01:07 AM
fixing mising titles/addition titles Rellwood Library Management 2 08-21-2019 04:34 PM
I Love Titles. Do you Love Titles? What's your Favorite Title? kennyc General Discussions 106 01-19-2012 11:32 AM
Titles, subtitles & alternative "display" titles jigme ePub 2 08-31-2011 05:19 PM
So many titles available in the US only... bentley Sony Reader 13 03-22-2009 02:54 PM


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


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