logoalt Hacker News

jona-ftoday at 4:07 AM6 repliesview on HN

How do you type the em dash. I thought the point about the em dash "—" is, that it is longer than the normal minus "-". Humans normally have no way to produce it, cause there is no key on the keyboard.


Replies

aenistoday at 6:56 AM

Some text editors replace the -- (two separate dashes) with a proper em-dash. Literate people - who understand why em dash exists - have been using it all the time. Thats, after all, how the models learned to use it.

Metricontoday at 4:55 AM

Many word processors (Microsoft Word, LibreOffice Writer, etc.) and some online editors will auto convert double hyphens "--" as they are typed into an em dash.

timbeccuetoday at 4:43 AM

Macos, ios, google docs, and microsoft word will autocorrect two hyphens to an em dash, which is how I normally type it. On a mac you can also type an em dash with option-shift-hyphen.

xoxoliantoday at 4:50 AM

Being Hacker News, a lot of us use programmable IDEs & keyboards. I added em dash support to both Emacs and Dygma keyboard.

normistoday at 4:32 AM

At least in macOS there is a key for that on the keyboard, Shift + Option + Hyphen (-). This information is a quick internet search away.

icelancertoday at 4:45 AM

dash dash "--" on a lot of systems and word processors turns it into the em-dash automatically