News for hackers. Stuff that matters.
Re:You did this with an AI and you do not understand what yo... by alchemist1e9 on Monday September 22, 2025 @07:04AM (#45331756)
I’m guessing this list is defined by Mac users who all got taught em dash somewhere similar or for similar reasons. It is only easy to use on a Mac. But I wonder what is the 2nd common influence of users using it?
Re:You did this with an AI and you do not understand what yo... by fao_ on Monday September 22, 2025 @07:47AM (#45332080)
On Linux I just type (in sequence):

compose - -

and it makes an em dash, it takes a quarter of a second longer to produce this.

I don't know why the compose key isn't used more often.

Re:You did this with an AI and you do not understand what yo... by whilenot-dev on Monday September 22, 2025 @07:59AM (#45332204)
The compose key feels mandatory for anyone who wants to type their native langauge on an US-english layout. The combination[0] is "Compose--." though: –

[0]: https://en.wikipedia.org/wiki/Compose_key#Common_compose_com...

Re:You did this with an AI and you do not understand what yo... by teddyh on Monday September 22, 2025 @09:37AM (#45333313)
“Compose--.” produces an en dash, not an em dash. An em dash is produced by “Compose---”.

Source:

  grep -e DASH /usr/share/X11/locale/*/Compose
Re:You did this with an AI and you do not understand what yo... by mock-possum on Monday September 22, 2025 @10:51AM (#45334300)
As it should be. I wish this convention were present across more software, “-“ “- -“ and “- - -“ should be the UI norm for entering proper dashes in text input controls.
Re:You did this with an AI and you do not understand what yo... by WhyNotHugo on Monday September 22, 2025 @11:49AM (#45335144)
Most software handles this fine if you configure your compositor to use a compose key.
Re:You did this with an AI and you do not understand what yo... by fao_ on Monday September 22, 2025 @05:44PM (#45339915)
Whoops, yep that's the one
Re:You did this with an AI and you do not understand what yo... by crabmusket on Monday September 22, 2025 @09:34AM (#45333260)
[As an English typer] Where is this compose key on my keyboard?

(This is a vaguely Socratic answer to the question of why the compose key is not more often used.)

Re:You did this with an AI and you do not understand what yo... by WhyNotHugo on Monday September 22, 2025 @11:48AM (#45335132)
It’s not mapped to any key by default. A common choice is the right alt key.

I wrote a short guide about it last year: https://whynothugo.nl/journal/2024/07/12/typing-non-english-...

Re:You did this with an AI and you do not understand what yo... by capitainenemo on Monday September 22, 2025 @05:29PM (#45339714)
My personal preference is the capslock key. I'm not using it for anything anyway
Re:You did this with an AI and you do not understand what yo... by layer8 on Monday September 22, 2025 @10:46AM (#45334209)
In Vim it's Ctrl+K. ;)
Re:You did this with an AI and you do not understand what yo... by fao_ on Monday September 22, 2025 @05:50PM (#45339995)
As per the wiki article someone else listed — the compose key was available on keyboards back in the 1980s (notably it was invented only 5 years after the Space Cadet keyboard was invented!).

Some DOS applications did have support for it. The reason it wasn't included is baffling, and it's especially baffling to me that other operating systems never adopted it, simply because

    compose a '
is VASTLY more user friendly to type than:

    alt-+
    1F600
which I have met some windows users who memorize that combo for things like the copyright symbol (which is simply:)

    compose o c
Re:You did this with an AI and you do not understand what yo... by Freak_NL on Monday September 22, 2025 @07:30AM (#45331954)
This is a misconception which keeps getting repeated. It's easy to use an em-dash on any modern Linux desktop as well (and in a lot of other places).
Re:You did this with an AI and you do not understand what yo... by chrismorgan on Monday September 22, 2025 @08:03AM (#45332228)
Though it does still require nominating a key to map to Compose. And is not generally meaningfully documented. So I’d only call it easy for the sorts of people that care enough to find it.

But then, long before I had a Compose key, in my benighted days of using Windows, I figured out such codes as Alt+0151. 0150, 0151, 0153, 0169, 0176… a surprising number of them I still remember after not having typed them in a dozen years.

Re:You did this with an AI and you do not understand what yo... by dolmen on Monday September 22, 2025 @08:19AM (#45332382)
I miss the numeric keypad (gone on laptops) to be able to properly type my last name with its accentuated letter.
Re:You did this with an AI and you do not understand what yo... by stn8188 on Monday September 22, 2025 @08:24AM (#45332442)
In electrical engineering I'm still using a few alt codes daily, like 248 (degree sign), 234 (Omega), 230 (mu), and 241 (plus or minus). I'd love to add 0151 to the repertoire, but I don't want people to think I used AI to write stuff....
Re:You did this with an AI and you do not understand what yo... by 1718627440 on Tuesday September 23, 2025 @01:44AM (#45343164)
I've never bothered to read about the compose key, but en/em-dash is accessible (in Debian) with AltGr-(Shift)-Hyphen/Minus too. Copyright (©) is AltGr-Shift-C.
Re:You did this with an AI and you do not understand what yo... by nick__m on Monday September 22, 2025 @07:11AM (#45331807)
Android — keyboard – good for endash to !
Re:You did this with an AI and you do not understand what yo... by capitainenemo on Monday September 22, 2025 @09:57AM (#45333568)
My favourite android keyboard has a compose key and also a lot of good defaults in long touch on keys (including en and em under dash). Only downside is last android update causes the keyboard to be overlapped in landscape mode. A problem with a number of alternative keyboards out there. https://github.com/klausw/hackerskeyboard/issues/957
Re:You did this with an AI and you do not understand what yo... by throwup238 on Monday September 22, 2025 @07:55AM (#45332160)
Or, you know — iOS. That’s huge marketshare for a keyboard that automatically converts -- to —
Re:You did this with an AI and you do not understand what yo... by alchemist1e9 on Monday September 22, 2025 @08:17AM (#45332360)
That probably explains everything from a statistical perspective about this em dash topic. I didn’t know that — Thanks.
Re:You did this with an AI and you do not understand what yo... by redwall_hp on Monday September 22, 2025 @09:55AM (#45333538)
Or Microsoft word. Many common tools in different contexts make it easy to do.

As it turns out, the differentiator is the level of literacy.

Re:You did this with an AI and you do not understand what yo... by mock-possum on Monday September 22, 2025 @10:56AM (#45334364)
And whether the user cares to ‘write properly’ to boot. I love using dashes to break up sentences - but I rarely take the time to use the proper dashes, unless I’m writing professionally. I treat capitalization the same way - I rarely capitalize the first letter of a paragraph. I treat ‘rules’ like that as typographic aesthetic design conventions - optional depending on context.
Re:You did this with an AI and you do not understand what yo... by Philadelphia on Monday September 22, 2025 @05:39PM (#45339848)
You can also hold down the hyphen key and select it from the popup menu. En dash lives there, too.
Re:You did this with an AI and you do not understand what yo... by duncan_britt on Monday September 22, 2025 @09:39AM (#45333333)
In emacs, Ctr-x 8 <return> is how i type it. Pretty easy.
Re:You did this with an AI and you do not understand what yo... by 0x457 on Monday September 22, 2025 @03:20PM (#45338208)
It's just em dash is the correct symbol, and typing it on Mac is simple: `cmd + -`

You can tell if I'm using mac or not for specific comment by the presence of em dash.