News for hackers. Stuff that matters.
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