-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcu-kbd.mim
237 lines (224 loc) · 8.26 KB
/
cu-kbd.mim
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
;; cu-kbd.mim -- Church Slavic input method based on standard Russian keyboard
;; Copyright (C) 2014
;; Aleksandr Andreev, Daniel Dremachyov, Yuri Shardt, Nikita Simmons, et al.
;; Slavonic Computing Initiative at the Ponomar Project.
;; This file is part of the Ponomar Project. See http://www.ponomar.net/.
;; Ponomar is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 2, or (at
;; your option) any later version.
;; Ponomar is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with Ponomar; see the file LICENSE. If not, write to
;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
;;; Input method for Church Slavic with prefix modifiers, based on Russian keyboard.
;;; @image html cu-kbd.png "Keyboard Layout"
;;; @image latex cu-kbd.eps "Keyboard Layout" width=\narrowwidth
(input-method cu kbd)
(author "Ponomar Project SCI")
(description
"Church Slavic (Cyrillic) input method based on the Russian keyboard.
------------------------------------------------------------
DEAD !҂ ◌҃◌꙼ ◌̀◌҆̀ ъ◌̾ ◌҆◌̑ ѣу ◌́◌҆́ ії ѡѿ ѵѷ -_ ()
й◌ⷪ҇ ц◌ⷰ҇ ꙋᲂу кѯ еє н◌ⷩ҇ г◌ⷢ҇ ш◌ⷲ҇ щ◌ⷳ҇ зѕ х◌ⷯ [] ѽꙍ
фѳ ыᲂ в◌ⷡ҇ а◌ⷶ҇ пѱ р◌ⷬ҇ оѻ л◌ⷧ҇ д◌ⷣ ж◌ⷤ ;:
ѧꙗ ч◌ⷱ҇ с◌ⷭ҇ м◌ⷨ и◌ꙵ т◌ⷮ ь◌꙽ б◌ⷠ҇ юѫ .,
------------------------------------------------------------
AltGr / AltGr+Shift:
------------------------------------------------------------
[ZWJ][CGJ] ◌҇꙾ ꙁꙀ Ъⸯ ◌꙯◌҄ ѢУ ◌̏◌᷀ ІЇ ѠѾ ѴѶ ⹃◌︦ ꙳✠
ЙꙞ Цꙟ ꙊОу КѮ ЕЄ Н🕀 Г🕁 Ш🕂 Щ🕃 ЗЅ Х🕄 ◌︮◌︯ ѼꙌ
ФѲ Ы Вᲀ А ПѰ Р ОѺ Л Дᲁ Ж⁜ ⁖჻
ѦꙖ Ч Сᲃ М🕅 Иᲅ Тᲄ Ьꙿ Б ЮѪ /?
------------------------------------------------------------
Pressing the Dead Key converts a letter to its combining form.
Pressing Shift and the Dead Key creates palæographic variants.
Author: Ponomar Project SCI (http://www.ponomar.net/)
")
(title "cu")
(map
(map
("`" 0x25CC) ;; this is the dead key
("1" 0x0021) ("!" 0x0482)
("2" 0x0483) ("@" 0xA67C)
("3" 0x0300) ("#" 0x0486 0x0300)
("4" 0x044A) ("$" 0x033E)
("5" 0x0486) ("%" 0x0311)
("6" 0x0463) ("^" 0x0443)
("7" 0x0301) ("&" 0x0486 0x0301)
("8" 0x0456) ("*" 0x0456 0x0308)
("9" 0x0461) ("(" 0x047F)
("0" 0x0475) (")" 0x0475 0x030F)
("-" 0x002D) ("_" 0x005F)
("=" 0x0028) ("+" 0x0029)
("q" 0x0439) ("Q" 0x2DEA 0x0487)
("w" 0x0446) ("W" 0x2DF0 0x0487)
("e" 0xA64B) ("E" 0x1C82 0x0443)
("r" 0x043A) ("R" 0x046F)
("t" 0x0435) ("T" 0x0454)
("y" 0x043D) ("Y" 0x2DE9 0x0487)
("u" 0x0433) ("U" 0x2DE2 0x0487)
("i" 0x0448) ("I" 0x2DF2 0x0487)
("o" 0x0449) ("O" 0x2DF3 0x0487)
("p" 0x0437) ("P" 0x0455)
("[" 0x0445) ("{" 0x2DEF)
("]" 0x005B) ("}" 0x005D)
("\\" 0x047D) ("|" 0xA64D)
("a" 0x0444) ("A" 0x0473)
("s" 0x044B) ("S" 0x1C82)
("d" 0x0432) ("D" 0x2DE1 0x0487)
("f" 0x0430) ("F" 0x2DF6 0x0487)
("g" 0x043F) ("G" 0x0471)
("h" 0x0440) ("H" 0x2DEC 0x0487)
("j" 0x043E) ("J" 0x047B)
("k" 0x043B) ("K" 0x2DE7 0x0487)
("l" 0x0434) ("L" 0x2DE3)
(";" 0x0436) (":" 0x2DE4)
("'" 0x003B) ("\"" 0x003A)
("z" 0x0467) ("Z" 0xA657)
("x" 0x0447) ("X" 0x2DF1 0x0487)
("c" 0x0441) ("C" 0x2DED 0x0487)
("v" 0x043C) ("V" 0x2DE8)
("b" 0x0438) ("B" 0xA675)
("n" 0x0442) ("N" 0x2DEE)
("m" 0x044C) ("M" 0xA67D)
("," 0x0431) ("<" 0x2DE0 0x0487)
("." 0x044E) (">" 0x046B)
("/" 0x002E) ("?" 0x002C)
;; AltGr and AltGr+Shift levels
((A-1) 0x200D) ((A-!) 0x034F)
((A-2) 0x0487) ((A-@) 0xA67E)
((A-3) 0xA641) ((A-#) 0xA640)
((A-4) 0x042A) ((A-$) 0x2E2F)
((A-5) 0xA66F) ((A-%) 0x0484)
((A-6) 0x0462) ((A-^) 0x0423)
((A-7) 0x030F) ((A-&) 0x1DC0)
((A-8) 0x0406) ((A-*) 0x0407)
((A-9) 0x0460) ((A-\() 0x047E)
((A-0) 0x0474) ((A-\)) 0x0476)
((A--) 0x2E43) ((A-_) 0xFE26)
((A-=) 0xA673) ((A-+) 0x2720)
((A-q) 0x0419) ((A-Q) 0xA65E)
((A-w) 0x0426) ((A-W) 0xA65F)
((A-e) 0xA64A) ((A-E) 0x041E 0x0443)
((A-r) 0x041A) ((A-R) 0x046E)
((A-t) 0x0415) ((A-T) 0x0404)
((A-y) 0x041D) ((A-Y) 0x1F540)
((A-u) 0x0413) ((A-U) 0x1F541)
((A-i) 0x0428) ((A-I) 0x1F542)
((A-o) 0x0429) ((A-O) 0x1F543)
((A-p) 0x0417) ((A-P) 0x0405)
((A-[) 0x0425) ((A-{) 0x1F544)
((A-]) 0xFE2E) ((A-}) 0xFE2F)
((A-\\) 0x047C) ((A-|) 0xA64C)
((A-a) 0x0424) ((A-A) 0x0472)
((A-s) 0x042B)
((A-d) 0x0412) ((A-D) 0x1C80)
((A-f) 0x0410)
((A-g) 0x041F) ((A-G) 0x0470)
((A-h) 0x0420)
((A-j) 0x041E) ((A-J) 0x047A)
((A-k) 0x041B)
((A-l) 0x0414) ((A-L) 0x1C81)
((A-\;) 0x0416) ((A-:) 0x205C)
((A-') 0x2056) ((A-\") 0x10FB) ;;"
((A-z) 0x0466) ((A-Z) 0xA656)
((A-x) 0x0427)
((A-c) 0x0421) ((A-C) 0x1C83)
((A-v) 0x041C) ((A-V) 0x1F545)
((A-b) 0x0418) ((A-B) 0x1C85)
((A-n) 0x0422) ((A-N) 0x1C84)
((A-m) 0x042C) ((A-M) 0xA67F)
((A-,) 0x0411)
((A-.) 0x042E) ((A->) 0x046A)
((A-/) 0x002F) ((A-?) 0x003F)
;; Shift-space and Alt-space
((S-\ ) 0x00A0) ; no-break space
((A-\ ) 0x202F) ; narrow no-break space
;; implementation of the dead key. This key creates superscript letters
("`f" 0x2DF6) ((` A-f) 0x2DF6)
("`," 0x2DE0) ((` A-,) 0x2DE0)
("`d" 0x2DE1) ((` A-d) 0x2DE1)
("`u" 0x2DE2) ((` A-u) 0x2DE2)
("`l" 0x2DE3) ((` A-l) 0x2DE3)
("`t" 0x2DF7) ((` A-t) 0x2DF7)
("`T" 0xA674) ((` A-T) 0xA674)
("`~t" 0xA69F) ((` ~ A-t) 0xA69F)
("`;" 0x2DE4) ((` A-\;) 0x2DE4)
("`p" 0x2DE5) ((` A-p) 0x2DE5)
("`b" 0xA675) ((` A-b) 0xA675)
("`q" 0xA675) ((` A-q) 0xA675)
("`8" 0xA676) ((` A-8) 0xA676)
("`r" 0x2DE6) ((` A-r) 0x2DE6)
("`k" 0x2DE7) ((` A-k) 0x2DE7)
("`v" 0x2DE8) ((` A-v) 0x2DE8)
("`y" 0x2DE9) ((` A-y) 0x2DE9)
("`j" 0x2DEA) ((` A-j) 0x2DEA)
("`J" 0x2DEA) ((` A-J) 0x2DEA)
("` S" 0x2DEA)
("`9" 0xA67B) ((` A-9) 0xA67B)
("`|" 0xA67B) ((` A-|) 0xA67B)
("`g" 0x2DEB) ((` A-g) 0x2DEB)
("`h" 0x2DEC) ((` A-h) 0x2DEC)
("`c" 0x2DED) ((` A-c) 0x2DED) ((` A-C) 0x2DED)
("`n" 0x2DEE) ((` A-n) 0x2DEE)
((` A-N) 0x2DEE) ((` A-B) 0x2DEE)
("`e" 0x2DF9) ((` A-e) 0x2DF9)
("`^" 0xA677) ((` A-^) 0xA677)
("`a" 0xA69E) ((` A-a) 0xA69E)
("`[" 0x2DEF) ((` A-[) 0x2DEF)
("`w" 0x2DF0) ((` A-w) 0x2DF0)
("`x" 0x2DF1) ((` A-x) 0x2DF1)
("`i" 0x2DF2) ((` A-i) 0x2DF2)
("`o" 0x2DF3) ((` A-o) 0x2DF3)
("`4" 0xA678) ((` A-4) 0xA678)
("`s" 0xA679) ((` A-s) 0xA679)
("`m" 0xA67A) ((` A-m) 0xA67A)
("`6" 0x2DFA) ((` A-6) 0x2DFA)
("`." 0x2DFB) ((` A-.) 0x2DFB)
("`Z" 0x2DFC) ((` A-Z) 0x2DFC)
("`z" 0x2DFD) ((` A-z) 0x2DFD)
("`>" 0x2DFE) ((` A->) 0x2DFE)
("`~>" 0x2DFF) ((` ~ A->) 0x2DFF)
("`A" 0x2DF4) ((` A-A) 0x2DF4)
;; variation selection dead key
("~4" 0x1C86)
((~ A-5) 0x0305) ((~ A-%) 0x02BC)
("~6" 0x1C87)
((~ A-7) 0x030B) ((~ A-&) 0x1DC1)
("~8" 0xA647) ((~ A-8) 0xA646)
("~w" 0xA661) ((~ A-w) 0xA660)
("~e" 0x1C88)
("~r" 0x051F) ((~ A-r) 0x051E)
("~t" 0x0465) ((~ A-t) 0x0464)
("~T" 0x044D) ((~ A-T) 0x042D)
("~y" 0x04A5) ((~ A-y) 0x04A4)
("~u" 0x0491) ((~ A-u) 0x0490)
("~p" 0xA643) ((~ A-p) 0xA642)
("~P" 0xA645) ((~ A-P) 0xA644)
("~s" 0xA651) ((~ A-s) 0xA650)
("~d" 0x1C80)
("~k" 0xA665) ((~ A-k) 0xA664)
("~l" 0xA663) ((~ A-l) 0xA662)
("~;" 0xA649) ((~ A-\;) 0xA648)
("~z" 0x0469) ((~ A-z) 0x0468)
("~Z" 0xA659) ((~ A-Z) 0xA658)
("~x" 0x045F) ((~ A-x) 0x040F)
("~c" 0x1C83)
("~v" 0xA667) ((~ A-v) 0xA666)
("~n" 0x1C85) ((~ A-n) 0x1C84)
("~>" 0x046D) ((~ A->) 0x046C)
("~." 0xA655) ((~ A-.) 0xA654)
("~/" 0x00B7) ("~?" 0x2E34)
))
(state
(init
(map)))
;; Local Variables:
;; coding: utf-8
;; mode: lisp
;; End: