Show HN: US-BR, a fork of US-intl for brazilian / portuguese programmers
Hi.
I've been using the US-intl keyboard layout for a while, as ABTN2 (the standard Brazilian Portuguese) layout treats ' and " as dead keys, which makes programming incredibly annoying for me.
However, US-intl makes accented letters like ã, à and â annoying to type, requiring holding Alt as you press the respective keys.
As a solution, I decided to make a small fork of US-intl that changes ~, ` and ^ to dead keys, while leaving ' and " as non-dead keys (as you can easily type á with Alt+a).
It's nothing major or substantial, but I thought I'd share it in case some other brazilian / portuguese-speaking programmer might need it.
You can find it here: https://github.com/SkyLeite/us-br
7 comments
[ 4.1 ms ] story [ 25.7 ms ] threadI've become very accustomed to using a Compose key, which doesn't have to be held down but acts as part of a sequence. For example, to type "informação" I would press
i n f o r m a Compose , c Compose ~ a o
where the ~ also involves pressing Shift.
This feels reasonably normal and natural to me, but maybe if I were typing in Portuguese more than I do, it would feel tedious. Have you tried using a Compose key? How do you think it compares with your system or with the system you were using before that?
I think ~, `, and ^ as dead keys could be a problem for people working a lot on a Unix command line, as they all have relatively common meanings to the shell (although the ` is deprecated and many people don't have a strong habit of using the ^). I guess it also depends a bit on what kinds of software environments you're working in and with, since different environments and interfaces have very different punctuation with special meanings.
As for shell usage, it hasn’t been an issue for me besides a slight annoyance when referring to my home directory with ~. You also just made me look up what the ^ symbol is used for in bash and I’m glad I did, as it’s something I’ve wished for before multiple times. Thank you!
When I'm on Windows, mapping a key to Compose is actually much easier to do, through the excellent WinCompose utility [2].
[1] https://github.com/davatorium/rofi
[2] http://wincompose.info/
English, programming, and some bits of Portuguese = US keyboard + compose key
Portuguese = US-intl (but in mine, all the keys you mentioned are dead keys. No Alt need)
I have a keyboard shortcut to switch.
Informa altgr c altgr n ao