OP invented the International AltGr dead keys layout and this is the story.
UK keyboard layouts suck for writing Portuguese, because they lack convenient ways to type all the diacritics. Portuguese layouts (especially on macOS) suck horrendously for programming (curly braces and square brackets are inordinately annoying to type).
These days, all my physical keyboards are US (ANSI) layouts, and I use the US International (with dead keys) layout exclusively. It's the only relatively sane option that allows me to write both code and all the natural languages I'm liable to write on any given day (read: English, Portuguese, and some random French or German loanwords here and there).
Without dead keys it is def better, but even then I cannot write in said non-english language with that, instead of using one actual layout for that language, and I do not see why not just change layout. Granted, there are some small annoyances because punctuation marks may change place, but I find that easier to learn than using altgr to write letters.
The main difference seems to be in positioning of different characters on a quick glance?
There was a replacement in "AllChars" which is still on Sourceforge: https://sourceforge.net/projects/allchars/ but hasn't been updated for a while.
Looks like:
is up-to-date, and if I wrote more, would definitely try out, but these days, either I write the accented character w/ a stylus, type out the LaTeX command, or use the on-screen keyboard via touchscreen.
evandrofisico•1h ago
Commenting on the actual text, his solution for the cedilla is awkward and is one of the first things I disable on any computer, because it is a extremely common letter in portuguese.
freehorse•1h ago
> English (of course), Danish, Dutch, Finnish, French, German, Italian, Norwegian, Portuguese, Spanish and Swedish
so basically all using some variation of the latin alphabet.