News for hackers. Stuff that matters.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by jml7c5 on Thursday March 27, 2025 @04:47PM (#43497975)
I believe that's only on MacOS.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by dragonwriter on Thursday March 27, 2025 @06:03PM (#43498702)
I think Microsoft Office (maybe jiat Word, but definitely not Windows) has a similar default shortcut.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by harrall on Thursday March 27, 2025 @06:15PM (#43498812)
You don't need a shortcut on Word.

You just type two hyphens (--) and Word will convert it to an em dash.

Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by hunter2_ on Thursday March 27, 2025 @11:43PM (#43501306)
Across the Office suite:

Typing <word><hyphenminus><hyphenminus><word><space> yields an em dash.

Typing <word><space><hyphenminus><hyphenminus><space><word><space> yields an en dash.

That this has been true for some 3 or 4 decades makes me doubt all the comments that em dashes are a "tell" of LLM authorship. On the other hand, I guess when we confine this possibility to web content, I can see how people haven't used Office for web authoring lately, and whatever they do use (like web-based content management systems) don't tend to have this feature.

Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by iggldiggl on Friday March 28, 2025 @04:21AM (#43502846)
> Typing <word><space><hyphenminus><hyphenminus><space><word><space> yields an en dash.

More importantly, typing just a single hyphen minus in this constellation triggers the autoreplace, too. (Typing the double hyphen is only necessary without spaces in order to distinguish between an intentional hyphen and an em dash.)

Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by hunter2_ on Friday March 28, 2025 @12:57PM (#43507625)
Good point. Either way, it's kind of peculiar that getting an en dash in this manner demands flanking the hyphen(s) with spaces, and those spaces persist after replacement, when the typical usage of an en dash specifically doesn't demand spaces.

From TFA:

> August 1–August 31

From a top comment:

> Boston–San Francisco flight, 10–20 years

To achieve this using the replacement feature we're talking about would take something like <word><space><hyphenminus><space><word><space><alt+leftarrow><bksp><leftarrow><bksp><alt+rightarrow> which is ridiculous.

In professional typesetting, like a book, I sometimes see spaces flanking an em dash, however.

Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by venusenvy47 on Friday March 28, 2025 @10:04AM (#43505579)
I can't get this to work in Powerpoint. It's funny, I clicked on this thread because I was struggling with trying to make an "emdash" in Powerpoint yesterday and couldn't find the correct search term for the "long hyphen" that I was looking for.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by hunter2_ on Friday March 28, 2025 @12:52PM (#43507547)
Works fine for me on PowerPoint for Mac, oddly enough. Unrelatedly, Mac also allows easy (non-alt-code) keyboard entry: option-hyphen yields an en dash, while option-shift-hyphen yields an em dash.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by QuantumGood on Thursday March 27, 2025 @06:59PM (#43499208)
Turns into different things (like a bulleted list) in different situations in Word, though.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by n2d4 on Thursday March 27, 2025 @04:48PM (#43497987)
Seems like you're correct. Interesting!