News for hackers. Stuff that matters.
Re:Punctuation Matters: How to use the en dash, em dash and ... by frizlab on Sunday March 12, 2023 @06:57AM (#35118663)
An example from the article:

Looks good: “Sometimes writing for money—rather than for art or pleasure—is really quite enjoyable.”

Unreadable: “Sometimes writing for money-rather than for art or pleasure-is really quite enjoyable.”

Yes, punctation does matter. (In French the em-dash is almost inexistant; we use parenthesis instead usually.)

Re:Punctuation Matters: How to use the en dash, em dash and ... by yardstick on Sunday March 12, 2023 @07:07AM (#35118732)
Just add spaces. Sorted.

“Sometimes writing for money - rather than for art or pleasure - is really quite enjoyable.”

Re:Punctuation Matters: How to use the en dash, em dash and ... by greenicon on Sunday March 12, 2023 @07:23AM (#35118839)
In German that’s the way it’s done: en-dash with spaces, em-dashes (basically) don’t exist.
Re:Punctuation Matters: How to use the en dash, em dash and ... by FabHK on Sunday March 12, 2023 @07:30AM (#35118902)
However, it is the en-dash, properly, rather than the hyphen. I quite like that punctuation.

Now, anyone typing random texts to a friend or a few need not care, but I think people that write in a professional capacity to more than a few people should know and care.

Re:Punctuation Matters: How to use the en dash, em dash and ... by atoav on Sunday March 12, 2023 @07:29AM (#35118896)
I use em dashes with spaces in German (and English) all the time — I just like it better and don't care about arbitrary rules and traditions.
Re:Punctuation Matters: How to use the en dash, em dash and ... by r2222 on Sunday March 12, 2023 @10:07AM (#35120188)
Yea em dash with spaces looks better to me too, I find that it’s harder to read if the em dash is there without surrounding spaces. Looks too cramped, not separated enough.
Re:Punctuation Matters: How to use the en dash, em dash and ... by Chris_Newton on Sunday March 12, 2023 @12:41PM (#35122356)
I have never understood the classical rule of no spaces around em-dashes. If you’re going to use fancy dashes at all, an em-dash represents a clear pause, a break in thought — something more robust than a mere comma. Typesetting an em-dash sometimes literally touching the words on either side has the opposite effect, visually connecting those words rather than separating them, and unlike a lot of the typographical snobbery we sometimes engage in, that one is a well-known (at least to designers) effect of proximity. Personally I prefer a thin space rather than a full one in media where it’s possible, purely for cosmetic reasons, but I’d rather have a normal space than none.
Re:Punctuation Matters: How to use the en dash, em dash and ... by zelphirkalt on Sunday March 12, 2023 @07:59AM (#35119100)
I think that is not really true? There is the "Gedankenstrich" and one can see it in texts. Or do you mean, that it is so rare, that German language almost does not use it? I think that depends on the writer.
Re:Punctuation Matters: How to use the en dash, em dash and ... by greenicon on Sunday March 12, 2023 @01:14PM (#35122891)
Yes, and the Gedankenstrich is usually set as en-dash with spaces around, only rarely as em-dash. See https://de.wikipedia.org/wiki/Halbgeviertstrich#Gedankenstri...
Re:Punctuation Matters: How to use the en dash, em dash and ... by masswerk on Sunday March 12, 2023 @09:51AM (#35120007)
Hum, a hyphen is still an entity of its own (it may be even a short, slanted dash in some fonts), then there's the en-dash for association (e.g. "ZDF – Zweites Deutsches Fernsehen"), and there's the "Gedankenstrich", which performs more like a separator. Three typographical entities to express three different concepts. (But there's a tendency of mixing the en-dash with spaces and the "Gedankenstrich", as the latter also comes with surrounding spaces, which may appear overly exaggerated in some fonts.)
Re:Punctuation Matters: How to use the en dash, em dash and ... by greenicon on Sunday March 12, 2023 @01:19PM (#35122968)
Sure. As far as I‘m aware the Gedankenstrich is usually set as en-dash with spaces in German, though [1].

1: https://de.wikipedia.org/wiki/Halbgeviertstrich#Gedankenstri...

Re:Punctuation Matters: How to use the en dash, em dash and ... by knert on Sunday March 12, 2023 @07:15AM (#35118785)
This is what I do. I don’t see the problem here. I don’t see the need to adopt additional characters.
Re:Punctuation Matters: How to use the en dash, em dash and ... by TheOtherHobbes on Sunday March 12, 2023 @11:52AM (#35121572)
It's a tradition from hand-set paper print which is now largely obsolete.
Re:Punctuation Matters: How to use the en dash, em dash and ... by kimburgess on Sunday March 12, 2023 @08:00AM (#35119101)
En space, em space, three-per-em space, four-per-em space, six-per-em space, figure space, punctuation space, thin spare, hair space, ideographic space, or Ogham space?
Re:Punctuation Matters: How to use the en dash, em dash and ... by alpaca128 on Sunday March 12, 2023 @08:30AM (#35119307)
I have written and read text for decades without knowing the difference between those, so whatever space one gets when pressing the spacebar seems to do the job just fine. And if in doubt LaTeX etc will handle the rest well enough if I care about sub-pixel precision of some margins.
Re:Punctuation Matters: How to use the en dash, em dash and ... by IncRnd on Sunday March 12, 2023 @08:40AM (#35119397)
Since I am now a hyper-hyphen-partisan-pundit after reading that blog post - I'd like to comment on your hyper-hyphenated comment.

> “Sometimes writing for money - rather than for art or pleasure - is really quite enjoyable.”

To me this looks like a case of the corrective comma.

“Sometimes writing for money, rather than for art or pleasure, is really quite enjoyable.”

Re:Punctuation Matters: How to use the en dash, em dash and ... by ant6n on Sunday March 12, 2023 @10:01AM (#35120121)
Your first sentence should also use a comma rather than the wrong dash.
Re:Punctuation Matters: How to use the en dash, em dash and ... by IncRnd on Sunday March 12, 2023 @01:01PM (#35122709)
That's why I used the dash...
Re:Punctuation Matters: How to use the en dash, em dash and ... by c22 on Sunday March 12, 2023 @02:32PM (#35124177)
The way I was taught, you use the comma for a brief aside--em dashes are used for a larger diversion (and parenthesis are for the most tenuous connections.)

In other words a reader should be able to skip reading the contents of parenthesis with negligible impact on the context or meaning of the sentence. They should be able to skip reading the contents of em-dash-seperated text without changing the meaning of the sentence. And text between commas should be considered integral to the sentence, while secondary to the primary gist.

Re:Punctuation Matters: How to use the en dash, em dash and ... by IncRnd on Sunday March 12, 2023 @02:53PM (#35124486)
What you reference is that commas are used to set off non-restrictive clauses, where the meaning of the sentence is clear without the additional clause. Though, the non-restrictive clause provides additional description of a word in the main sentence.

Such as:

Sometimes writing for money, rather than for art or pleasure, is really quite enjoyable.

Other than that, many people have come up with many writing styles. We mostly seem to be able to understand each other, so we are "all good".

Re:Punctuation Matters: How to use the en dash, em dash and ... by eternalban on Sunday March 12, 2023 @03:42PM (#35125195)
“Sometimes writing for money - I have other aims besides art or pleasure - is really quite enjoyable.”
Re:Punctuation Matters: How to use the en dash, em dash and ... by tines on Sunday March 12, 2023 @08:46AM (#35119441)
Spaces can cause word wrap that can leave a dash at the end or beginning of a line, which is not beautiful. A spaceless em dash is more legible and doesn't have the wrapping issues. You could argue that that's a problem with word wrap algorithms, not punctuation, but that situation is not going to change any time soon.
Re:Punctuation Matters: How to use the en dash, em dash and ... by sethammons on Sunday March 12, 2023 @08:54AM (#35119510)
Is this the yardstick from The Grid? If so, hope all is well :) (and if not, I also hope all is well)
Re:Punctuation Matters: How to use the en dash, em dash and ... by yardstick on Sunday March 12, 2023 @10:25AM (#35120406)
Sorry that’s not me, but thanks for the well wishes and I hope all is well for you too!
Re:Punctuation Matters: How to use the en dash, em dash and ... by gnull on Sunday March 12, 2023 @09:10AM (#35119656)
Em-dashes add a bit of a pause. And having them longer and taking a bit more of horizontal space makes it more intuitive. They also break a sentence into parts. Having them easily distinguishable helps navigate text and reduces overhead. Just like periods or paragraph breaks help you see parts of a text, or syntax highlighting helps you see lexemes in a program.

Using just one dash for everything will be readable in a text message or comment. But not in a (complicated) book, because there the benefit of these small things gets multiplied by the scale of the book.

Re:Punctuation Matters: How to use the en dash, em dash and ... by throw0101c on Sunday March 12, 2023 @10:06AM (#35120179)
> They also break a sentence into parts.

IMHO, this is the main determination on when I decide to use em-dashes: is the text between them an aside of some kind? An alternatives would be to use parentheses.

Personally I do not find that " - " as the GP suggests enough of a visual cue as "—". And on macOS using different dashes is fairly straight-forward:

* hyphen: the key next to zero, "-"

* en-dash: alt/option-"-": –

* em-dash: shift-alt/option-"-": —

Some apps (e.g. Mail) auto-convert double-"-" into an em-dash as well.

Re:Punctuation Matters: How to use the en dash, em dash and ... by gnull on Sunday March 12, 2023 @06:07PM (#35126935)
Good to see OSX people thought about this.

On Linux, one needs to enable Compose key (keyboard layout settings). After that, you get default sequences like --. and --- for en- and em-dashes.

Re:Punctuation Matters: How to use the en dash, em dash and ... by Findecanor on Sunday March 12, 2023 @10:10AM (#35120219)
A common substitution for emdash is -- which are two hyphens with spaces around them.

Personally, I think two hyphens also looks better than just one, and it conveys that you really intended it to mean emdash rather than hyphen.

Re:Punctuation Matters: How to use the en dash, em dash and ... by computerfriend on Sunday March 12, 2023 @11:07AM (#35120894)
This is similar to how it's typeset in TeX as well: two for en, three for em.
Re:Punctuation Matters: How to use the en dash, em dash and ... by EGreg on Sunday March 12, 2023 @12:32PM (#35122205)
I have used two hyphens, but I appreciated text editors collapsed them into an (em-) dash.

Hyphens are simply for connected-words while dashes are -- for better of worse -- to make asides.

Re:Punctuation Matters: How to use the en dash, em dash and ... by vitus on Sunday March 12, 2023 @01:00PM (#35122681)
> Personally, I think two hyphens also looks better than just one

It's context-dependent. (Aside: you wouldn't write "context--dependent", which is the use case of the hyphen.)

Ostensibly the en dash is primarily used for ranges, although that's a case where I'm inconsistent. I won't typically write "A - Z" or the technically correct "A–Z", as I think in that case I tend to write "A-Z", using a simple hyphen. I certainly won't write "A -- Z".

The em dash is even wider—it's not typically mistaken for a hyphen.

Re:Punctuation Matters: How to use the en dash, em dash and ... by c22 on Sunday March 12, 2023 @02:21PM (#35124018)
Sometimes I write A->Z.
Re:Punctuation Matters: How to use the en dash, em dash and ... by flint on Sunday March 12, 2023 @10:52AM (#35120690)
yup
Re:Punctuation Matters: How to use the en dash, em dash and ... by jameshart on Sunday March 12, 2023 @12:38PM (#35122316)
If you’re going to do that, en dashes look nicer (as explained in the article):

“Sometimes writing for money – rather than for art or pleasure – is really quite enjoyable.”

Re:Punctuation Matters: How to use the en dash, em dash and ... by EchoReflection on Sunday March 12, 2023 @07:57PM (#35128455)
Or commas (?). "Sometimes writing for money, rather than for art or pleasure, is really quite enjoyable."
Re:Punctuation Matters: How to use the en dash, em dash and ... by askvictor on Sunday March 12, 2023 @07:29AM (#35118898)
I disagree that the first example looks good. Both cases would be better with spaces, which kind of renders the em dash unnecessary.
Re:Punctuation Matters: How to use the en dash, em dash and ... by ghaff on Sunday March 12, 2023 @08:27AM (#35119286)
Some places I write for use the em-dash with spaces and some without. I try to remember which is which but I often forget.
Re:Punctuation Matters: How to use the en dash, em dash and ... by IIAOPSW on Sunday March 12, 2023 @07:04AM (#35118711)
The "unreadable" sample is very much readable. We can all read it. No one is tripping up trying to figure out what a "money-rather" is.
Re:Punctuation Matters: How to use the en dash, em dash and ... by floodle on Sunday March 12, 2023 @07:10AM (#35118753)
Not for me. It's readable, but my brain has to do more work. When I get to "money-rather" my brain trips up slightly, and then I'm confused until the next dash, then I go back and figure it out.

All possible and dealt with in under a second, but in the first example with the longer dash my brain recognises a parenthesis and I take a little "breath pause" before carrying on.

Re:Punctuation Matters: How to use the en dash, em dash and ... by zelphirkalt on Sunday March 12, 2023 @08:01AM (#35119108)
Also consider, that eye movement is not always linear from left to right. But I agree, brain has to do more work and it is slightly confusing.
Re:Punctuation Matters: How to use the en dash, em dash and ... by OGWhales on Sunday March 12, 2023 @02:17PM (#35123946)
I can read it, but it definitely trips me up.
Re:Punctuation Matters: How to use the en dash, em dash and ... by dmm10 on Sunday March 12, 2023 @08:58AM (#35119539)
Others have mentioned using spaces with an en-dash or hyphen instead of an em-dash. Having used a typewriter -back in the day- I learned to produce text like this.

How I learned the Unreadable: “Sometimes writing for money -rather than for art or pleasure- is really quite enjoyable.”

To the teacher I learned from this was a standard way of punctuating on a typewriter.

Re:Punctuation Matters: How to use the en dash, em dash and ... by ghaff on Sunday March 12, 2023 @10:20AM (#35120339)
I use em-dashes and parentheses somewhat differently but you can mostly substitute the latter for the former.
Re:Punctuation Matters: How to use the en dash, em dash and ... by seszett on Sunday March 12, 2023 @10:36AM (#35120514)
> In French the em-dash is almost inexistant; we use parenthesis instead usually.

The only French-speaking place I've seen em-dashes used in daily life was Québec. For some (good) reason, it seems administration took a lot of care in using correct typography. My voting district for example was Mercier–Hochelaga-Maisonneuve (the first dash being an en-dash, and the second one a hyphen) and I was always amazed at how all communication actually used these two different dashes.

I can't imagine this level of care in French or Belgian official communication.

Re:Punctuation Matters: How to use the en dash, em dash and ... by wlonkly on Sunday March 12, 2023 @07:59PM (#35128487)
(By way of explanation, the parent commenter's voting district covered the Mercier and the Hochelaga-Maisonneuve neighbourhoods.)
Re:Punctuation Matters: How to use the en dash, em dash and ... by miramba on Sunday March 12, 2023 @10:55AM (#35120725)
It‘s not unreadable, just a tad more difficult. And as others have pointed out, there are other ways of making it easier again than using a specific character. But the real point is: The information transported in both examples did not change its meaning and will be understood by the reader / receiver in both cases. If it‘s not, it matters. As long as it is, it‘s pedantic.
Re:Punctuation Matters: How to use the en dash, em dash and ... by dsego on Sunday March 12, 2023 @11:06AM (#35120877)
Right, the dash length seems more of an aesthetic choice, like a drop cap or something.
Re:Punctuation Matters: How to use the en dash, em dash and ... by biztos on Sunday March 12, 2023 @11:12AM (#35120965)
Looks better: “Sometimes writing for money — rather than for art or pleasure — is really quite enjoyable.”

Punctuation matters, but space -- the "zeroth punctuation mark" -- matters more!

The author does discuss spacing the dashes but is, given the overall point of the article, surprisingly noncommittal.

Re:Punctuation Matters: How to use the en dash, em dash and ... by ehsankia on Sunday March 12, 2023 @11:28AM (#35121194)
Wouldn't the alternative rather be to use commas there, not a hyphen?

"Sometimes writing for money, rather than for art or pleasure, is really quite enjoyable."

In your head, do you read those differently?

Re:Punctuation Matters: How to use the en dash, em dash and ... by jameshart on Sunday March 12, 2023 @12:42PM (#35122387)
Personally, I think this sentence would benefit from a comma before the ‘or’. And in that case we could probably benefit from a clearer way of setting aside the parenthetical.

“Sometimes writing for money, rather than for art, or pleasure, is really quite enjoyable.”

– this seems awkward to me. This version, though:

“Sometimes writing for money—rather than for art, or pleasure—is really quite enjoyable.”

Isn’t that more fluid?

Re:Punctuation Matters: How to use the en dash, em dash and ... by noizejoy on Sunday March 12, 2023 @02:36PM (#35124238)
> “Sometimes writing for money, rather than for art, or pleasure, is really quite enjoyable.”

I think that changes the meaning, since it’s now a list of 3 items with an Oxford comma, rather than two lists, with the first list having 1 item, and the second list having 2 items. And I’m having a rough time even making sense of such revised meaning.

Expressed as pseudo-code, I read the original intent of that sentence as:

“money and not(art or pleasure) == enjoyable”

and that can be broken into

“((money and not art) or (money and not pleasure)) == enjoyable

Re:Punctuation Matters: How to use the en dash, em dash and ... by 83457 on Sunday March 12, 2023 @11:47AM (#35121495)
I just use commas or parens.
Re:Punctuation Matters: How to use the en dash, em dash and ... by jameshart on Sunday March 12, 2023 @12:03PM (#35121750)
Having multiple options for how to offset parenthetical asides, far from being redundant (or even confusing), offers us—as writers and readers—more opportunities to express the tonal variations (or nuances) that we would – in spoken language – communicate through our voice and body language; moreover it lets us vary the visual, aesthetic quality of our prose – which is as much a part of the experience of reading as comprehension is.
Re:Punctuation Matters: How to use the en dash, em dash and ... by wholinator2 on Sunday March 12, 2023 @12:16PM (#35121971)
Is this a written excerpt from a text book or something? This single sentence makes more sense than many of the arguments I've seen previously.
Re:Punctuation Matters: How to use the en dash, em dash and ... by jameshart on Sunday March 12, 2023 @12:35PM (#35122256)
Nah, it’s just a deliberate hodge-podge of a sentence where I threw in every subclause I could to try to illustrate the point.
Re:Punctuation Matters: How to use the en dash, em dash and ... by lencastre on Sunday March 12, 2023 @11:50AM (#35121545)
Also in Portugal, just use parenthesis (like when you would insert an idea into a sentence) and it still reads fine.
Re:Punctuation Matters: How to use the en dash, em dash and ... by nephanth on Sunday March 12, 2023 @12:49PM (#35122501)
> In French the em-dash is almost inexistant; we use parenthesis instead usually.

French uses em-dashes ("tiret cadratin") or en-dashes ("tiret semi-cadratin") for dialogue. Like so:

– bonjour, dit-elle, comment allez vous?

– bonsoir, repondit-on. Ça va ça vient, et vous?

– bien