Earlier quoted context omitted.
I kind of gave up on non-US keyboards. The Portuguese layout sucks horribly for programming, especially on the Mac (brackets in horrible places), and the U.K. layout (where I’m based) sucks horribly for writing Portuguese in. The US international just works for all my purposes (including writing tiny amounts of other languages besides Portuguese and English)
Have you tried this one ? http://norme-azerty.fr/en/
My choice is "US International with AltGr deadkeys". The deadkey behaviour in simple "US International" is very annoying for programming: you have to double-tap every key that could be an accent, such as single quotes or backquotes.