News for hackers. Stuff that matters.
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."