9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.61k stars 319 forks source link

acme: Issue with accented characters. #585

Closed ealvarezn closed 1 year ago

ealvarezn commented 1 year ago

I've configured my keyboard using the setxkbmap utility, as follows:

setxkbmap -layout "us (intl)" -option ctrl:nocaps -option compose:ralt

However, when I attempt to type in an accented character, either using the dead keys in the keyboard, or via the compose character, I instead get each character separately (eg, if I type ' and a to get á, I instead get 'a). Interestingly enough, however, caps lock is working as a control key.

wgrr commented 1 year ago

That's not how you insert those characters in plan9, for á type the sequence Alt, ' and a. It's not limited to letters though, Alt, : and ) yields ☺ (U+263A), more of those sequences can be found in $PLAN9/lib/keyboard. You can insert any Unicode hex values too, Alt, X followed by four hex digits. See keyboard(6)

ealvarezn commented 1 year ago

That works (though, in my system, keyboard is on section 7. Go figure). I guess I can live with yet another way to enter special characters. Kinda wish I didn't have to do such a context switch between acme and the rest of my system.