5 ms·
They both have one space. This forum eliminates double spaces after periods that end a sentence, thereby degrading readability.
by jononomo 3y ago
They both have one space. This forum eliminates double spaces after periods that end a sentence, thereby degrading readability.
- lolinder 3y agoIt's not this forum, it's the default behavior of HTML unless you specifically opt in to significant white space, which few sites do because it has a tendency to create spurious newlines unless the code is maintained very carefully. I'd be very curious to know if you have any examples of a website that does preserve multiple spaces after periods—I would suspect that in most cases where you think that is happening, it's actually because the font handles the extra space. https://developer.mozilla.org/en-US/docs/Web/CSS/white-space https://developer.mozilla.org/en-US/docs/Web/CSS/white-space
- jononomo 3y agoOkay, so apparently, HTML has chosen to degrade readability, which is a bummer.
- earthboundkid 3y agoWhether it's a bummer or not, the point is this is how every website has worked for the last 30 years. I find that if you look closely at old books, the spacing is pretty variable. I have one book by my desk from 1895 and the spacing after a period is more like 2½ normal spaces, but I have another book from 1978 and the spacing after period is basically identical to the spacing after a word. There's not much consistency from book to book.
- jononomo 3y agoYeah, it makes sense for HTML -- there is no easy way to differentiate sentence-ending periods from other periods. This is just one of those things that gets worse as technology improves. Another example is phone connections -- phone connections used to be fantastic, and they worked even when the electricity went out, but now we have cell phones, which commonly have terrible connections and are dependent on electricity. Just another example of how advancing technology degrades the user experience in order to achieve other efficiencies.
- earthboundkid 3y agoIn general, technology makes things worse but cheaper. :-) A book printed with letterpress is nicer than a laser printed book, and an illuminated manuscript is even nicer! There are some technology shifts where the new thing is strictly better, like DVD to Blu-Ray, but the majority of the time you have give something up to move forward, like losing the ability to record when we left VHS behind. AI is going to really accelerate the trend by being really bad at a lot of tasks, but good enough to make do with.
- vintagedave 3y ago> if you have any examples of a website that does preserve multiple spaces after periods Mine does: https://daveon.design/about-dave-on-design.html#typography-&-layout:-spacing https://daveon.design/about-dave-on-design.html#typography-&...
- NoMoreNicksLeft 3y agoLike, it's part of the html specification if I'm not mistaken. It's not like HN is doing this deliberately. Fuck. I don't even know what I'd have to do if I wanted to fake it... is there a double-width space in Unicode?
- deleted 3y ago[deleted]
- sogen 3y agoYes* https://news.ycombinator.com/item?id=36675856 https://news.ycombinator.com/item?id=36675856
- deleted 3y ago[deleted]
- Izkata 3y agoYou want non-breaking spaces for this. They're the same width as a normal space, but don't collapse together in HTML. I once encountered a bizarre bug caused by a user whose keyboard was somehow configured to automatically insert these if they added two or more sequential spaces. https://en.m.wikipedia.org/wiki/Non-breaking_space https://en.m.wikipedia.org/wiki/Non-breaking_space Unicode A0 is embedded in my mind because of that.
- Groxx 3y agoWhen you start talking sizes rather than for a purpose, most of them are "what fraction of an em are they": https://unicode-explorer.com/articles/space-characters https://unicode-explorer.com/articles/space-characters An "en space" (half-em) is pretty close though: https://en.m.wikipedia.org/wiki/Whitespace_character#/media/File%3APunctuation-Spaces.svg https://en.m.wikipedia.org/wiki/Whitespace_character#/media/... And web browsers muddied the water a lot, since rendering two spaces is generally done by rendering two spaces, unless you're on the web and then have to do something special (some people do! is pretty common). Personally I think this alone is the biggest influence that trained generations that one space is the majority and therefore the most correct. --- I wish they called the zero-width spaces "non-space", so we could have both (non-breaking space) and &zwsp; (breaking non-space).