Setting Romanian diacritics using AltGr on El Capitan I'm a Linux user, using Ubuntu for few years. Recently I bought a Macbook and I'm trying to understand how to set up my Romanian language layout.

My mac has a Romanian keyboard, but since I am a programmer I want to use all the characters (including [, ], {etc). Currently if I set up the keyboard layout to be Romanian on my macbook, if I press [ I get ă, which is expected, but it's not something I'm used to.

I would like to use AltGr + a to get the Romanian diacritic letter that looks like a, but is ă and when pressing [ to get [.

In fact, I need the following combinations:


AltGr + a => ă
AltGr + q => â
AltGr + i => î
AltGr + s => ș
AltGr + t => ț
AltGr + Shift + a => Ă
AltGr + Shift + - => long dash


How to set up this?

On Ubuntu this was activated as default thing. I read a little bit how to do it on OS X and found that Ukelele could help. Isn't there a more native way (e.g. just importing a preset keyboard layout)?
Bit of a shameless plug: https://github.com/SaltwaterC/romanian-programmers-mac

I've created this keyboard layout as none I could find were actually following the standard for Romanian Pro. I may jump across platforms during a normal day, therefore the layout was an important thing for my use case. Works without changes since 10.8. Now I'm on 10.11.

Bear in mind there's no AltGr on Apple's keyboard. Both Alt/Option keys produce the same keycode. Using the right Option key on Apple's hardware is a matter of convention rather than a necessity.