Q: how do I switch between input methods for different languages when using a non-standard keyboard layout?
I have to edit text in two different languages. I would like to be able to use my keybindings across the two languages, except, of course, when inserting text into the buffer. It looks like I should be able to
C-\) and select the alternate language.
So far, almost so good.
Here's the rub: I use the English Dvorak layout, which I set at the OS level (ie, with
setxkbmap). When I
toggle-input-method, the text I insert would be correct if I had a QWERTY layout (the standard in the US), but comes out as gibberish because I'm on Dvorak. (FWIW, when I switch my layout to standard US, it works fine.)
So: how do I inform Emacs that I'm using Dvorak so that
toggle-input-method and friends translate my keypresses to the correct characters in the other language?