zlacker

[parent] [thread] 15 comments
1. majorm+(OP)[view] [source] 2025-08-30 04:36:39
There's an easy keyboard shortcut for it on Macs. I always saw it as a signifier of "Mac user with enough interest in writing style to use em-dashes instead of parentheses."

But I'm not on a Mac right now so I don't know how to even make a real one at the moment other than that LaTeX method.

replies(3): >>machin+B2 >>Freak_+Fk >>Hamuko+1n
2. machin+B2[view] [source] 2025-08-30 05:30:20
>>majorm+(OP)
Easy is almost an understatement; it's Alt+Hyphen. [Edit: My bad that's en-dash, can't tell the difference in this monospaced text field. Em-dash you have to hold shift.]

I guess on Windows it's Alt+0,1,5,1 on a numpad. Or you copy+paste from Character Map.

replies(3): >>e28eta+K2 >>notpus+F9 >>SAI_Pe+t32
◧◩
3. e28eta+K2[view] [source] [discussion] 2025-08-30 05:32:29
>>machin+B2
To be pedantic: Opt-shift-hyphen for the em dash (longer one). Opt-hyphen only gets you an en dash.
replies(3): >>9dev+K3 >>machin+P3 >>saagar+Qg
◧◩◪
4. 9dev+K3[view] [source] [discussion] 2025-08-30 05:49:35
>>e28eta+K2
…which is the appropriate character for ranges, i.e., page 1–2.

I find it a bit sad that using proper typography is now frowned upon, but it seems that ship has sailed.

replies(1): >>Symbio+5e
◧◩◪
5. machin+P3[view] [source] [discussion] 2025-08-30 05:50:44
>>e28eta+K2
Right, you sniped my edit. I don't know why I gave up my hn delay setting...
◧◩
6. notpus+F9[view] [source] [discussion] 2025-08-30 07:08:53
>>machin+B2
You can install a custom layout on Windows, like the one I made: https://typo.ale.sh/
◧◩◪◨
7. Symbio+5e[view] [source] [discussion] 2025-08-30 08:02:58
>>9dev+K3
From the discussion with our head of communications (whose pedantry I approve of) US usage avoids spaces—like this—and should use an em-dash.

But British usage – instead – uses spaces, so an en-dash or an em-dash is acceptable.

replies(1): >>d1sxey+XI
◧◩◪
8. saagar+Qg[view] [source] [discussion] 2025-08-30 08:36:23
>>e28eta+K2
One of the reasons I'm not on that page–I have a policy of using en dashes because I am lazy
9. Freak_+Fk[view] [source] 2025-08-30 09:25:03
>>majorm+(OP)
Not just Apple users. The compose-key does this on a variety of desktop operating systems, where the shortcut is COMPOSE - - - for em-dash, and - - . for en-dash.
replies(1): >>layer8+JA
10. Hamuko+1n[view] [source] 2025-08-30 09:59:49
>>majorm+(OP)
Another one is … instead of ...
◧◩
11. layer8+JA[view] [source] [discussion] 2025-08-30 12:54:13
>>Freak_+Fk
Alternatively, Compose 2 - for en dash and Compose 3 - for em dash.
◧◩◪◨⬒
12. d1sxey+XI[view] [source] [discussion] 2025-08-30 13:57:33
>>Symbio+5e
Generally spaces around em-dashes is a question of style, not pre- or pro-scribed by any specific typographical rule. One nice middle ground is a hair space ( ), although it’s a pain to insert.
replies(2): >>165944+IG1 >>andrew+NG1
◧◩◪◨⬒⬓
13. 165944+IG1[view] [source] [discussion] 2025-08-30 22:11:48
>>d1sxey+XI
> spaces around em-dashes is a question of style, not pre- or pro-scribed by any specific typographical rule

Writing and publishing style guides like Hart's Rules (Oxford Style Guide) & Chicago manual of style have the 'em' dash use as a parenthetical closed or "no spaces" dash.

In British use – Hart's Rules – writers will choose the 'en' dash with spaces as a parenthetical dash, where US writers/publishers choose the closed 'em' dash for the same thing.

Imo, there is a conflation of 'en' dash and 'em' dash going around due to the ease of smart-dashes auto-correction turning (--) into 'em' dash with the 'en' dash and non-auto-correct 'em' dash needing a key-combo.

Common everyday typing online, I think people will simply use what is convenient and "good enough" -- a single hyphen dash as an 'en' dash or 2-hyphen dashes that may or may not auto correct into an 'em' dash. I prefer mixing spaces with a 2-hyphen dash 'em' dash, but I'm not a published writer so I enjoy doing wild things like that

◧◩◪◨⬒⬓
14. andrew+NG1[view] [source] [discussion] 2025-08-30 22:12:33
>>d1sxey+XI
I configured my Markdown renderer to replace ` -- ` with " — ". Hopefully those narrow spaces make it through HN's rendering — it's much easier when your tooling can do the job for you.

https://github.com/andrewaylett/aylett.co.uk/blob/d338d35a3d...

◧◩
15. SAI_Pe+t32[view] [source] [discussion] 2025-08-31 02:36:04
>>machin+B2
Or you've had WinCompose installed for years and type Compose+hyphen+hyphen+hyphen. — is easy to type that way. The same works for Linux with a compose key enabled, WinCompose is a program to give Windows a compose key, and comes with default sequences including those found by default in most distro's XCompose list.
replies(1): >>etra0+Ga2
◧◩◪
16. etra0+Ga2[view] [source] [discussion] 2025-08-31 04:08:49
>>SAI_Pe+t32
Big shout-out to WinCompose, it's the only way I found my keyboard usable while being bilingual :)
[go to top]