Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
Input Devices

Sentence Spacing — 1 Space or 2? 814

An anonymous reader noted an epic battle is waging, the likes of which has not been seen since we all agreed that tab indenting for code was properly two spaces. He writes "Do you hit the space bar two times between sentences, or only one? I admit, I'm from the typewriter age that hits it twice, but the article has pretty much convinced me to change. My final concern: how will my word processor know the difference between an abbr. and the end of a sentence (so it can stretch the sentence for me)? I don't use a capital letter for certain technical words (even when they start a sentence), making it both harder to programmatically detect a new sentence and more important to do so. What does the Slashdot community think?"
This discussion has been archived. No new comments can be posted.

Sentence Spacing — 1 Space or 2?

Comments Filter:
  • Twice (Score:3, Interesting)

    by jockeys ( 753885 ) on Wednesday August 04, 2010 @01:23PM (#33139876) Journal
    Old enough to have typed on a typewriter as a child, so twice.

    As an interesting note, the iPhone auto-enters a period when you double space, so the tradition is still partially alive, at least.
  • 2. Duh. But... (Score:3, Interesting)

    by slgrimes ( 974517 ) on Wednesday August 04, 2010 @01:24PM (#33139914)
    I always put 2 spaces at the end of a sentence. Oddly, though, I've noticed that when I type, if it's a space between words I use my right thumb. For the end of my sentence, I use my left one. Something I didn't even realize I did until about 6 months ago, and I've been doing this for about 20 years!
  • HTML says 1 space! (Score:1, Interesting)

    by euroq ( 1818100 ) on Wednesday August 04, 2010 @01:27PM (#33139974)
    I have always used two spaces. But when I started writing a blog, I noticed that where there are two spaces, and that sentence randomly begins on a new line (I say randomly because anyone can change the font size on their browser to have the lines wrap differently), there will be an unwanted space. This is due to the nature of HTML, where two spaces are interpreted as one, so the blog software will change it to a nbsp; (non-breakable space). So, it looks like the Internet is going to eventually determine the answer for me: I'll have to switch to one space! (Disclaimer: I used two spaces when typing this :)
  • by toby ( 759 ) * on Wednesday August 04, 2010 @01:36PM (#33140160) Homepage Journal

    Ever since proportional fonts came to the desktop, people have found it hard to decide whether they are 'typing' or setting type. (eventually, in the DTP era, there was even a book, The Mac is not a Typewriter [abebooks.com]).

    In typesetting, all word spaces are treated equal (except by TeX, which implements a more typewriter-like convention after periods; it also subtly modifies spacing after commas, semicolons too). This may also be a European/North American distinction, similar to the spaced-en-dash versus unspaced-em-dash convention.

    TeX, and the TeXbook, are where many geeks from the CS side of the fence got their first typographic exposure and education. Some of Knuth's aesthetic decisions, like this one, do smell a bit funny to professional typographers. But his implementation of math setting is probably close to definitive (damn it Jim, I'm a typographer not a mathematician).

    Wait till they find out that German uses letterspacing for boldfacing, and that it used to be normal practice to have thin spaces before punctuation, etc, etc... The study of typographic conventions is easily a life's work.

  • by gstoddart ( 321705 ) on Wednesday August 04, 2010 @01:40PM (#33140250) Homepage

    This diverging discussion is the perfect example of why it is clear the ideal code indentation is a TAB. Set your editor to display whatever indentation width you like, don't expect to inflict that choice on everyone else. Plus it eliminates the possibility of sloppy partial indentations, and it's fewer keystrokes to boot. Win, win, win.

    I'll grant you that on one condition ... if your fancy text-formatter is going to write in a consistent number of chars so that if it's rendered by another editor it still works, then fine. Otherwise, no.

    A former co-worker and I got into this argument. His emacs would use a single "tab" char to display between 1 and 40 tabs because it "knew" what it meant to do, but any other editor might render it like shit since it didn't have the right number of actual chars and relied on a specific mode.

    It caused huge problems with those of using different editors which didn't interpret the tabs the same way. Eventually, I locked him out of CVS until he fixed his emacs to adhere to our coding standard -- our manager agreed with me. :-P

    If you mean it to be 8 levels of indent, you need 8 placeholder items. Not one which is interpreted by your *^&%* editor (and only your editor). Otherwise, you end up with vast diffs specific to whitespace, and not what was changed. The resulting document must be properly rendered in any text editor, and it must do it consistently.

    But, yes. The Tab is the unit of measure, and your editor can render a tab as however many chars make you happy.

  • by John Hasler ( 414242 ) on Wednesday August 04, 2010 @01:44PM (#33140326) Homepage

    ...was properly two spaces."

    Like hell we did.

  • Re:False assumption (Score:3, Interesting)

    by bcat24 ( 914105 ) on Wednesday August 04, 2010 @01:48PM (#33140402) Homepage Journal

    However, Google also says that Android code should use four-space indents [android.com].

  • by Tungbo ( 183321 ) on Wednesday August 04, 2010 @01:54PM (#33140508)

    If you are doing type setting, by all means use 1 spaces. But as you cut and paste your texts into different programs, you may be pasting into different default type faces. Sometimes it's proportional and sometimes it's monospaced. So why not use 2 spaces to be on the safe side? It's simple to programmatically replace 2 spaces by 1 space any way, if necessary. Let's be considerate of our readers rather than swear allegiance to a rule learnt in our youth.

  • by selven ( 1556643 ) on Wednesday August 04, 2010 @01:55PM (#33140528)

    Try 's/\. / /g'. I can't think of any code that would get screwed up by that.

  • by Improv ( 2467 ) <pgunn01@gmail.com> on Wednesday August 04, 2010 @01:56PM (#33140544) Homepage Journal

    I was about to say the same thing. Because in fixed-width the period is so small, the space to the right of it in its block plus the space amounts to quite a lot of room. In proportional fonts, you don't need to worry so much.

    I am accustomed to working with and thinking about text through a terminal window - as a result I always singlespace my sentences now.

  • by Ragzouken ( 943900 ) on Wednesday August 04, 2010 @02:08PM (#33140822)

    Elastic tabstops (http://nickgravgaard.com/elastictabstops/) are the future.

  • Re:One space (Score:4, Interesting)

    by Tacvek ( 948259 ) on Wednesday August 04, 2010 @02:15PM (#33141000) Journal

    The problem with two spaces is that there is not two spaces between a sentence logically. Professional typography uses one single space that is longer than the inter-word space, but shorted than a double inter-word space. Let your typesetting system determine the where the sentence ends, and adjust the space properly. TeX and LaTeX, are happy to do that.

  • Re:False assumption (Score:3, Interesting)

    by HiThere ( 15173 ) <charleshixsn@@@earthlink...net> on Wednesday August 04, 2010 @02:43PM (#33141494)

    I code in Python too (among other things) and I ALWAYS use tab indents with the tab usually being set to 3 spaces for display purposes. (But if the code is deeply nested I may reset the display so that one tab == 2 spaces.)

    OTOH, code deeply nested enough to require reseting the display is also deeply nested enough to be considered for refactoring.

    N.B.: I use the same indentation whatever language I'm programming in at the moment. Python isn't a special case. (OTOH, this means I never use IDLE.)

  • by tempest69 ( 572798 ) on Wednesday August 04, 2010 @03:17PM (#33141976) Journal
    A person who is having issues reading with one or two spaces causing problems needs to stop whining. However, I like the double space after the sentence. It provides me with a better cadence for capitalization. The sound gives me that nice feeling that a chunk of writing is completed. As a single space makes it feel as if the entire paragraph is one uninterrupted stream of thought.

    As far as efficiency is concerned -WTF- people have a data density that they want in their communications, as the extra space allows for some time to comprehend the data, assuming that the reader is maintaining a pace.

  • LaTeX and full stops (Score:1, Interesting)

    by Anonymous Coward on Wednesday August 04, 2010 @03:51PM (#33142530)

    Efficiency has nothing to do with it.

    The reason you add two spaces is because the additional space aids your eyes in determining individual sentences. Two spaces gives the eyes an additional visual cue, and thus is far easier to parse.

    Please explain why you used one space between all sentences in your post.

    Agreed. Use one space, and let the software figure things out. (La)TeX has been doing this for decades:

            http://en.wikipedia.org/wiki/Sentence_spacing

    Similarly with indentation with codes. Insert a character, and let the software figure out how to visually portray it (perhaps the project has a code style guide like FreeBSD's style(9)). I've heard of places that do a pre-commit run through lint(1) before allowing check-ins to enforce consistency.

  • Re:False assumption (Score:3, Interesting)

    by onefriedrice ( 1171917 ) on Wednesday August 04, 2010 @04:07PM (#33142782)

    Efficiency has nothing to do with it.

    The reason you add two spaces is because the additional space aids your eyes in determining individual sentences. Two spaces gives the eyes an additional visual cue, and thus is far easier to parse.

    Please explain why you used one space between all sentences in your post.

    Don't browsers generally reduce white space to a single space?

  • Re:False assumption (Score:2, Interesting)

    by Belizean ( 1231078 ) on Wednesday August 04, 2010 @05:35PM (#33144032) Homepage
    I know that using two spaces between sentences is correct and leads the eye better especially in speed reading. Unfortunately broken technology has forced me to struggle to unlearn this. The software I use to pull the Word Press posts that I write and then display on my static htm website breaks the text display if I do it the "proper" way, thus I am compelled to use one space.

This restaurant was advertising breakfast any time. So I ordered french toast in the renaissance. - Steven Wright, comedian

Working...