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
/
xgrk.h
156 lines (144 loc) · 2.73 KB
/
xgrk.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
/*
{* 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
#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, 225, 193}, //Alpha Alpha_Capital
{ 0, 226, 194}, //Beta
{ 0, 227, 195}, //Gamma
{ 0, 228, 196}, //Delta
{ 0, 229, 197}, //Epsilon
{ 0, 230, 198}, //Zita
{ 0, 231, 199}, //Ita
{ 0, 232, 200}, //Theta
{ 0, 233, 201}, //Iota
{ 0, 234, 202}, //Kappa
{ 0, 235, 203}, //Lambda
{ 0, 236, 204}, //Mi
{ 0, 237, 205}, //Ni
{ 0, 238, 206}, //Ksi
{ 0, 239, 207}, //Omicron
{ 0, 240, 208}, //Pi
{ 0, 241, 209}, //Rho
{ 0, 242, 183}, //Sigma_teliko Ano Teleia
{ 0, 243, 211}, //Sigma
{ 0, 244, 212}, //Taf
{ 0, 245, 213}, //Ypsilon
{ 0, 246, 214}, //Phi
{ 0, 247, 215}, //Hi
{ 0, 248, 216}, //Psi
{ 0, 249, 217}, //Omega
{ 0, 59, 58}, //; :
{ 0, DUMMY1, DUMMY2},
};
/*keycode,l_case,u_case (greek accented) */
KeySym greek_accent[27][3] =
{
{ 0, 220, 182},
{ 0, 226, 194},
{ 0, 227, 195},
{ 0, 228, 196},
{ 0, 221, 184},
{ 0, 230, 198},
{ 0, 222, 185},
{ 0, 232, 200},
{ 0, 223, 186},
{ 0, 234, 202},
{ 0, 235, 203},
{ 0, 236, 204},
{ 0, 237, 205},
{ 0, 238, 206},
{ 0, 252, 188},
{ 0, 240, 208},
{ 0, 241, 209},
{ 0, 242, 211},
{ 0, 243, 211},
{ 0, 244, 212},
{ 0, 253, 190},
{ 0, 246, 214},
{ 0, 247, 215},
{ 0, 248, 216},
{ 0, 254, 191},
{ 0, 59, 58},
{ 0, DUMMY1, DUMMY2},
};
KeySym greek_diaeresis[27][3] =
{
/*keycode,l_case,u_case (greek diaeresis) */
{ 0, 225, 193},
{ 0, 226, 194},
{ 0, 227, 195},
{ 0, 228, 196},
{ 0, 229, 197},
{ 0, 230, 198},
{ 0, 231, 199},
{ 0, 232, 200},
{ 0, 250, 218},
{ 0, 234, 202},
{ 0, 235, 203},
{ 0, 236, 204},
{ 0, 237, 205},
{ 0, 238, 206},
{ 0, 239, 207},
{ 0, 240, 208},
{ 0, 241, 209},
{ 0, 242, 211},
{ 0, 243, 211},
{ 0, 244, 212},
{ 0, 251, 219},
{ 0, 246, 214},
{ 0, 247, 215},
{ 0, 248, 216},
{ 0, 249, 217},
{ 0, 59, 58},
{ 0, DUMMY1, DUMMY2},
};
KeySym greek_diaeresis_accent[27][3] =
{
/*keycode,l_case,u_case (greek diaeresis+accent) */
{ 0, 225, 193},
{ 0, 226, 194},
{ 0, 227, 195},
{ 0, 228, 196},
{ 0, 229, 197},
{ 0, 230, 198},
{ 0, 231, 199},
{ 0, 232, 200},
{ 0, 192, 218},
{ 0, 234, 202},
{ 0, 235, 203},
{ 0, 236, 204},
{ 0, 237, 205},
{ 0, 238, 206},
{ 0, 239, 207},
{ 0, 240, 208},
{ 0, 241, 209},
{ 0, 242, 211},
{ 0, 243, 211},
{ 0, 244, 212},
{ 0, 224, 219},
{ 0, 246, 214},
{ 0, 247, 215},
{ 0, 248, 216},
{ 0, 249, 217},
{ 0, 59, 58},
{ 0, DUMMY1, DUMMY2},
};