-
Notifications
You must be signed in to change notification settings - Fork 0
/
cudef.js
172 lines (160 loc) · 4.3 KB
/
cudef.js
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
163
164
165
166
167
168
169
170
171
172
const plain = [
// row 0
['OEM_3', '', '~'],
['1', '1', '!'],
['2', '2', '"'],
['3', '3', '№'],
['4', '4', ';'],
['5', '5', '%'],
['6', '6', ':'],
['7', '7', '?'],
['8', '8', '*'],
['9', '9', '('],
['0', '0', ')'],
['OEM_MINUS', '-', '_'],
['OEM_PLUS', '=', '+'],
// row 1
['q', 'й', 'Й'],
['w', 'ц', 'Ц'],
['e', 'у', 'У'],
['r', 'к', 'К'],
['t', 'е', 'Е'],
['y', 'н', 'Н'],
['u', 'г', 'Г'],
['i', 'ш', 'Ш'],
['o', 'щ', 'Щ'],
['p', 'з', 'З'],
['OEM_4', 'х', 'Х'],
['OEM_6', 'ъ', 'Ъ'],
['OEM_5', '\\', '/'],
// row 2
['a', 'ф', 'Ф'],
['s', 'ы', 'Ы'],
['d', 'в', 'В'],
['f', 'а', 'А'],
['g', 'п', 'П'],
['h', 'р', 'Р'],
['j', 'о', 'О'],
['k', 'л', 'Л'],
['l', 'д', 'Д'],
['OEM_1', 'ж', 'Ж'],
['OEM_7', 'э', 'Э'],
// row 3
['z', 'я', 'Я'],
['x', 'ч', 'Ч'],
['c', 'с', 'С'],
['v', 'м', 'М'],
['b', 'и', 'И'],
['n', 'т', 'Т'],
['m', 'ь', 'Ь'],
['OEM_COMMA', 'б', 'Б'],
['OEM_PERIOD', 'ю', 'Ю'],
['OEM_2', '.', ','],
];
const mod = [
// row 0
['OEM_3', '\u0451', '\u0401'],
['1', '\u0482', '\u200D'],
['2', '\u0483', '\uA67E'],
['3', '\u0300', '\u0486\u0300'],
['4', '\u0487', '\uA67C'],
['5', '\u0486', '\u0311'],
['6', '\u030F', '\u1DC0'],
['7', '\u0301', '\u0486\u0301'],
['8', '\u047F', '\u047E'],
['9', '\u0461', '\u0460'],
['0', '\u1C82', '\u2DEA\u0487'],
['OEM_MINUS', '\uA64D', '\uA64C'],
['OEM_PLUS', '\uA673', '\u2720'],
// row 1
['q', '\u0456\u0308', '\u0406\u0308'],
['w', '\uA641', '\uA640'],
['e', '\uA64B', '\uA64A'],
['r', '\u046F', '\u046E'],
['t', '\u0454', '\u0404'],
['y', '\u2DE9\u0487', '\uD83D\uDD40'],
['u', '\u2DE2\u0487', '\uD83D\uDD41'],
['i', '\u2DF2\u0487', '\uD83D\uDD42'],
['o', '\u2DF3\u0487', '\uD83D\uDD43'],
['p', '\u0455', '\u0405'],
['OEM_4', '\u2DEF', '\uD83D\uDD44'],
['OEM_6', '\u033e', '\u2E2F'],
['OEM_5', '\u047D', '\u047C'],
// row 2
['a', '\u0473', '\u0472'],
['s', '\u0475', '\u0474'],
['d', '\u2DE1\u0487', '\u1C80'],
['f', '\uA657', '\uA656'],
['g', '\u0471', '\u0470'],
['h', '\u2DEC\u0487', ''],
['j', '\u047B', '\u047A'],
['k', '\u2DE7\u0487', ''],
['l', '\u2DE3', '\u1C81'],
['OEM_1', '\u2DE4', ''],
['OEM_7', '\u0463', '\u0462'],
// row 3
['z', '\u0467', '\u0466'],
['x', '\u045F', '\u040F'],
['c', '\u2DED\u0487', '\u1C83'],
['v', '\u2DE8', '\uD83D\uDD45'],
['b', '\u0456', '\u0406'],
['n', '\u1C85', '\u1C84'],
['m', '\uA67D', '\uA67F'],
['OEM_COMMA', '\u2DE0\u0487', ''],
['OEM_PERIOD', '\u046B', '\u046A'],
['OEM_2', '\uA65F', '\uA65E'],
];
const deadPlain = [
['f', '\u2DF6', '\u2DF6'],
['OEM_COMMA', '\u2DE0', '\u2DE0'],
['d', '\u2DE1', '\u2DE1'],
['u', '\u2DE2', '\u2DE2'],
['l', '\u2DE3', '\u2DE3'],
['t', '\u2DF7', '\u2DF7'],
['OEM_1', '\u2DE4', '\u2DE4'],
['p', '\u2DE5', '\u2DE5'],
['b', '\uA675', '\uA675'],
['q', '\uA675', '\uA675'],
['r', '\u2DE6', '\u2DE6'],
['k', '\u2DE7', '\u2DE7'],
['v', '\u2DE8', '\u2DE8'],
['y', '\u2DE9', '\u2DE9'],
['j', '\u2DEA', '\u2DEA'],
['g', '\u2DEB', '\u2DEB'],
['h', '\u2DEC', '\u2DEC'],
['c', '\u2DED', '\u2DED'],
['n', '\u2DEE', '\u2DEE'],
['e', '\uA677', '\uA677'],
['a', '\uA69E', '\uA69E'],
['OEM_4', '\u2DEF', '\u2DEF'],
['w', '\u2DF0', '\u2DF0'],
['x', '\u2DF1', '\u2DF1'],
['i', '\u2DF2', '\u2DF2'],
['o', '\u2DF3', '\u2DF3'],
['OEM_6', '\uA678', '\uA678'],
['s', '\uA679', '\uA679'],
['m', '\uA67A', '\uA67A'],
['OEM_PERIOD', '\u2DFB', '\u2DFB'],
];
const deadMod = [
['t', '\uA674', '\uA674'],
['b', '\uA676', '\uA676'],
['j', '\u2DEA', '\u2DEA'],
['0', '\u2DEA', '\u2DEA'],
['9', '\uA67B', '\uA67B'],
['OEM_MINUS', '\uA67B', '\uA67B'],
['n', '\u2DEE', '\u2DEE'],
['e', '\u2DF9', '\u2DF9'],
['OEM_7', '\u2DFA', '\u2DFA'],
['z', '\u2DFD', '\u2DFD'],
['f', '\u2DFC', '\u2DFC'],
['OEM_PERIOD', '\u2DFE', '\u2DFE'],
['a', '\u2DF4', '\u2DF4'],
['c', '\u2DED', '\u2DED'],
]
module.exports = {
plain,
mod,
deadPlain,
deadMod
}