While making a custom keyboard layout (see this: What are the steps needed to create new keyboard layout on ubuntu?), is there a way to make one alphanumeric key work as a modifier for another one? Neither shift nor alt, but an alphanumeric key.
For example, key {[a, A, aelig, AElig]};
('E' works as a modifier for 'A' instead of Alt Gr) and key {[e, E, aelig, AElig]};
('A' works as a modifier for 'E' instead of Alt Gr). In both cases, pressing A+E (or E+A) gives æ, and pressing Shift+A+E (or Shift+E+A) gives Æ. Of course, single 'A' and 'E' must also work. Is it possible? How many pairs can I make? Will it also cause a side-effect of typing single 'A' and 'E' on key release instead of on key press?