top | item 37138706

(no title)

tgflynn | 2 years ago

Yeah, I was hoping to find some general information on how the Compose key is (or was) supposed to work. It's easy to find info on how to assign the Compose key to a particular key but I haven't found anything on how to actually use it to input more or less complex character codes.

Part of the problem may also be the difference between precomposed and non precomposed glyphs in Unicode, which I don't really understand, but it seems that if a keyboard layout is designed to use precomposed glyphs it may not allow you to further compose those with other code points.

For example there is a character that is a lowercase alpha with both an acute accent and a macron on top. With the right font it displays correctly (it probably wouldn't if I tried to copy-paste it here) but I don't know how to enter it on the keyboard. I suspect that's because there's no precomposed Unicode codepoint for it and my keyboard layout only seems to work with those.

The correct encoding for it is "GREEK SMALL LETTER ALPHA WITH MACRON" (Unicode name) composed with "'".

discuss

order

lproven|2 years ago

Well, here's a story about how to configure and use one that I wrote last year:

https://www.theregister.com/2022/01/07/foss_fest_foreign_let...

It's dead easy.

You type compose, then 2 (or very occasionally 3) characters which, put together, make the letter you want.

Compose, a, ` gives à. Compose, A, ` gives À.

And so on. Y,=, ¥. c,/,¢

You can usually guess the combination you need.

tgflynn|2 years ago

Yeah, that might work with a default keyboard layout but it doesn't work with a polytonic Greek layout. How would you type a lowercase alpha with an acute accent and a macron that way ?