Live data from Hacker News

How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

merriam-webster.com

301–310 of 492 posts

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#301

If you are looking for alternative to kebab case to write identifier in programming language which reserve the - (U+002d) as an operator, chances are good you can use · (U+00B7 · MIDDLE DOT), that we use in middot case . So isMorePleasantToRead, is_more_pleasant_to_read or is·more·pleasant·to·read is up to you.

But how pleasant is it to write?

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#302

0 0 000048 48 H LATIN CAPITAL LETTER H 1 1 00006F 6F o LATIN SMALL LETTER O 2 2 000077 77 w LATIN SMALL LETTER W 3 3 000020 20 SPACE 4 4 000074 74 t LATIN SMALL LETTER T 5 5 00006F 6F o LATIN SMALL LETTER O 6 6 000020 20 SPACE 7 7 000055 55 U LATIN CAPITAL LETTER U 8 8 000073 73 s LATIN SMALL LETTER S 9 9 000065 65 e LATIN SMALL LETTER E 10 10 000020 20 SPACE 11 11 000045 45 E LATIN CAPITAL LETTER E 12 12 00006D 6D m…

That's a problem on the HN side only, not in the article

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#303

I refuse to care about this. A single dash is all I will ever use. I see no possible reason to use the other two.

I was going to post basically this. There is only one dash, and it's the one for which my keyboard has a key. Minus sign, hyphen, or any other use case. When MS word autocorrects to something else, I always angrily undo it, because I don't know or care what it's doing. -proud dash luddite

[deleted]

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#305
post #46

AFAIK most computer keyboards don't have em dashes. Rather than hit ALT+0151 every time, I've always just strung along two hyphens, like: -- Absolutely proper and correct use of em dashes, en dashes, and hyphens is, to me, the most obvious tell of the LLM writer. In fact, I think that you can use it to date internet writing in general. For it seems to me that real em dashes were uncommon pre-2022.

Automatic conversions have been happening for a long time. In fact, a few years ago there was some combination of settings on my terminal locale settings and man (well, troff/groff most likely) was converting hyphens in param definitions to some sort of dash character, meaning I couldn't copy and paste out of the man page. I think it also affected perldoc for the same reason. I don't doubt there are publishing platfo…

Context: https://lists.debian.org/debian-devel/2023/10/msg00085.html

Money quote:

  This issue does indeed have a history of provoking unhinged lunacy.

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#306

Somewhat off topic, however, I'm thoroughly convinced that there is a very high probability something is AI generated when I see Em dashes. Anyone else noticing this? ChatGPT for example almost always uses them. I'm sure they are more common in academic writing, but its now super common on boards like Reddit.

The only people still using em-dashes are those who think it's somehow a signal of high intellect rather than being (extremely) behind the times. Case in point: this exact comment section where you see it with ~10000x the frequency of standard human writing, or even the average HN thread. Just makes me roll my eyes really seeing a human use an em-dash. We've in the age of informality, and at least for me personally I…

Maybe you're projecting? Not everyone has an agenda beyond just thinking it looks good.

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#307
post #80

One point that is very rarely mentioned is how to place em dashes around quotations marks. If the em dash indicates an interruption (not a planned pause) of the actual speech, the em dashes go inside the quotes (often just one, before the closing quote). If the em dash is the narrator interjecting with additional information, the em dashes go outside the quotes. Besides this, the question of where to put spaces when…

this is the definiton of bikeshedding

[deleted]

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#308
post #165
post #142

Here's an easy, if not always precise way to remember: * Hyphens connect things, such as compound words: double-decker , cut-and-dried , 212-555-5555 . * EN dashes make a range between things: Boston–San Francisco flight, 10–20 years: both connect not only the endpoints, but define that all the space between is included. (Compare the last usage with the phone number example under Hyphens.) * EM dashes break things, s…

> EM dashes break things, such as sentences or thoughts Some style guides recommend "space, en dash, space" for this, and I prefer that myself – mainly because some software doesn't treat em dashes correctly as word separators for double click selection purposes. For example, I'm pretty sure that at least some Kindle models would highlight both the word before and after the em dash when selecting one of them, which m…

It's actually only your post that made me realize people don't normally put spaces around em dash. In French, Russian and a bunch of other languages proper typesetting is to use em dash as a standard dash character, and you always put spaces around them. So I did it in English as well, for many years now.

(I also now looked up and found out that in Spanish, apparently, you are supposed to put space only on one side of the dash, when used as a direct speech separator.)

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#309
post #165
post #142

Here's an easy, if not always precise way to remember: * Hyphens connect things, such as compound words: double-decker , cut-and-dried , 212-555-5555 . * EN dashes make a range between things: Boston–San Francisco flight, 10–20 years: both connect not only the endpoints, but define that all the space between is included. (Compare the last usage with the phone number example under Hyphens.) * EM dashes break things, s…

> EM dashes break things, such as sentences or thoughts Some style guides recommend "space, en dash, space" for this, and I prefer that myself – mainly because some software doesn't treat em dashes correctly as word separators for double click selection purposes. For example, I'm pretty sure that at least some Kindle models would highlight both the word before and after the em dash when selecting one of them, which m…

I have been doing this for purely aesthetic reasons my whole life. Style guides be damned, I hate connected em dashes.

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#310
post #4

AFAIK most computer keyboards don't have em dashes. Rather than hit ALT+0151 every time, I've always just strung along two hyphens, like: -- Absolutely proper and correct use of em dashes, en dashes, and hyphens is, to me, the most obvious tell of the LLM writer. In fact, I think that you can use it to date internet writing in general. For it seems to me that real em dashes were uncommon pre-2022.

Alt+hyphen or alt+shift+hyphen is an endash/emdash. You may not have been aware of it because it's so subtle, but many people (including myself) used emdashes long before 2022 (edit: apparently only on Mac, see reply below)

Works here on Linux too, so not just Macs.
Post reply on HN