Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Just another form of shift key. Shift itself is a compose key.


Not really: shift must be used simultaneously and you only input a single key to be shifted, while compose takes a (“dead”?) sequence of inputs to be combined.


yes really. it's all the same thing. shift is just a simpler and more common subset. you are getting a glyph by composing from more than one key. whether ypu can let go of the key to do them in serial is immaterial. anyone could have an accessability setup for instance that allows shift to require only a single physical keypress at a time. It would still be shift.


How can I input ° for example with Shift?

It's "AltGr o o" but I haven't seen how to do it with Shift.


It's immaterial if some key on some keyboard in some language happens to have a key that produces that glyph by composing with shift, or not.

If you asked how to type numbers, and I said "same way you type letters", that does not mean by typing "A" and wondering why it didn't produce "1".

The question was what is a compose key or what does compose key mean.

Shift is an example of a compose key that everyone is familar with, just no one calls it that. But everyone already understands what the shift key does. If you know what the shift key is and how to use it and what it does, then you know what a compose key is. It's that.

All the other possible compose keys just do exactly that same thing, just more of it for more and different glyphs and control codes.


I understand you mean compose as a generic term for a symbol modifier? But for the compose key, the word composition is used as a synonym of combination, and that of a set of symbols; which is not the case of shifting each symbol into a corresponding set.

I agree that ctrl/alt/meta/shift are somewhat synonymous, and all those+compose are just instances of modifier keys.

But this combination meaning is specifically what makes the compose-key distinction useful and clear.


No not symbol modifier. Compose.

To get a particular glyph, or control code, you have to compose it out of multiple keypresses.

Some common examples happen to be modified versions of whatever glyph happens to be on a key, but that is just a subset, arranged that way for human sanity, humans would hate it if you had to press shift+g to get A, and really only in the latin languages whose writing even works that way. The glyphs could actually be anything, and outside of the latin languages they are. The poop emoji is not a modified form of any number or letter.

And it's not even just glyphs but any byte or byte sequence you want to produce. A single 0x01 byte is not a glyph, nor a modified form of any glyph, but you can still type it, and it's composed of the CTRL key and the A key.


You’ve misunderstood. No one said that they were equivalent, only that there was no functional difference between them. They certainly allow you to access different characters, but whether you hold down shift and then type a “d” to input a capital “D” or you tap shift and then tap the “d” to get the same result is merely a software setting that you can toggle. The same is true for AltGr and compose keys. You can configure your OS to require them to be typed as chords or as dead keys, whichever you prefer.

See also the space–cadet keyboard (<https://en.wikipedia.org/wiki/Space-cadet_keyboard#/media/Fi...>), which had no fewer than seven such keys labeled control, meta, super, hyper, shift, front, and top.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: