5 msΒ·
It's U+00AD, or ­. While occasionally helpful, it's a complete pain to manually add though. Also I recently noticed Firefox seems to copy it, which is pret
by Carpetsmoker 8y ago
It's U+00AD, or ­. While occasionally helpful, it's a complete pain to manually add though.
Also I recently noticed Firefox seems to copy it, which is pretty annoying (didn't use to do that, I think).
- quotemstr 8y agoYeah. Removing this character when copying to the clipboard is definitely the right thing to do. Have you filed a bug?
- mrob 8y agoIt doesn't sound like a bug to me. If I copy and paste something I expect to get all the Unicode characters. Only the CSS should be stripped. If the browser silently deletes Unicode characters then it's certainly going to cause unexpected data loss in some cases. Firefox is doing the right thing.
- quotemstr 8y agoI consider soft breaks to be metadata, not data. Dropping soft hyphens doesn't affect the meaning of text and so doesn't drop information that humans care about. If it's not data loss that copy and paste doesn't propagate bold and italic formatting, it's not data loss that it doesn't propagate soft hyphens. Not every Unicode code point conveys information that we need to preserve.
- mrob 8y agoIt's not data loss if the bold or italic are in CSS or HTML tags, but if it's ππ¨π₯π or ππ‘ππππ like this (which I realize is not how Unicode is supposed to be used) then it's part of the text, just like soft hyphens.
- quotemstr 8y agoSoft hyphens only "part of the text" because the hyphens are represented using "in band signaling" instead of "out of band" signaling, as in proper bold and italic. It's still just information about the text, not the text itself.
- mrob 8y agoIt's exactly because they're in-band signaling that they should be preserved. I don't expect copy and paste to change the sequence of Unicode code points. If the browser "helpfully" removes certain code points then it's more complexity I have to think about. The only change I'd consider acceptable would be changing to a specified Unicode normalization form. In this case the complexity already exists within Unicode, so the browser isn't making it worse.