309 points · by eru · 13y ago · 224 comments
Two spaces are used to semantically separate sentences in source format. They can be collapsed or modified for typeset output (like HTML rendering), but nobody should be telling an author to use single space in source format if the author wants to add the additional semantic separation between sentences.
Particularly at fault are sanitizers like tidy (not just stand-alone, but sometimes used as a component in document editors) which will collapse multiple spaces by default. They're not doing any other html rendering, and they're not minifying the html either, so why do they insist on removing a common form of semantic content information in the source document? Collapse >2 spaces to 2 in some cases, perhaps, but not 2 to 1, particularly not after punctuation.
The two spaces vs one space argument for how text should be typeset is a completely different issue and unrelated to the question of how many spaces human typists should use between sentences. Using two spaces between sentences happens to make it easier for typesetting software to automatically apply whatever magical 1+epsilon or 1-epsilon inter-sentence spacing it deems best, assuming the typesetting software can deduce that the author is using the two-space sentence convention (otherwise it has to fall back on heuristics, which are not perfect).
Any author is free to choose how many spaces to use between sentences, but collapsing 2 spaces when editing others' documents is wrong, and so is preventing an author from using two spaces. Doing so removes information content from the document, which can only be restored perfectly by humans (or other things with human-level natural language processing ability).
That's the function of the period, which does the job perfectly well already, as you demonstrate yourself.
Any author is free to choose how many spaces to use between sentences, but collapsing 2 spaces when editing others' documents is wrong, and so is preventing an author from using two spaces. Doing so removes information content from the document, which can only be restored perfectly by humans (or other things with human-level natural language processing ability).
I could just as easily argue that it's wrong to include redundant semantic information. If I were to begin using double commas,, should everyone else alter their reading habits to accommodate my affectation? Fuck that.
This breaks in the case of "Mr. Jones went to the store. He enjoys buying things." The spacing after 'Mr.' should be less than after 'store.'. If two spaces are prohibited, you have the following options, neither of them particularly satisfactory:
-The user must input some form of special Unicode space character after 'Mr.'
-The display software must include a list of all words that, when followed by a period, should not include extra space (e.g., "Mr, Mrs, Messrs, etc, e.g, i.e" and so forth).
A third option is to dispense with the punctuation marks on abbreviations and simply refer to 'Mr Jones.' This took a little getting used to, but since real grammatical consistency would involve abbreviating 'Mister' as 'M'r,' (a practice which you can see in some older books and which persisted with obscure words like f'c's'le) dropping the period seems simpler. It's good enough for the Economist, whose style guide I prefer.
Regardless, we're seriously into Parkinson's Law of Triviality territory. I'll support either way as long as the bike shed has an aluminum roof.
Do double commas serve some purpose other than a presentational quirk? Double spaces at the end of a sentence have semantic meaning distinct from a single space, as shown by other replies.
I think for your argument to make sense you either need to show that double spaces don't have any special distinguishing characteristic at the end of a sentence, or allow that they do, and double commas to as well, but we're better off without them. Otherwise, I don't really see a relation between double commas and double spaces at the end of a sentence.
The sequence "period space space" is also not reliable for a computer to determine the end of a sentence, either, so in building a lexer you would likely remove the consecutive spaces (outside of content that is marked as pre-formatted) and use some other method of determining whether a period is being used for an abbreviation, the end of a sentence, or some other purpose. In fact, you might even throw out the period, since it is no longer a necessary part of the content (though the parser would add it back in for output in most situations).
My point is that you would be quite right to reject writing in which someone employed double commas as an affectation. Just because a writer thinks it says something special does not mean readers have to agree.
Usually I just explain that this is how HTML works; whitespace is collapsed, and so my app is inherently dependent upon the capabilities of HTML and the layout engine being used (in my case, WebKit).
However after the most recent complaint I finally spent some time looking deeper into the CSS spec and found out that you can set white-space: pre-wrap on a style, which will preserve consecutive spaces in the way that some people are accustomed to in Word. Now that I'm aware of this, I'll be turning this on by default for Word documents when I translate them to HTML, and for documents stored directly in HTML format I'll offer this as an option that can be set on a document-wide or style-specific basis.
I've always seen the one-space vs. two-space argument as a bit pointless, since this is something that is within the domain of what software can handle, for the most part. LaTeX has facilities for adding extra space after periods, for example. The main difficulty is distinguishing between abbreviations and words like e.g. which don't start a new sentence, so you don't want extra space after them. And I'm not aware if any web browser or HTML layout engines which add extra space like LaTeX (which I think is 1.5 times a normal space), but I cold be wrong.
As much as I've been in the camp of "just use one space; what's the big deal?" I think you've raised a very good point that the double-space can be treated as semantic information that instructs the typesetting system to place the surrounding characters further apart, even if it isn't exactly two spaces (and in the case of justified text, giving a greater weight to whitespace specified using two space characters).
TL;DR: white-space: pre-wrap is a handy feature of CSS
I mean, when I read titles like this I think to myself, "Who gives a shit?"...then I read a long thread and think, "Wow, this is actually a real debate."
I never knew there was so much that could go into a decision about typesetting spaces. You learn something new everyday.
May I interest you in some further reading? http://en.wikipedia.org/wiki/Toilet_paper_orientation
It's common to use tables of abbreviations to know when a period is probably not the end of a sentence, and then apply imperfect rules to handle edge cases like proper nouns. It's tedious and inaccurate.
bracket_fun(){
stuff;
}
or bracket_fun()
{
stuff;
}Now, let me pick on patio11. He uses double spacing in his articles. Not a big deal, right? But the extra spaces causes unintended indentations in paragraphs. I know it shouldn't bother me, but it drives me bonkers. For example, I see it in the second paragraph here: http://www.kalzumeus.com/2011/10/28/dont-call-yourself-a-pro...
[1] I think double is the wrong term here since most people don't actually want two full spaces, but creating anything else is too hard most of the time (or impossible on a typewriter).
I prefer the way it looks.
And in the end, this is why so many petty typographic debates are futile.
Some aspects of typography are about practical matters. The choices here tend to be quite objective, and almost everyone will agree about which choices are better, at least once they appreciate the significance of the difference. Using a programming font where some characters look too similar leads to bugs. Setting a magazine article with a huge line length and tiny font size will likely reduce reading speed and retention.
Other aspects of typography are about subjective taste, a matter of art and personal design choices. This is almost always the case with trivial whitespace and punctuation issues. Does anyone really fail to understand the meaning of a post here on HN because the poster used a double-hyphen (--) as informal punctuation instead of looking up the code for a typographer’s em-dash (—)? Will anyone die if I personally set my em-dashes with a space either side in HTML because I think the “standard” tight setting looks awkward? Of course not.
Sometimes a change falls between these two clear categories, and this is the case with doubling spaces after punctuation. To some extent, the basic appearance is subjective, but if the design choices result in rivers appearing in the text, this will almost certainly impair readability, an objectively worse situation. However, in these cases there is rarely a better answer than having someone who knows what they’re doing examine the specific piece of typesetting and make manual adjustments to fix the problems. It’s an exercise that I think anyone seriously interested in typography should try at least once, both to understand how easily any automated system can get things wrong in specific cases and to understand how impractically time-consuming and expensive it would be to have human operators review everything and fix all such minor details manually.
I've noticed many writers that I respect doing the same thing. I'd include patio11 as an example.
The fact that WordPress does the wrong thing with it is a bug in WordPress. The fact that you would hate the way that many good writers like to type, and like to see their words written, is a bug in your brain.
>If you're going to hate over that, then I'm glad not to know you...The fact that you would hate the way that many good writers like to type, and like to see their words written, is a bug in your brain.
Damn.
If you hate over a preference for double spaces after periods, then I don't want to know you. Because what else would you hate over? I don't want to even think about the possibilities of facing stupid landmines like that.
If you don't hate and merely have a preference, well, that's different. But hate means something specific to me.
I believe you also have a bug in your brain.
I've, like you, noticed that wordpress seems to change (some? all?) spaces to non-collapsing spaces (not sure exactly what mechanism is used);
this article and your comment makes me curious as to why. Is it an explicit attempt to support two spaces after periods?
If so, there's a way for wordpress to fix the the bug; leave most spaces alone, but convert two spaces after a period or other sentence ending puctuation (and only there) to a   or &emps;. But it's hard to say for sure this would be an improvement if we don't know what the heck wordpress is trying to do in the first place with it's odd behavior; i've never seen it documented.
I also hadn't known that linotype did/does collapse whitespace (including newlines) too -- the heritage of HTML's similar behavior?
As a fan of double spacing after sentences, in my own systems I replace space+space with nbsp+space. Attaching the non-breaking space to the previous word (opposed to the next) avoids that odd indentation behavior you've cited. Instead, it means in edge cases, the last word of a sentence might be wrapped to the next line when its width alone doesn't merit the wrap, but most readers' eyes cannot perceive that.
I've found it disappointing that HTML/CSS has no ability to specify preservation of two inter-sentence spaces while retaining conventional word-wrap semantics. I suppose in some ideal world, it would not be simply "preserve" what is typed, but "detect sentences and apply my preferred spacing," allowing adjustment by the reader in a user style-sheet.
You can accomplish this with CSS3 white-space:pre-wrap
The fact is that the extra spacing makes stuff easier to read. It isn't usually 1 space vs 2. I think LaTeX uses more nuanced rules than that.
It's generally petty and irrelevant (most people don't even notice). And it's 100% an annoying discussion I'd rather not be spending even a minute of my time on.
http://www.slate.com/articles/technology/technology/2011/01/...
A good habit to get into is always question what you are taught. And if the answer you are given is, "because that's the way it has always been done," then assume it is wrong.
Literally the only argument for double spacing is that it provides semantic separation. Except we already have something that does that. It's called a period. So when you are using both a period and double spacing, you are being redundant.
Judge for yourself: http://practicaltypography.com/one-space-between-sentences.h...
The thesis is that the publishers pushed for the rule because it was cheaper. Your view is aligned with that thesis.
The author doesn't propose a two-space solution. The author explicitly says that you should feel free to use either one space or two spaces. Instead, the author points out that the older solution was based on having knowledgeable typesetters.
Isn't this what computers are for?
river detection in text http://dsp.stackexchange.com/questions/374/river-detection-i...
former HN comments: https://news.ycombinator.com/item?id=5268364
If you tweak the css (text-align: justify), 1-4 word sentences do stand out in a bad way.
Personally, I find the double-spaced version more readable.
In order to demonstrate the problem reliably, they would have had to use an image or PDF file. But the fact that your browser fixed it (as did mine) indicates that it's not actually a problem, since it can be solved automatically in software.
(Yes, I am giving you permission to go all e.e. cummings in your emails)
Personally, I'd much rather use commercial software like InDesign/QuarkXPress and never touch LaTeX again. With that software, you can manually and visually tweak things like word spacing for particular paragraphs to solve problems like rivers. Of course InDesign will not automatically make documents look nice either, but it's easier to do if you know what you're trying to achieve. This is the kind of software used for modern magazine layout.
edit: smalltalk below also posted a similar reply as I was typing this, but is hellbanned
The default LaTeX styles are still way prettier and easier to read than the random muck (12pt Times, small margins) that would be more widespread otherwise. For scientific papers this is truly awesome, especially when the author does not care about typography. But you are right, LaTeX is not the correct tool for every job.
And yes you can definitely use it to do custom things, and yes it can be made to not move graphics around, which is usually the biggest complaint MS Word users has, but no you shouldn't do it.
I think it's underprescribed.
I've only just started using it (I've been aware of it and taken peaks from time to time). For both my own authoring and for marking up content from elsewhere (HTML or text dumps) it's quick, easy, and convenient. Some works take a while (lots of formatting and footnotes), others largely require only slapping on a prefix, an "\end{document}" at the end, and chapter headings.
Among the best aspects: once you've got marked-up Tex format, you can publish to pretty much any format you wish. The source can be managed under source control, you're free to use any editor you wish. Autoload / autobuild features make tracking minor tweaks easy (as others have noted, the evince PDF viewer will reload a file on change).
Styles can be modified. That's the brilliance of LaTeX. Write your text. Worry about the presentation side later. And the default styles _are_ good. Better by far than much of what goes on the Web these days.
And if you absolutely must, it's still possible to go to a specific layout tool to get pixel-perfect output.
normal space + extra space ± stretch’/shrink’
where spaces depend on font, stretch’ and shrink’ depend on normal stretch/shrink and space factor.Not to mention \frenchspacing (TLDR: it's also language-dependend)
AFAIK, the reason TeX uses this default spacing is because Don thought it looked good.
What are you even talking about? Yes Word figures out spacing for you too.
For example, take the simple subject of rivers: http://en.wikipedia.org/wiki/River_(typography)
LaTex knows about those and will try to avoid them.
Latex provides end results which are acceptable, typography-wise. Word is merely a word processor and cannot be trusted to produce the actual end result.
There are some LuaTeX packages which can detect, but not fix, rivers, though their scalability is questionable.
I was ambivalent towards PageMaker. Never used Quark for work, though I've met many fans.
I reserve special loathing for Word.
Word 6 was pretty good, and I used it enthusiastically.
But everything since has been user hostile. Getting the document you want is like fighting a surly baboon with Tourette's syndrome. You just have no idea what's going to be printed. There's no way to predict cause and effect (so you end up using a very limited set of features). And god help you if you change anything about your install (eg open the same doc on another computer, upgrade a driver).
https://dl.dropboxusercontent.com/u/8403291/typography-sampl...
https://dl.dropboxusercontent.com/u/8403291/typography-sampl...
https://dl.dropboxusercontent.com/u/8403291/typography-sampl...
https://dl.dropboxusercontent.com/u/8403291/typography-sampl...
Oxford University Press was using single space like spacing around 1950, but I have a travel book about Greece published in 1947 (George Allen Unwin) that still uses a very large space after a full stop.
And frankly, be glad we don't use the traditional caps-only run-everything-together style of yore.
http://ergonomics.about.com/od/eyestrain/a/reduce_contrast.h...
My grandparents taught me to use "Oxford commas" and double spaces after sentences when I was very young. To me, it looks better on paper that way. I never thought about it until I had a psychotic teacher who actually deducted points for my writing "1, 2, and 3" instead of "1, 2 and 3".
It inspired me to make it a point to include these more archaic practices in my more formal writing. And doing so always flushes out a few grammar lunatics.
I found it easy to read fluently all the way down (this is moderately unusual for me) - with good typographic choices in line length and colour contrast helping.
At the least, I find the author to have some credibility on this subject.
Regarding black on dark grey: yes, far preferable to black on white.
One of the aliens picks up a Internet exchange on his superpowerful galactic cyber-terminal. He turns to his companion and says, "I don't know how to tell you this, but they're posting thousands of words discussing whether to use one or two spaces after a period."
The ammonia drains from the other alien's face and he says, "Let's get out of here!"
This article starts off sounding like it is making an argument against prescriptivists, then claims that older standards are more authoritative?
Why not choose scriptio continua as an even more authoritative style? Or, take a look at the quality of writing in something like Readers Digest from the 1950s, and judge whether the conversational tone is worth emulating.
Regardless, most opinions are probably influenced either by such books as The Mac is not a Typewriter or alternately by a high school typing class that was based on a curriculum for professional secretaries. There were still high schools into the 1990s that taught students about carbon paper.
Even if there is a lot of unmerited arrogance about using a single space after a period, there's a lot of officiousness around a claim that two spaces after a period is "correct". If it is a generational thing between people who went to high school in the 70s and 80s vs 90s and 2000s, then it is also a difference between people who were learning business correspondence compared to people who were learning desktop publishing and web design.
Any examples available of this online? You've got me curious.
http://www.conversationagent.com/2008/01/readers-digest.html
They would basically re-write/condense articles and stories to an 8th grade reading level, but had a unique way of doing it so that it wasn't patronizing or content free.
It was a really interesting company, they basically had capability similar to what you find in modern advertising/CRM systems to target supplemental publications and other items to magazine subscribers -- in the 1960's!
Nowadays it's a bunch of drivel... stories about angels, inspirational stuff, and military themed stories aimed at old people.
I also like how the author manually went in and after every period just to make a statement.
For the record, these contrarian articles bother me because I'm a creative director and I have to put up with my underlings showing me HN articles saying that design dogmas like "serif text is easier to read in body copy" and "2 spaces after a period is bad" are WRONG and that I'm not listening to the "facts". The problem? They try to prove me wrong and the results look like shit. The author here tried to prove me wrong, but the result is his typography looks like shit. I hope they're happy!
I was under the impression that one single spaced between thins because 'smart' features in text software and with variable width fonts knew how to make spacing variable automatically.
I always understood the "don't use two spaces" exhortation as a standard aimed at getting people to let their software take care of things instead of treating Word or In Design like a typewriter.
Other than that it sounds like a tale from Jonathan Swift. Big or little endian anyone?
Just use LaTeX. Problem solved.
The main typographic case against two spaces after a period is that it breaks up the flow of text and creates rivers inside the text block. Counter space is the most important aspect of a typeface, and by adding two spaces after a period you are breaking the rhythm of the text.
Are you sure it's stubbornness that you're describing? I was taught to use 2 spaces when I was 5 or 6, and in the meantime I have been typing things for the majority of my life. When I pound out two spaces at the end of a sentence it's not out of pride or because I'm consciously thinking about it.
Telling me I'm "too stubborn" to write a single space is like saying I'm too stubborn to change my handwriting or use a Dvorak layout; these things would require conscious effort and attention to things that I am not currently thinking about, or to change what I am writing and this would slow me down. Or, considering how young I was taught, you might as well say I'm "too stubborn" to stop other current habits developed at around the same time, like bathing regularly or brushing my teeth.
Frankly if I have to please folks like you I'd rather just pipe everything I write into sed s/\ \ /\ /g. That way I don't have to drop my productivity by consciously thinking about spacing between sentences. OTOH, not one person has ever mentioned this habit to me, so it must not really be a problem.
B: I don't think I'm stubborn. I do it totally unconsciously since a very young age and it would be hard for me to change, similar to handwriting. Besides, nobody seems to notice the difference.
A: (Sigh.) Programmers just won't understand...
Sorry, but I see that last reply as neither here nor there. It's actually kind of laughable, like some stereotypical "design-snob" thing to say.
Now, there are certainly arguments in favor of one space, but "history" is not one of them :)
The post sentence spacing was never really treated as two consecutive spaces - conceptually, it's a single area of whitespace that is larger than the inter-word spacing.
If you especially cared about typesetting it correctly, you'd use a single   (or perhaps an  ).
It has always been my understanding that historically, typographers tended to prefer em spaces between sentences (vs. after intra-sentence punctuation like 'Mr.' or a comma). And so, once typewriters with their fixed-width fonts came out¹, people used a double-space at the end of a sentence to approximate an em space.
The frustrating thing, typographically-speaking, is that the HTML approach doesn't map to the manually-typeset process, either, since it doesn't have any semantic knowledge about "end of sentence" vs. "random intra-sentence punctuation" and thus treats them all the same.
(Note that this is also where we get em dashes and en dashes from. And just like em spaces and en spaces, an em dash is transliterated to '--' in fixed-width fonts.)
¹ For all I know, the double-space trick was used with fixed-width letterpress before the advent of typewriters. The problem seems to have more to do with fixed-width than with typewriters.
For the most part, the article justifies simply blaming publishers for becoming lazy, though it seems to me that they choice of spacing around sentences is largely determined by the market for which something is being published, and most publishers would have invested at some point in a decent lexer that can handle enough of the burden of finding the ends of sentences to allow the process to be largely hands-off (and allow the appearance of the output to change fairly easily if they want to print a special or mass-market edition later).
I guess the likely outcome would be that there's no difference. And we'd be stuck in the same place. We'd be better off if everyone used one convention (if multiple people edit a doc, more consistency), but there's not much of a good way to decide on what the convention should be. I suppose that's why these things get so religious in the first place...
Thanks to HTML, however, you wouldn't know this text, for example, had lines about 72 characters,¹ was carefully hand-justified after fmt(1) to leave no dangling words alone on a line before or after punctuation,² and had double spaces after all periods inside paragraphs, except T and S in T. S. Eliot.
¹ Except the first paragraph, better broken at “letters”, “editor”, and “it”, and this footnote, also broken after “editor”.
² Though I would rather do that than visit violence upon decent sentences, like this one, broke at “sentences”. Obviously it's preferable to expand and contract margins a bit to suit the text. Nobody does this any more though, because auto-sizing to columns destroys manual formatting.³
³ Incidentally, these footnotes had to be separate paragraphs, to keep them from merging with the previous one, and with the body paragraphs. What a piece of work is HTML… it delights not me.
Here is this comment before the autoformatter got to it. https://gist.github.com/catenate/6567903
The period alone is enough to indicate a full stop; an extra space is redundant. Like needless words, one should seek to omit needless punctuation wherever possible.
The convention was: put wider spaces than word spaces after punctuation, and put an extra-wide space after a period.
I will try this for two weeks: three spaces after the period; two after the comma, semi-colon and friends. Already, I note a difference. Already do I seek alternate syntax to regulate spacing.
>Already do I seek alternate syntax to regulate spacing.
Do you mean you want an easier way to create such 1,2,3 spaces, or that it makes you want 1-space-only more than before?
The original author's purpose is to set the record straight about history and counter false claims about history to back up one's points in a debate. Period. Full stop. Space. The guy even says that repeatedly in his comments. Get it right :)
Poor Wordpress.
As much as I'd love to see a properly executed experiment where reading speed, enjoyment and comprehension was evaluated between groups of people reading the same material using single or double spacing after a period, I'm guessing it ultimately it comes down to preference.
I find it ironic that this is the first article I've seen in a long time for which I've had to bring up Safari's reader in order to read comfortably. Black text on a dark-grey background? really?
Or is there some better way to do it, a setting for an entire paragraph or page? It'd be great to have that.
Another advantage of this approach is that you can have a JS checkbox on the page so people who feel strongly about this can choose which style they prefer. :)
Creating a sentence class as above does for sentences what <p> ... </p> does for paragraphs.
And arguing that we should use two spaces to replicate a standard of longer spaces is at best a crude approximation.
as if it is important, and everybody's behavior must be rigidly enforced so we'll have complete conformity.
-bowerbird
Lack of knowledge of these things is one of the reasons that much of the text people read every day is presented with a system (HTML/CSS) that has complete disregard for typography[1]. Unlike LaTeX for example where you can set your inter sentence spacing to whatever you want, because Knuth took the time to learn about typography and create a system that has the flexibility required to lay out text properly[2].
[1] smallcaps, kerning, spacing, justification, the list goes on and on
[2] for pretty much any value of 'properly' you can imagine
Knuth could do TeX because the aim is to produce fixed-typed text (barring proportionality). Not so on the Internet. It is not that the web standards despise typography: it is that the web is not a place in which to SET (which implies "fix") types. And that is why it is so hard to get a compelling, attractive web page.
It's not that HTML/CSS was created with a disregard for typography, it's simply that typography was not the intended purpose of HTML. CSS (and HTML 4 & 5) is largely an attempt to allow principles of typography to be applied to HTML without breaking the original use (after all, LaTeX and typography in general requires a very rigid definition of the output for it to work properly, which you can never have with the browser as your target platform; in itself something very different from what was available when HTML was originally designed).
The only caveat is that you don't get the same level of control that you have with LaTeX, in cases where the default behaviour is different to what you want.
Here's what should really happen: my OS should adjust tracking after periods based on preferred locale. And the same for other typography rules.
Instead, we have broken software that can't get anyone to agree on typography, and anal bloggers who are debating over how we should adapt to our broken software in an age where white space is collapsed anyway courtesy of html.