key.type = "THREE_LEVEL";
key <AD11> {[], [ dead_tilde, dead_diaeresis, dead_macron ]};
key <AD12> {[], [ dead_iota, VoidSymbol, dead_breve ]};
key <AC10> {[], [ dead_acute, dead_horn ]};
key <AC11> {[], [ dead_grave, dead_ogonek ]};
};
I assume the list of keysyms captures the shifted state of the
key i.e. <dead_acute> is on the semi-colon key and <dead_horn>
is on the same key, shifted, the colon key.
Yes, and in the case of three-level keys, the third level is
accessed by the AltGr key (right-alt, most probably). So that's
how you get the dead macron etc.
Some keys might be four-level, in which case the fourth level is
accessed by means of Shift-AltGr.
<dead_grave> is on the single-quote key and <dead_ogonek> is on
the double-quote key.
That's a pretty good layout. I like it.
Why not name these keysyms <dead_psili> and <dead_dasia>?
Because these names are not known to "the system". However, all
UTF-8 characters are known to "the system" by default, having
names beginning with U. So the designer of this layout could, and
in my opinion should, have called them U0313 (for the dead psili)
and U0314 (for the dead dasia).
Anyway, I activate the gr keymap like this:
setxkbmap "us,gr(polytonic)" -option "grp:alt_shift_toggle"
The command syntax is troublesome. There seem to be other ways
of doing it. Maybe I'm wrong, but it seems to work.
You can put the keyboard options in the X configuration file
(/etc/X11/xorg.conf, or /etc/X11/XF86Config-4).
[..] Yes, I can enter greek characters. The <dead_acute> seems to
work, but I am not sure if it is outputting a tonos or a acute.
It's probably a tonos.
It should be, because having a separate acute is not considered
correct anymore. The fonts you use should display the tonos as an
acute. But if you really want to have the separate acute (oxia),
there are ways.
None of the other dead keys seem to work.
Any ideas?
All the dead keys can be made to work. It is not magic; it is not
even difficult. I apologise for blowing my own horn, but perhaps
you really should read the bits relating to "keyboard" and "Greek"
on http://www.jw-stumpel.nl/stestu.html.
It would be nice to see the entire character map in the same
place.
To get a picture of your character map (or maps, if you have
defined multiple maps) you could try
xkbcomp -xkm $DISPLAY
xkbprint server-0_0.xkm server-0_0.eps
The resulting file, server-0_0.eps, can be viewed with gv. This
xkbprint system seems a little bit flaky, though. You may have
difficulty actually printing the map.