How can I type "å" on a non-Danish keyboard?
Solution 1:
I use the English international with dead keys layout, and on my system I can get å
with AltGr+Shift+0 (this combination is the dead key) and then a.
If that doesn't work for you for some reason, you can also enter the unicode code directly. First press Ctrl+Shift+u to enter unicode mode, then write the relevant code, 00e5
in this case, and finally Enter.
Another option (suggested by @vanadium in a comment) is to enable "compose key" in your keyboard settings. Then, you can use compose key+o+a to get å
. You can chose various keys as the "compose key".
Solution 2:
Based on the discussion with @terdon, I've figured out that I can use xmodmap -e "keycode 0x31 = dead_circumflex dead_abovering grave notsign U2032 U2033 bar bar"
to turn the degree symbol on the upper-leftmost key into a dead key, i.e. I can now either type that key twice for a regular degree symbol, or type it once followed by "a" to get the letter "å" I was looking for all the time :-)
The original definition for the German keyboard is dead_circumflex degree grave notsign U2032 U2033 bar bar
, so it's just changing degree
to dead_abovering
that does the trick.