This repository has been archived by the owner on May 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xgrk2.h
163 lines (145 loc) · 5.54 KB
/
xgrk2.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/*
{* xgrk - Greek keyboard support for X
{*
{* (c) Spiros Ioannou 1999
{*
{*/
/*
{* keycodes in here don't matter, they are recalculated
{*
{* Nothing needs to be changed in this file
{*/
#define XK_MISCELLANY
#define XK_GREEK
#include <X11/keysymdef.h>
#define DUMMY1 XK_F30
#define DUMMY2 XK_F31
/*
#define DUMMY1 XK_VoidSymbol
#define DUMMY2 XK_VoidSymbol
*/
/*keycode,l_case,u_case (greek) */
KeySym greek_plain[27][3] =
{
{ 0, XK_Greek_alpha, XK_Greek_ALPHA}, //Alpha Alpha_Kefalaio
{ 0, XK_Greek_beta, XK_Greek_BETA}, //Beta
{ 0, XK_Greek_gamma, XK_Greek_GAMMA}, //Gamma
{ 0, XK_Greek_delta, XK_Greek_DELTA}, //Delta
{ 0, XK_Greek_epsilon, XK_Greek_EPSILON}, //Epsilon
{ 0, XK_Greek_zeta, XK_Greek_ZETA}, //Zita
{ 0, XK_Greek_eta, XK_Greek_ETA}, //Ita
{ 0, XK_Greek_theta, XK_Greek_THETA}, //Theta
{ 0, XK_Greek_iota, XK_Greek_IOTA}, //Iota
{ 0, XK_Greek_kappa, XK_Greek_KAPPA}, //Kappa
{ 0, XK_Greek_lamda, XK_Greek_LAMDA}, //Lambda
{ 0, XK_Greek_mu, XK_Greek_MU}, //Mi
{ 0, XK_Greek_nu, XK_Greek_NU}, //Ni
{ 0, XK_Greek_xi, XK_Greek_XI}, //Ksi
{ 0, XK_Greek_omicron, XK_Greek_OMICRON}, //Omicron
{ 0, XK_Greek_pi, XK_Greek_PI}, //Pi
{ 0, XK_Greek_rho, XK_Greek_RHO}, //Rho
{ 0, XK_Greek_finalsmallsigma, XK_Greek_SIGMA}, //Sigma_teliko Ano Teleia
{ 0, XK_Greek_sigma, XK_Greek_SIGMA}, //Sigma
{ 0, XK_Greek_tau, XK_Greek_TAU}, //Taf
{ 0, XK_Greek_upsilon, XK_Greek_UPSILON}, //Ypsilon
{ 0, XK_Greek_phi, XK_Greek_PHI}, //Phi
{ 0, XK_Greek_chi, XK_Greek_CHI}, //Hi
{ 0, XK_Greek_psi, XK_Greek_PSI}, //Psi
{ 0, XK_Greek_omega, XK_Greek_OMEGA}, //Omega
{ 0, 59, 58}, //; :
{ 0, DUMMY1, DUMMY2},
};
/*keycode,l_case,u_case (greek accented) */
KeySym greek_accent[27][3] =
{
{ 0, XK_Greek_alphaaccent, XK_Greek_ALPHAaccent}, //Alpha Alpha_Kefalaio
{ 0, XK_Greek_beta, XK_Greek_BETA}, //Beta
{ 0, XK_Greek_gamma, XK_Greek_GAMMA}, //Gamma
{ 0, XK_Greek_delta, XK_Greek_DELTA}, //Delta
{ 0, XK_Greek_epsilonaccent, XK_Greek_EPSILONaccent}, //Epsilon
{ 0, XK_Greek_zeta, XK_Greek_ZETA}, //Zita
{ 0, XK_Greek_etaaccent, XK_Greek_ETAaccent}, //Ita
{ 0, XK_Greek_theta, XK_Greek_THETA}, //Theta
{ 0, XK_Greek_iotaaccent, XK_Greek_IOTAaccent}, //Iota
{ 0, XK_Greek_kappa, XK_Greek_KAPPA}, //Kappa
{ 0, XK_Greek_lamda, XK_Greek_LAMDA}, //Lambda
{ 0, XK_Greek_mu, XK_Greek_MU}, //Mi
{ 0, XK_Greek_nu, XK_Greek_NU}, //Ni
{ 0, XK_Greek_xi, XK_Greek_XI}, //Ksi
{ 0, XK_Greek_omicronaccent, XK_Greek_OMICRONaccent},
{ 0, XK_Greek_pi, XK_Greek_PI}, //Pi
{ 0, XK_Greek_rho, XK_Greek_RHO}, //Rho
{ 0, XK_Greek_finalsmallsigma, XK_Greek_SIGMA}, //Sigma_teliko Ano Teleia
{ 0, XK_Greek_sigma, XK_Greek_SIGMA}, //Sigma
{ 0, XK_Greek_tau, XK_Greek_TAU}, //Taf
{ 0, XK_Greek_upsilonaccent, XK_Greek_UPSILONaccent}, //Ypsilon
{ 0, XK_Greek_phi, XK_Greek_PHI}, //Phi
{ 0, XK_Greek_chi, XK_Greek_CHI}, //Hi
{ 0, XK_Greek_psi, XK_Greek_PSI}, //Psi
{ 0, XK_Greek_omegaaccent, XK_Greek_OMEGAaccent}, //Omega
{ 0, 59, 58},
{ 0, DUMMY1, DUMMY2},
};
KeySym greek_diaeresis[27][3] =
{
/*keycode,l_case,u_case (greek diaeresis) */
{ 0, XK_Greek_alpha, XK_Greek_ALPHA}, //Alpha Alpha_Kefalaio
{ 0, XK_Greek_beta, XK_Greek_BETA}, //Beta
{ 0, XK_Greek_gamma, XK_Greek_GAMMA}, //Gamma
{ 0, XK_Greek_delta, XK_Greek_DELTA}, //Delta
{ 0, XK_Greek_epsilon, XK_Greek_EPSILON}, //Epsilon
{ 0, XK_Greek_zeta, XK_Greek_ZETA}, //Zita
{ 0, XK_Greek_eta, XK_Greek_ETA}, //Ita
{ 0, XK_Greek_theta, XK_Greek_THETA}, //Theta
{ 0, XK_Greek_iotadieresis, XK_Greek_IOTAdiaeresis}, //Iota
{ 0, XK_Greek_kappa, XK_Greek_KAPPA}, //Kappa
{ 0, XK_Greek_lamda, XK_Greek_LAMDA}, //Lambda
{ 0, XK_Greek_mu, XK_Greek_MU}, //Mi
{ 0, XK_Greek_nu, XK_Greek_NU}, //Ni
{ 0, XK_Greek_xi, XK_Greek_XI}, //Ksi
{ 0, XK_Greek_omicron, XK_Greek_OMICRON}, //Omicron
{ 0, XK_Greek_pi, XK_Greek_PI}, //Pi
{ 0, XK_Greek_rho, XK_Greek_RHO}, //Rho
{ 0, XK_Greek_finalsmallsigma, XK_Greek_SIGMA}, //Sigma_teliko Ano Teleia
{ 0, XK_Greek_sigma, XK_Greek_SIGMA}, //Sigma
{ 0, XK_Greek_tau, XK_Greek_TAU}, //Taf
{ 0, XK_Greek_upsilondieresis, XK_Greek_UPSILONdieresis}, //Ypsilon
{ 0, XK_Greek_phi, XK_Greek_PHI}, //Phi
{ 0, XK_Greek_chi, XK_Greek_CHI}, //Hi
{ 0, XK_Greek_psi, XK_Greek_PSI}, //Psi
{ 0, XK_Greek_omega, XK_Greek_OMEGA}, //Omega
{ 0, 59, 58},
{ 0, DUMMY1, DUMMY2},
};
KeySym greek_diaeresis_accent[27][3] =
{
/*keycode,l_case,u_case (greek diaeresis+accent) */
{ 0, XK_Greek_alpha, XK_Greek_ALPHA}, //Alpha Alpha_Kefalaio
{ 0, XK_Greek_beta, XK_Greek_BETA}, //Beta
{ 0, XK_Greek_gamma, XK_Greek_GAMMA}, //Gamma
{ 0, XK_Greek_delta, XK_Greek_DELTA}, //Delta
{ 0, XK_Greek_epsilon, XK_Greek_EPSILON}, //Epsilon
{ 0, XK_Greek_zeta, XK_Greek_ZETA}, //Zita
{ 0, XK_Greek_eta, XK_Greek_ETA}, //Ita
{ 0, XK_Greek_theta, XK_Greek_THETA}, //Theta
{ 0, XK_Greek_iotaaccentdieresis, XK_Greek_IOTAaccent}, //Iota
{ 0, XK_Greek_kappa, XK_Greek_KAPPA}, //Kappa
{ 0, XK_Greek_lamda, XK_Greek_LAMDA}, //Lambda
{ 0, XK_Greek_mu, XK_Greek_MU}, //Mi
{ 0, XK_Greek_nu, XK_Greek_NU}, //Ni
{ 0, XK_Greek_xi, XK_Greek_XI}, //Ksi
{ 0, XK_Greek_omicron, XK_Greek_OMICRON}, //Omicron
{ 0, XK_Greek_pi, XK_Greek_PI}, //Pi
{ 0, XK_Greek_rho, XK_Greek_RHO}, //Rho
{ 0, XK_Greek_finalsmallsigma, XK_Greek_SIGMA}, //Sigma_teliko Ano Teleia
{ 0, XK_Greek_sigma, XK_Greek_SIGMA}, //Sigma
{ 0, XK_Greek_tau, XK_Greek_TAU}, //Taf
{ 0, XK_Greek_upsilonaccentdieresis, XK_Greek_UPSILONaccent}, //Ypsilon
{ 0, XK_Greek_phi, XK_Greek_PHI}, //Phi
{ 0, XK_Greek_chi, XK_Greek_CHI}, //Hi
{ 0, XK_Greek_psi, XK_Greek_PSI}, //Psi
{ 0, XK_Greek_omega, XK_Greek_OMEGA}, //Omega
{ 0, 59, 58},
{ 0, DUMMY1, DUMMY2},
};