On this page:
4.3.1 Windows
4.3.2 Linux
4.3.3 mac  OS
8.11

4.3 How to type German and Spanish characters

2023-02

Now, I am learning Español(Spanish) and Deutsch(German). There are many special characters in these two languages, like accents and umlauts. So I spent a little time to find out how to type these characters on all my computers, and below are what I’ve gotten.

4.3.1 Windows

I use Windows 11. First I setup the keyboard layout to use my right Alt key as a Alt Gr key:

Start -> Settings -> Time & Language -> Language -> Preferred Language -> Click on "English" (click "add a language" if there’s no English in the list) -> Click "Options" on the "English" item -> Click "Add a keyboard" then select United States - International.

After I’ve done that, I got an ENG-INTL input method. By switching to this input method, I can do:

4.3.2 Linux

Run setxkbmap -layout us -option compose:ralt to set the Right Alt key as the compose key, then:

4.3.3 macOS