Hello everybody,
I've found and easier solution for this myself, just a bit later. I gave up hunting the "0xfe53" codes and simply reused some dead key codenames originally listed for latin alphabets - e.g. "dead_caron" to write č š ȟ etc.
0. I recommend you (as you are probably newbies like me ) to make backup copies of all files to be changed; to make an other set of copies for working on them, in order not work in the "living system". Simply copy the updated files into the respective system folders to overwrite the old ones. Here we go:
1. I looked up the existing "dead_..." codenames in
Code:
/usr/include/X11/keysymdef.h
(Attention: it's of no use to use aliases of a code name you already use, e.g.
Code:
#define XK_dead_tilde 0xfe53
#define XK_dead_perispomeni 0xfe53 /* alias for dead_tilde */
But don't worry, there are plenty, about thirty codes like "0xfe50" asigned to the "dead_..."-codenames you need to 'activate' the xkb-deadkey function).
2. I made a "list of character wishes" where I sketched the places of the dead keys I need on my keyboard, noting the disposable dead key names to the intented diacritics.
3. .XCompose (sic! with "." in the beginning!) uses those dead key names to "invoke" actual charakters. All I did was inserting lines which combined the reused dead key names with the Greek character names and, of course the very Unicode Character itself in the end, looking like this:
Code:
<dead_circumflex> <Greek_alpha> : "ἆ"
<dead_belowcircumflex> <Greek_alpha> : "ἇ"
<dead_voiced_sound> <Greek_alpha> : "ᾆ"
<dead_semivoiced_sound> <Greek_alpha> : "ᾇ"
...
Then the capital ones:
Code:
<dead_circumflex> <Greek_ALPHA> : "Ἆ"
<dead_belowcircumflex> <Greek_ALPHA> : "Ἇ"
<dead_voiced_sound> <Greek_ALPHA> : "ᾎ"
<dead_semivoiced_sound> <Greek_ALPHA> : "ᾏ"
...
then with epsilon, Epsilon and so on.
It is some "hand work" (I wrote a single file for α/A then copied it to a new one for ε/E etc.). I took the Unicode characters from the Greek table of Ubuntu's preinstalled Character table.
3. I rewrote the file
Code:
the file /usr/share/X11/xkb/symbols/gr
which assigns the death key/character names to the actual keys, as follows:
Code:
key <AC01> { [ Greek_alpha, Greek_ALPHA, a ] }; // α Α a
"AC01" is the Name of the key, the brackets contain the codenames by the simple order "simple key", "key with shift", "key with AltGr", "key with AltGr + shift"(the latter two can be left out).
A line with the reused dead key codenames looks like this:
Code:
key <AC11> { [ dead_psili, dead_dasia, dead_caron, dead_cedilla ] }; // ` ̔
"AC11" is the name of the Ü-key of the German keyboard. In this thread you will find an image that shows all names of the keys written on them The author also kindly explanes the system behind "A C 11". Quite an easy one Thank you designers
That's all
For my keyboard I chose approximately the mapping of Windows' Greek Polytonic. It is fairly comfortable now (I'm glad to have found and email partner in the meantime ). NOTE: I have attached my "Extension" the .XCompose file and my version of the ...xkb/symbols/gr file( the latter is a bit chaotic : I used both the "basic" and the "polytonic" parts. But it works as long as you only use "Greek polytonic".
I hope to help somebody with the same issue and the same zest for productive writing in Old Greek
Bye,
LatGrc
Bookmarks