apl revision 21fe479e
1// EXTRAS:
2//
3// APL Keyboard Layouts
4
5// This file supports:
6// -	The Sharp APL for Unix (SAX) layout
7// -	The IBM APL2 layout
8// -	The Manugistics APL*PLUS II (Version 5.1, 1993) keyboard layout
9// -	The Dyalog APL layout - with additions for box drawing and commands
10
11// Unicode APL table: http://aplwiki.com/UnicodeAplTable
12// ...and another: http://publibfp.boulder.ibm.com/epubs/pdf/h2110611.pdf (appendix A)
13// Generic Unicode stuff: http://www.fileformat.info/info/unicode/category/index.htm
14
15// Tim Nelson (this file's creator) says:
16
17// This file doesn't deal with all the combining stuff -- I'm not an APL programmer,
18// and am not quite sure what's needed here.  However, it may be possible to get this
19// working with dead keys and the like.  Patches gratefully accepted.  
20
21// Some of the shift-key assignments may differ from the APL tradition.  If
22// that's not considered acceptable, it should be possible to remap the 
23// shift keys.  I have striven, however, to ensure that the use of shift keys
24// in these maps is at least self-consistent.  
25
26// I'm assuming that this will be used with another keyboard layout (ie. for 
27// your language), with a special shift key to use these maps.  
28
29// 2012-09-26 changed "overbar" to macron which fixed some strangeness in xterm
30
31// 2011-12-22 Geoff Streeter: geoff@dyalog.com
32// Added the Dyalog support.
33// Corrected (what he thinks) are some errors.
34// 	Resolving the confusion between APL's and Unicode's concept of Left and Right tacks.
35// 	Unsure about some of the inheritance from APL2 into APLPLUS. Patches welcome.
36// Complied with freedesktop.org requirement that the keycodes be in sorted order. Which
37// leads to the bottom to top (roughly) definitions.
38
39// default layout seems to have to be the first one. Choosing the basic Dyalog layout is definitely
40// better than using the "common" one. Choosing the complete Dyalog layout is not useful to non-Dyalog
41// users.
42
43default partial alphanumeric_keys
44xkb_symbols "basic" {
45	include "apl(dyalog_base)"	// forward reference good APL keyboard without Dyalogs extras
46};
47
48// ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┲━━━━━━━━━┓
49// │     │     │     │     │     │     │     │     │     │     │     │     │     ┃         ┃
50// │     │ ¨   │ ¯   │ <   │ ≤   │ =   │ ≥   │ >   │ ≠   │ ∨   │ ∧   │     │     ┃         ┃
51// ┢━━━━━┷━┱───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┺━┳━━━━━━━┫
52// ┃       ┃     │     │     │     │     │     │     │     │     │     │     │     ┃       ┃
53// ┃       ┃ ?   │ ⍵   │ ∊   │ ⍴   │ ~   │ ↑   │ ↓   │ ⍳   │ ○   │ *   │ ←   │     ┃       ┃
54// ┣━━━━━━━┻┱────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┺┓      ┃
55// ┃        ┃     │     │     │     │     │     │     │     │     │     │     │     ┃      ┃
56// ┃        ┃ ⍺   │ ⌈   │ ⌊   │ _   │ ∇   │ ∆   │ ∘   │ '   │ ⎕   │     │     │     ┃      ┃
57// ┣━━━━━━━┳┹────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┲┷━━━━━┻━━━━━━┫
58// ┃       ┃     │     │     │     │     │     │     │     │     │     │     ┃             ┃
59// ┃       ┃     │ ⊂   │ ⊃   │ ∩   │ ∪   │ ⊥   │ ⊤   │ |   │     │     │     ┃             ┃
60// ┣━━━━━━━╋━━━━━┷━┳━━━┷━━━┱─┴─────┴─────┴─────┴─────┴─────┴───┲━┷━━━━━╈━━━━━┻━┳━━━━━━━┳━━━┛
61// ┃       ┃       ┃       ┃                                   ┃       ┃       ┃       ┃
62// ┃       ┃       ┃       ┃                                   ┃       ┃       ┃       ┃
63// ┗━━━━━━━┻━━━━━━━┻━━━━━━━┹───────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┛
64
65hidden partial alphanumeric_keys
66xkb_symbols "common" {
67	name[Group1]= "APL keyboard symbols";
68
69	key <AB01> { [	U2282		] }; // Z: ⊂ -- Subset Of
70	key <AB02> { [	U2283		] }; // X: ⊃ -- Superset Of
71	key <AB03> { [	U2229		] }; // C: ∩ -- Intersection
72	key <AB04> { [	U222A		] }; // V: ∪ -- Union
73	key <AB05> { [	U22A5		] }; // B: ⊥ -- Up Tack
74	key <AB06> { [	U22A4		] }; // N: ⊤ -- Down Tack
75	key <AB07> { [	U007C		] }; // M: | -- Vertical Line
76
77	key <AC01> { [	U237A		] }; // A: ⍺ -- APL Functional Symbol Alpha
78	key <AC02> { [	U2308		] }; // S: ⌈ -- Left Ceiling
79	key <AC03> { [	U230A		] }; // D: ⌊ -- Left Floor
80	key <AC04> { [	underscore	] }; // F:
81	key <AC05> { [	U2207		] }; // G: ∇ -- Nabla
82	key <AC06> { [	U2206		] }; // H: ∆ -- Increment
83	key <AC07> { [	U2218		] }; // J: ∘ -- Ring Operator
84	key <AC08> { [	apostrophe 	] }; // K:
85	key <AC09> { [	U2395		] }; // L: ⎕ -- APL Functional Symbol Quad
86
87	key <AD01> { [	question	] }; // Q:
88	key <AD02> { [	U2375		] }; // W: ⍵ -- APL Functional Symbol Omega
89	key <AD03> { [	U220A		] }; // E: ∊ -- Small Element Of
90	key <AD04> { [	U2374		] }; // R: ⍴ -- APL Functional Symbol Rho
91	key <AD05> { [	asciitilde	] }; // T:
92	key <AD06> { [	U2191		] }; // Y: ↑ -- Upwards Arrow
93	key <AD07> { [	U2193		] }; // U: ↓ -- Downwards Arrow
94	key <AD08> { [	U2373		] }; // I: ⍳ -- APL Functional Symbol Iota
95	key <AD09> { [	U25CB		] }; // O: ○ -- White Circle
96	key <AD10> { [	asterisk	] }; // P: * -- asterisk
97	key <AD11> { [	U2190		] }; // [: ← -- Leftwards Arrow
98
99	key <AE01> { [	diaeresis	] };
100	key <AE02> { [	macron		] }; // ¯ -- Macron
101	key <AE03> { [	less		] };
102	key <AE04> { [	U2264		] }; // ≤ -- Less-than Or Equal To
103	key <AE05> { [	equal		] };
104	key <AE06> { [	U2265		] }; // ≥ -- Greater-than Or Equal To
105	key <AE07> { [	greater		] };
106	key <AE08> { [	U2260		] }; // ≠ -- Not Equal To
107	key <AE09> { [	U2228		] }; // ∨ -- Logical Or
108	key <AE10> { [	U2227		] }; // ∧ -- Logical And
109};
110
111// Keys common to a number of keyboards that allow normal language usage alongside APL
112
113// ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┲━━━━━━━━━┓
114// │     │     │     │     │     │     │     │     │     │ ⍱   │ ⍲   │     │  ⌹  ┃         ┃
115// │ ⋄   │ ¨   │ ¯   │ <   │ ≤   │ =   │ ≥   │ >   │ ≠   │ ∨   │ ∧   │  ×  │  ÷  ┃         ┃
116// ┢━━━━━┷━┱───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┺━┳━━━━━━━┫
117// ┃       ┃     │     │     │     │     │     │     │     │     │     │     │     ┃       ┃
118// ┃       ┃ ?   │ ⍵   │ ∊   │ ⍴   │ ~   │ ↑   │ ↓   │ ⍳   │ ○   │ *   │ ←   │  →  ┃       ┃
119// ┣━━━━━━━┻┱────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┺┓      ┃
120// ┃        ┃     │     │     │     │     │     │     │     │     │     │     │     ┃      ┃
121// ┃        ┃ ⍺   │ ⌈   │ ⌊   │ _   │ ∇   │ ∆   │ ∘   │ '   │ ⎕   │     │     │     ┃      ┃
122// ┣━━━━━━━┳┹────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┲┷━━━━━┻━━━━━━┫
123// ┃       ┃     │     │     │     │     │     │     │     │     │     │     ┃             ┃
124// ┃       ┃     │ ⊂   │ ⊃   │ ∩   │ ∪   │ ⊥   │ ⊤   │ |   │     │     │     ┃             ┃
125// ┣━━━━━━━╋━━━━━┷━┳━━━┷━━━┱─┴─────┴─────┴─────┴─────┴─────┴───┲━┷━━━━━╈━━━━━┻━┳━━━━━━━┳━━━┛
126// ┃       ┃       ┃       ┃                                   ┃       ┃       ┃       ┃
127// ┃       ┃       ┃       ┃                                   ┃       ┃       ┃       ┃
128// ┗━━━━━━━┻━━━━━━━┻━━━━━━━┹───────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┛
129
130partial alphanumeric_keys
131xkb_symbols "unified" {
132	name[Group1]= "APL keyboard symbols (unified)";
133
134	include "apl(common)"
135
136	key <AD12> { [ U2192			] }; // ]: → -- Rightwards Arrow
137	key <AE09> { [ NoSymbol,	U2371	] }; // 9: ⍱ -- APL Functional Symbol Down Caret Tilde
138	key <AE10> { [ NoSymbol,	U2372	] }; // 0: ⍲ -- APL Functional Symbol Up Caret Tilde
139	key <AE11> { [ U00D7			] }; // -: × -- Multiplication Sign
140	key <AE12> { [ U00F7,		U2339	] }; // =: ÷ ⌹ -- Division Sign / APL Functional Symbol Quad Divide
141	key <TLDE> { [ U22C4			] }; // `: ⋄ -- Diamond Operator
142};
143
144// Layout: http://www.wickensonline.co.uk/apl-unicomp.html
145
146// ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┲━━━━━━━━━┓
147// │     │ ¡   │     │     │ ¢   │     │     │     │ ⍂   │ ⍱   │ ⍲   │  ≡  │  ⌹  ┃         ┃
148// │ ⋄   │ ¨   │ ¯   │ <   │ ≤   │ =   │ ≥   │ >   │ ≠   │ ∨   │ ∧   │  ×  │  ÷  ┃         ┃
149// ┢━━━━━┷━┱───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┺━┳━━━━━━━┫
150// ┃       ┃ ¿   │ ⌽   │ ⍷   │     │ ⍉   │     │     │ ⍸   │ ⍥   │ ⍣   │     │     ┃       ┃
151// ┃       ┃ ?   │ ⍵   │ ∊   │ ⍴   │ ~   │ ↑   │ ↓   │ ⍳   │ ○   │ *   │ ←   │  →  ┃       ┃
152// ┣━━━━━━━┻┱────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┺┓      ┃
153// ┃        ┃ ⊖   │     │     │ ⍫   │ ⍒   │ ⍋   │ ⍤   │ ⌻   │ ⍞   │     │     │  ⍀  ┃      ┃
154// ┃        ┃ ⍺   │ ⌈   │ ⌊   │ _   │ ∇   │ ∆   │ ∘   │ '   │ ⎕   │  ⊢  │  ⊣  │  ⍝  ┃      ┃
155// ┣━━━━━━━┳┹────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┲┷━━━━━┻━━━━━━┫
156// ┃       ┃     │     │     │ ⍝   │     │  ⍎  │  ⍕  │ ⌶   │  ⍪  │  ⍙  │  ⌿  ┃             ┃
157// ┃       ┃     │ ⊂   │ ⊃   │ ∩   │ ∪   │ ⊥   │ ⊤   │ |   │  ⍞  │  ⍎  │  ⍕  ┃             ┃
158// ┣━━━━━━━╋━━━━━┷━┳━━━┷━━━┱─┴─────┴─────┴─────┴─────┴─────┴───┲━┷━━━━━╈━━━━━┻━┳━━━━━━━┳━━━┛
159// ┃       ┃       ┃       ┃                                   ┃       ┃       ┃       ┃
160// ┃       ┃       ┃       ┃                                   ┃       ┃       ┃       ┃
161// ┗━━━━━━━┻━━━━━━━┻━━━━━━━┹───────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┛
162
163partial alphanumeric_keys
164xkb_symbols "sax" {
165	name[Group1]= "APL keyboard symbols (sax)";
166
167	include "apl(unified)"
168
169	key <AB03> { [	NoSymbol,	U235D	] }; // C: ⍝ -- APL Functional Symbol Up Shoe Jot
170	key <AB05> { [	NoSymbol,	U234E	] }; // B: ⍎ -- APL Functional Symbol Down Tack Jot (Unicode got the name wrong; it should have been "Up Tack")
171	key <AB06> { [	NoSymbol,	U2355	] }; // N: ⍕ -- APL Functional Symbol Up Tack Jot (Unicode got the name wrong; it should have been "Down Tack")
172	key <AB07> { [	NoSymbol,	U2336	] }; // M: ⌶ -- APL Functional Symbol I-Beam
173	key <AB08> { [	U235E,		U236A	] }; // ,: ⍞ ⍪ -- APL Functional Symbol Quote Quad / APL Functional Symbol Comma Bar
174	key <AB09> { [	U234E,		U2359	] }; // .: ⍎ ⍙ -- [See B key] / APL Functional Symbol Delta Underbar
175	key <AB10> { [	U2355,		U233F	] }; // /: ⍕ ⌿ -- [See N key] / APL Functional Symbol Slash Bar
176
177	key <AC01> { [	NoSymbol,	U2296	] }; // A: ⊖ -- Circled Minus
178	key <AC04> { [	NoSymbol,	U236B	] }; // F: ⍫ -- APL Functional Symbol Del Tilde
179	key <AC05> { [	NoSymbol,	U2352	] }; // G: ∇ ⍒ -- APL Functional Symbol Del Stile
180	key <AC06> { [	NoSymbol,	U234B	] }; // H: ∆ ⍋ -- APL Functional Symbol Delta Stile
181	key <AC07> { [	NoSymbol,	U2364	] }; // J: ⍤ -- APL Functional Symbol Jot Diaeresis
182	key <AC08> { [	NoSymbol,	U233B	] }; // K: ⌻
183	key <AC09> { [	NoSymbol,	U235E	] }; // L: ⍞ -- APL Functional Symbol Quote Quad
184	key <AC10> { [	U22A2			] }; // ;: ⊢ -- Right Tack
185	key <AC11> { [	U22A3			] }; // ': ⊣ -- Left Tack
186
187	key <AD01> { [	NoSymbol,	U00BF	] }; // Q: ¿ -- Inverted Question Mark
188	key <AD02> { [	NoSymbol,	U233D	] }; // W: ⌽ -- APL Functional Symbol Circle Stile
189	key <AD03> { [	NoSymbol,	U2377	] }; // E: ⍷ -- APL Functional Symbol Epsilon Underbar
190	key <AD05> { [	NoSymbol,	U2349	] }; // T: ⍉ -- APL Functional Symbol Circle Backslash
191	key <AD08> { [	NoSymbol,	U2378	] }; // I: ⍸ -- APL Functional Symbol Iota Underbar
192	key <AD09> { [	NoSymbol,	U2365	] }; // O: ⍥ -- APL Functional Symbol Circle Diaeresis
193	key <AD10> { [	NoSymbol,	U235F	] }; // P: ⍟ -- APL Functional Symbol Circle Star
194	key <AE01> { [	NoSymbol,	U00A1	] }; // 1: ¡ -- Inverted Exclamation Mark
195	key <AE04> { [	NoSymbol,	cent	] }; // 4:
196	key <AE08> { [	NoSymbol,	U2342	] }; // 8: ⍂ -- APL Functional Symbol Quad Backslash
197	key <AE11> { [	NoSymbol,	U2261	] }; // -: ≡ -- Identical To
198
199	key <BKSL> { [	U235D,		U2340	] }; // \: ⍝ ⍀ -- APL Functional Symbol Up Shoe Jot / APL Functional Symbol Backslash Bar
200};
201
202// Layout: http://www.wickensonline.co.uk/apl-unicomp.html
203
204// ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┲━━━━━━━━━┓
205// │  ⍂  │ ⌶   │ ⍫   │ ⍒   │ ⍋   │ ⌽   │ ⍉   │ ⊖   │ ⍟   │ ⍱   │ ⍲   │  !  │  ⌹  ┃         ┃
206// │  ⌻  │     │     │     │     │     │     │     │     │     │     │  -  │  ÷  ┃         ┃
207// │     │ ¨   │ ¯   │ <   │ ≤   │ =   │ ≥   │ >   │ ≠   │ ∨   │ ∧   │  +  │  ×  ┃         ┃
208// ┢━━━━━┷━┱───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┺━┳━━━━━━━┫
209// ┃       ┃     │     │     │     │     │     │     │     │     │     │ ⍞   │  ⍙  ┃       ┃
210// ┃       ┃     │     │     │     │     │     │     │     │     │     │ →   │  ⍸  ┃       ┃
211// ┃       ┃ ?   │ ⍵   │ ∊   │ ⍴   │ ~   │ ↑   │ ↓   │ ⍳   │ ○   │ *   │ ←   │  ⌷  ┃       ┃
212// ┣━━━━━━━┻┱────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┺┓      ┃
213// ┃        ┃     │     │     │     │     │     │     │     │     │  ⍎  │  ⍕  │  ⍤  ┃      ┃
214// ┃        ┃     │     │     │     │     │     │     │     │     │  (  │  )  │  ⍷  ┃      ┃
215// ┃        ┃ ⍺   │ ⌈   │ ⌊   │ _   │ ∇   │ ∆   │ ∘   │ '   │ ⎕   │  [  │  ]  │  ≡  ┃      ┃
216// ┣━━━━━━━┳┹────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┲┷━━━━━┻━━━━━━┫
217// ┃       ┃     │     │     │     │     │     │     │     │  ⍝  │  ⍀  │  ⌿  ┃             ┃
218// ┃       ┃     │     │     │     │     │     │     │     │  ;  │  :  │  \  ┃             ┃
219// ┃       ┃     │ ⊂   │ ⊃   │ ∩   │ ∪   │ ⊥   │ ⊤   │ |   │  ,  │  .  │  /  ┃             ┃
220// ┣━━━━━━━╋━━━━━┷━┳━━━┷━━━┱─┴─────┴─────┴─────┴─────┴─────┴───┲━┷━━━━━╈━━━━━┻━┳━━━━━━━┳━━━┛
221// ┃       ┃       ┃       ┃                                   ┃       ┃       ┃       ┃
222// ┃       ┃       ┃       ┃                                   ┃       ┃       ┃       ┃
223// ┗━━━━━━━┻━━━━━━━┻━━━━━━━┹───────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┛
224
225partial alphanumeric_keys
226xkb_symbols "apl2" {
227	name[Group1]= "APL keyboard symbols (IBM APL2)";
228
229	include "apl(common)"
230
231	// The first column is NoSymbol because it inherits.  The second is NoSymbol because those keys don't do anything
232	// AFS - short for APL Functional Symbol
233
234	key <AB08> { [	comma,		semicolon,	U235D	] }; // ,: ⍝ -- AFS Up Shoe Jot
235	key <AB09> { [	period,		colon,		U2340	] }; // .: ⍀ -- AFS Backslash Bar
236	key <AB10> { [	slash,		backslash,	U233F	] }; // /: ⌿ -- AFS Slash Bar
237
238	key <AC10> { [	bracketleft, 	parenleft,	U234E	] }; // ;: ⍎ -- [See B key in SAX layout]
239	key <AC11> { [	bracketright, 	parenright, 	U2355	] }; // ': ⍕ -- [See N key in SAX layout] 
240
241	key <AD11> { [	NoSymbol,	U2192,		U235E	] }; // [: (←) → ⍞ -- Rightwards Arrow / AFS Quote Quad
242	key <AD12> { [	U2337,		U2378,		U2359	] }; // ]: ⌷ ⍸ ⍙ -- AFS Squish Quad / AFS Iota Underbar / AFS Delta Underbar
243
244	key <AE01> { [	NoSymbol, 	NoSymbol,	U2336	] }; // 1: ⌶ -- AFS I-Beam
245	key <AE02> { [	NoSymbol, 	NoSymbol,	U236B	] }; // 2: ⍫ -- AFS Del Tilde
246	key <AE03> { [	NoSymbol, 	NoSymbol,	U2353	] }; // 3: ⍒ -- AFS Del Stile
247	key <AE04> { [	NoSymbol, 	NoSymbol,	U234B	] }; // 4: ⍋ -- AFS Delta Stile
248	key <AE05> { [	NoSymbol, 	NoSymbol,	U233D	] }; // 5: ⌽ -- AFS Circle Stile
249	key <AE06> { [	NoSymbol, 	NoSymbol,	U2349	] }; // 6: ⍉ -- AFS Circle Backslash
250	key <AE07> { [	NoSymbol, 	NoSymbol,	U2296	] }; // 7: ⊖ -- Circled Minus
251	key <AE08> { [	NoSymbol, 	NoSymbol,	U235F	] }; // 8: ⍟ -- AFS Circle Star
252	key <AE09> { [	NoSymbol, 	NoSymbol,	U2371	] }; // 9: ⍱ -- AFS Down Caret Tilde
253	key <AE10> { [	NoSymbol, 	NoSymbol,	U2372	] }; // 0: ⍲ -- AFS Up Caret Tilde
254	key <AE11> { [	plus,		minus,		exclam	] }; // -:
255	key <AE12> { [	U00D7,		U00F7,		U2339	] }; // =: × ÷ ⌹ -- Multiplication Sign / Division Sign / AFS Quad Divide
256
257	key <BKSL> { [	U2261,		U2377,		U2364	] }; // \: ≡ ⍷ ⍤ -- Identical To / AFS Epsilon Underbar / AFS Jot Diaeresis
258
259	key <TLDE> { [	NoSymbol,	U233B,		U2342	] }; // `: ⌻ ⍂ -- 
260
261	include "level3(ralt_switch)"
262};
263
264// ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┲━━━━━━━━━┓
265// │  ⍪  │ ≡   │ ⍫   │ ⍒   │ ⍋   │ ⌽   │ ⍉   │ ⊖   │ ⍟   │ ⍱   │ ⍲   │  !  │  ⌹  ┃         ┃
266// │  ⋄  │     │     │     │     │     │     │     │     │     │     │  -  │  ÷  ┃         ┃
267// │  $  │ ¨   │ ¯   │ <   │ ≤   │ =   │ ≥   │ >   │ ≠   │ ∨   │ ∧   │  +  │  ×  ┃         ┃
268// ┢━━━━━┷━┱───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┺━┳━━━━━━━┫
269// ┃       ┃     │     │     │     │     │     │     │     │     │     │ ⍞   │  ⍬  ┃       ┃
270// ┃       ┃     │     │     │     │     │     │     │     │     │     │ →   │  ⍸  ┃       ┃
271// ┃       ┃ ?   │ ⍵   │ ∊   │ ⍴   │ ~   │ ↑   │ ↓   │ ⍳   │ ○   │ *   │ ←   │  →  ┃       ┃
272// ┣━━━━━━━┻┱────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┺┓      ┃
273// ┃        ┃     │     │     │     │     │     │     │     │     │  ⍎  │  ⍕  │  ⍙  ┃      ┃
274// ┃        ┃     │     │     │     │     │     │     │     │     │  (  │  )  │  ⊣  ┃      ┃
275// ┃        ┃ ⍺   │ ⌈   │ ⌊   │ _   │ ∇   │ ∆   │ ∘   │ '   │ ⎕   │  [  │  ]  │  ⊢  ┃      ┃
276// ┣━━━━━━━┳┹────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┲┷━━━━━┻━━━━━━┫
277// ┃       ┃     │     │     │     │     │     │     │     │  ⍝  │  ⍀  │  ⌿  ┃             ┃
278// ┃       ┃     │     │     │     │     │     │     │     │  ;  │  :  │  \  ┃             ┃
279// ┃       ┃     │ ⊂   │ ⊃   │ ∩   │ ∪   │ ⊥   │ ⊤   │ |   │  ,  │  .  │  /  ┃             ┃
280// ┣━━━━━━━╋━━━━━┷━┳━━━┷━━━┱─┴─────┴─────┴─────┴─────┴─────┴───┲━┷━━━━━╈━━━━━┻━┳━━━━━━━┳━━━┛
281// ┃       ┃       ┃       ┃                                   ┃       ┃       ┃       ┃
282// ┃       ┃       ┃       ┃                                   ┃       ┃       ┃       ┃
283// ┗━━━━━━━┻━━━━━━━┻━━━━━━━┹───────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┛
284
285partial alphanumeric_keys
286xkb_symbols "aplplusII" {
287	name[Group1]= "APL keyboard symbols (Manugistics APL*PLUS II)";
288	// AFS - short for APL Functional Symbol
289
290	include "apl(apl2)"
291
292	key <AC10> { [	bracketleft,	parenleft,	U234E	] }; // ;: ⍎ -- [See B key in SAX layout]
293	key <AC11> { [	bracketright,	parenright,	U2355	] }; // ': ⍕ -- [See N key in SAX layout] 
294	key <AD11> { [	U2190,		NoSymbol,	U235E	] }; // [: ← ⍞ -- Leftwards Arrow / AFS Quote Quad
295	key <AD12> { [	U2192,		NoSymbol,	U236C	] }; // ]: → ⍬ -- Rightwards Arrow / AFS Zilde
296	key <AE01> { [	NoSymbol, 	NoSymbol, 	U2261	] }; // 1: ≡ -- Identical To
297	key <BKSL> { [	U22A2,		U22A3,		U2359	] }; // \: ⊢ ⊣ ⍙ -- Left Tack / Right Tack / AFS Delta Underbar
298	key <TLDE> { [	dollar,		U22C4,		U236A	] }; // `: ⋄ ⍪ -- Diamond Operator / AFS Comma Bar
299};
300
301
302// MicroAPL layout: http://aplwiki.com/APLXKeyboardLayouts
303// I didn't do the old-style MicroAPL layout; patches gratefully accepted
304
305// ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┲━━━━━━━━━┓
306// │ ⍞   │ ⌶   │ ⍫   │ ⍒   │ ⍋   │ ⌽   │ ⍉   │ ⊖   │ ⍟   │ ⍱   │ ⍲   │  !  │  ⌹  ┃         ┃
307// │ ⋄   │ ¨   │ ¯   │ <   │ ≤   │ =   │ ≥   │ >   │ ≠   │ ∨   │ ∧   │  ×  │  ÷  ┃         ┃
308// ┢━━━━━┷━┱───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┺━┳━━━━━━━┫
309// ┃       ┃     │     │     │     │     │     │     │     │     │     │ ⍇   │  ⍈  ┃       ┃
310// ┃       ┃ ?   │ ⍵   │ ∊   │ ⍴   │ ~   │ ↑   │ ↓   │ ⍳   │ ○   │ *   │ ←   │  →  ┃       ┃
311// ┣━━━━━━━┻┱────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┺┓      ┃
312// ┃        ┃     │     │     │     │     │     │     │     │     │  ≡  │  ≢  │  ⊣  ┃      ┃
313// ┃        ┃ ⍺   │ ⌈   │ ⌊   │ _   │ ∇   │ ∆   │ ∘   │ '   │ ⎕   │  ⍎  │  ⍕  │  ⊢  ┃      ┃
314// ┣━━━━━━━┳┹────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┲┷━━━━━┻━━━━━━┫
315// ┃       ┃     │     │     │     │     │     │     │     │  ⍪  │  ⍤  │     ┃             ┃
316// ┃       ┃     │ ⊂   │ ⊃   │ ∩   │ ∪   │ ⊥   │ ⊤   │ |   │  ⍝  │  ⍀  │  ⌿  ┃             ┃
317// ┣━━━━━━━╋━━━━━┷━┳━━━┷━━━┱─┴─────┴─────┴─────┴─────┴─────┴───┲━┷━━━━━╈━━━━━┻━┳━━━━━━━┳━━━┛
318// ┃       ┃       ┃       ┃                                   ┃       ┃       ┃       ┃
319// ┃       ┃       ┃       ┃                                   ┃       ┃       ┃       ┃
320// ┗━━━━━━━┻━━━━━━━┻━━━━━━━┹───────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┛
321
322partial alphanumeric_keys
323xkb_symbols "aplx" {
324	name[Group1]= "APL keyboard symbols (APLX unified)";
325
326	include "apl(unified)"
327
328	key <AB08> { [	U235D,		U236A	] }; // ,: ⍝ ⍪ -- APL Functional Symbol Up Shoe Jot / APL Functional Symbol Comma Bar
329	key <AB09> { [	U2340,		U2364	] }; // .: ⍀ ⍤ -- APL Functional Symbol Backslash Bar / APL Functional Symbol Jot Diaeresis
330	key <AB10> { [	U233F 			] }; // /: ⌿ -- APL Functional Symbol Slash Bar
331
332	key <AC10> { [	U234E,		U2261	] }; // ;: ⍎ ≡ -- [See B key in SAX layout] / Identical To
333	key <AC11> { [	U2355,		U2262	] }; // ': ⍕ ≢ -- [See N key in SAX layout] / Not Identical To
334
335	key <AD11> { [	NoSymbol,	U2347	] }; // [: ⍇ -- Box With Left Arrow
336	key <AD12> { [	NoSymbol,	U2348	] }; // ]: ⍈ -- Box With Right Arrow
337
338	key <AE01> { [	NoSymbol,	U2336	] }; // 1: ⌶ -- APL Functional Symbol I-Beam
339	key <AE02> { [	NoSymbol,	U236B	] }; // 2: ⍫ -- APL Functional Symbol Del Tilde
340	key <AE03> { [	NoSymbol,	U2353	] }; // 3: ⍒ -- APL Functional Symbol Del Stile
341	key <AE04> { [	NoSymbol,	U234B	] }; // 4: ⍋ -- APL Functional Symbol Delta Stile
342	key <AE05> { [	NoSymbol,	U233D	] }; // 5: ⌽ -- APL Functional Symbol Circle Stile
343	key <AE06> { [	NoSymbol,	U2349	] }; // 6: ⍉ -- APL Functional Symbol Circle Backslash
344	key <AE07> { [	NoSymbol,	U2296	] }; // 7: ⊖ -- Circled Minus
345	key <AE08> { [	NoSymbol,	U235F	] }; // 8: ⍟ -- APL Functional Symbol Circle Star
346	key <AE11> { [	NoSymbol,	exclam 	] }; // -:
347
348	key <BKSL> { [	U22A2,		U22A3	] }; // \: ⊢ ⊣ -- Right Tack / Left Tack
349
350	key <TLDE> { [	NoSymbol,	U235E	] }; // `: ⍞ -- APL Functional Symbol Quote Quad
351};
352
353// APL language support for the Dyalog keyboard.
354// Dyalog Ltd sell this keyboard with APL engravings. The current model is 
355// engraved on a Cherry G80. Base languages for US, UK and DK are availible.
356
357// Geoff Streeter, Dyalog Ltd. 2007-09-03
358// geoff@dyalog.com
359// extended for APL special actions 2008-09-09
360// add variant 2010-11-26
361// made BKSL and LTGT keys the same to remove a compatibility issue with the UK physical keyboard
362// add key (quad equals) 2013-03-12
363// add currency 2014-05-23
364// add parallel 2014-05-23
365// add circle jot 2014-05-23
366// add t diaeresis 2014-05-23
367// add del diaerisis 2014-05-23
368// add quad query 2014-05-23
369// add dagger 2014-05-23
370
371// The intention is that this keyboard layout overlays a base keyboard that provides 
372// the alphabet and similar. If this keyboard is placed as the 2nd layout then it can
373// be reached with a latching shift to increase group by one.
374
375hidden partial alphanumeric_keys
376xkb_symbols "dyalog_base" {
377
378
379// ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┲━━━━━━━━━┓
380// │ ¤   │ ⌶   │ ⍫   │ ⍒   │ ⍋   │ ⌽   │ ⍉   │ ⊖   │ ⍟   │ ⍱   │ ⍲   │ !   │ ⌹   ┃         ┃
381// │ ⋄   │ ¨   │ ¯   │ <   │ ≤   │ =   │ ≥   │ >   │ ≠   │ ∨   │ ∧   │ ×   │ ÷   ┃         ┃
382// ┢━━━━━┷━┱───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┺━┳━━━━━━━┫
383// ┃       ┃ ⍰   │     │ ⍷   │ ⌾   │ ⍨   │     │     │ ⍸   │ ⍥   │ ⍣   │ ⍞   │ ⍬   ┃       ┃
384// ┃       ┃ ?   │ ⍵   │ ∊   │ ⍴   │ ~   │ ↑   │ ↓   │ ⍳   │ ○   │ *   │ ←   │ →   ┃       ┃
385// ┣━━━━━━━┻┱────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┺┓      ┃
386// ┃        ┃     │     │     │     │ ⍢   │     │ ⍤   │ ⌸   │ ⌷   │ ≡   │ ≢   │ ⊣   ┃      ┃
387// ┃        ┃ ⍺   │ ⌈   │ ⌊   │ _   │ ∇   │ ∆   │ ∘   │ '   │ ⎕   │ ⍎   │ ⍕   │ ⊢   ┃      ┃
388// ┣━━━━━━━┳┹────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┲┷━━━━━┻━━━━━━┫
389// ┃       ┃     │     │     │     │     │ ⍭   │ ⍡   │ ∥   │ ⍪   │ ⍙   │ ⍠   ┃             ┃
390// ┃       ┃     │ ⊂   │ ⊃   │ ∩   │ ∪   │ ⊥   │ ⊤   │ |   │ ⍝   │ ⍀   │ ⌿   ┃             ┃
391// ┣━━━━━━━╋━━━━━┷━┳━━━┷━━━┱─┴─────┴─────┴─────┴─────┴─────┴───┲━┷━━━━━╈━━━━━┻━┳━━━━━━━┳━━━┛
392// ┃       ┃       ┃       ┃                                   ┃       ┃       ┃       ┃
393// ┃       ┃       ┃       ┃                                   ┃       ┃       ┃       ┃
394// ┗━━━━━━━┻━━━━━━━┻━━━━━━━┹───────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┛
395
396
397	key <AB01> { [ U2282			] };	// subset of
398	key <AB02> { [ U2283			] };	// superset of
399	key <AB03> { [ U2229			] };	// intersection
400	key <AB04> { [ U222A			] };	// union
401	key <AB05> { [ U22a5,		U236d	] };	// up tack, stile tide
402	key <AB06> { [ U22a4,		U2361	] };	// down tack, down tack diaeresis
403	key <AB07> { [ bar,		U2225	] };	// vertical line, parallel to
404	key <AB08> { [ U235d,		U236a	] };	// up shoe jot, comma bar
405	key <AB09> { [ U2340,		U2359	] };	// backslash bar, delta underbar
406	key <AB10> { [ U233f,		U2360	] };	// slash bar, quad colon
407	key <AC01> { [ U237a			] };	// alpha
408	key <AC02> { [ U2308			] };	// left ceiling
409	key <AC03> { [ U230a			] };	// left floor
410	key <AC04> { [ underscore		] };	// low line
411	key <AC05> { [ U2207,		U2362	] };	// nabla, del diaerisis
412	key <AC06> { [ U2206			] };	// increment
413	key <AC07> { [ U2218,		U2364	] };	// ring operator, jot diaeresis
414	key <AC08> { [ apostrophe,	U2338	] };	// quote, key
415	key <AC09> { [ U2395,		U2337	] };	// quad, squish quad
416	key <AC10> { [ U234e,		U2261	] };	// up tack jot, identical to
417	key <AC11> { [ U2355,		U2262	] };	// down tack jot,  not identical to
418	key <AD01> { [ question,	U2370	] };	// ?, quad question
419	key <AD02> { [ U2375			] };	// omega
420	key <AD03> { [ U220a,		U2377	] };	// small element of, epsilon underbar
421	key <AD04> { [ U2374,		U233E	] };	// rho, circle jot
422	key <AD05> { [ asciitilde,	U2368	] };	// tilde, tilde diaeresis
423	key <AD06> { [ U2191			] };	// upwards arrow
424	key <AD07> { [ U2193			] };	// downwards arrow
425	key <AD08> { [ U2373,		U2378	] };	// iota, iota underbar
426	key <AD09> { [ U25cb,		U2365	] };	// circle, circle diaeresis
427	key <AD10> { [ asterisk,	U2363	] };	// asterisk, star diaeresis
428	key <AD11> { [ U2190,		U235e	] };	// left arrow, quote quad
429	key <AD12> { [ U2192,		U236c	] };	// right arrow, zilde
430	key <AE01> { [ diaeresis,	U2336	] };	// i-beam
431	key <AE02> { [ macron,		U236B	] };	// deltilde
432	key <AE03> { [ less,		U2352	] };	// downgrade
433	key <AE04> { [ U2264,		U234b	] };	// lesseq upgrade
434	key <AE05> { [ equal,		U233d	] };	// circlestile
435	key <AE06> { [ U2265,		U2349	] };	// greatereq circleslope
436	key <AE07> { [ greater,		U2296	] };	// circlebar
437	key <AE08> { [ U2260,		U235f	] };	// notequal, circlestar
438	key <AE09> { [ U2228,		U2371	] };	// logical or, down caret tilde
439	key <AE10> { [ U2227,		U2372	] };	// logical and, up caret tilde
440	key <AE11> { [ multiply,	exclam	] };
441	key <AE12> { [ division,	U2339	] };	// quad divide
442	key <BKSL> { [ U22a2,		U22a3	] };	// right tack, left tack
443	key <LTGT> { [ U22a2,		U22a3	] };	// right tack, left tack
444	key <TLDE> { [ U22c4,		currency] };	// diamond
445};
446
447hidden partial keypad_keys
448xkb_symbols "dyalog_box" {
449
450// ┌───┬───┬───┬───┐
451// │   │   │   │   │
452// ├───┼───┼───┼───┤
453// │ ┌ │ ┬ │ ┐ │   │
454// ├───┼───┼───┤   │
455// │ ├ │ ┼ │ ┤ │   │
456// ├───┼───┼───┼───┤
457// │ └ │ ┴ │ ┘ │   │
458// ├───┴───┼───┤   │
459// │   ─   │ │ │   │
460// └───────┴───┴───┘
461
462	key <KP0>  { [ U2500 ] };	// box drawing light horizontal
463	key <KP1>  { [ U2514 ] };	// box drawing light up and right
464	key <KP2>  { [ U2534 ] };	// box drawing light up and horizontal
465	key <KP3>  { [ U2518 ] };	// box drawing light up and left
466	key <KP4>  { [ U251c ] };	// box drawing light vertical and right
467	key <KP5>  { [ U253c ] };	// box drawing light vertical and horizontal
468	key <KP6>  { [ U2524 ] };	// box drawing light vertical and left
469	key <KP7>  { [ U250c ] };	// box drawing light down and right
470	key <KP8>  { [ U252c ] };	// box drawing light down and horizontal
471	key <KP9>  { [ U2510 ] };	// box drawing light down and left
472	key <KPDL> { [ U2502 ] };	// box drawing light vertical
473
474};
475
476hidden xkb_symbols "dyalog_codes" {
477
478//	Layout of private use area for this. In the style of the Unicode book
479//
480//				APL special actions		F800-F88F
481//
482//	│F800 F810 F820 F830 F840 F850 F860 F870 F880
483//	├────┬────┬────┬────┬────┬────┬────┬────┬────┐
484//     0│QT  │LL  │BK  │FX  │Rc  │BP  │PA  │    │    │
485//	├────┼────┼────┼────┼────┼────┼────┼────┼────┤
486//     1│ER  │HO  │ZM  │LN  │LW  │AB  │    │    │    │
487//	├────┼────┼────┼────┼────┼────┼────┼────┼────┤
488//     2│TB  │CT  │SC  │MC  │RW  │HT  │    │    │    │
489//	├────┼────┼────┼────┼────┼────┼────┼────┼────┤
490//     3│BT  │PT  │RP  │MR  │Lw  │TH  │    │    │    │
491//	├────┼────┼────┼────┼────┼────┼────┼────┼────┤
492//     4│EP  │IN  │NX  │JP  │Rw  │RM  │    │    │    │
493//	├────┼────┼────┼────┼────┼────┼────┼────┼────┤
494//     5│UC  │II  │PV  │D1  │Uc  │CB  │    │    │    │
495//	├────┼────┼────┼────┼────┼────┼────┼────┼────┤
496//     6│DC  │DI  │RT  │D2  │Dc  │PR  │    │    │TO  │
497//	├────┼────┼────┼────┼────┼────┼────┼────┼────┤
498//     7│RC  │DP  │RA  │D3  │Ll  │SR  │    │    │MO  │
499//	├────┼────┼────┼────┼────┼────┼────┼────┼────┤
500//     8│LC  │DB  │ED  │D4  │Rl  │    │    │    │    │
501//	├────┼────┼────┼────┼────┼────┼────┼────┼────┤
502//     9│US  │RD  │TC  │D5  │Ul  │TL  │    │    │    │
503//	├────┼────┼────┼────┼────┼────┼────┼────┼────┤
504//     A│DS  │TG  │NB  │U1  │Dl  │UA  │    │    │    │
505//	├────┼────┼────┼────┼────┼────┼────┼────┼────┤
506//     B│RS  │DK  │NS  │U2  │Us  │AO  │    │    │    │
507//	├────┼────┼────┼────┼────┼────┼────┼────┼────┤
508//     C│LS  │OP  │ST  │U3  │Ds  │DO  │    │    │    │
509//	├────┼────┼────┼────┼────┼────┼────┼────┼────┤
510//     D│UL  │CP  │EN  │U4  │DD  │GL  │    │    │S1  │
511//	├────┼────┼────┼────┼────┼────┼────┼────┼────┤
512//     E│DL  │MV  │IF  │U5  │DH  │CH  │    │    │S2  │
513//	├────┼────┼────┼────┼────┼────┼────┼────┼────┤
514//     F│RL  │FD  │HK  │Lc  │BH  │PU  │    │    │OS  │
515//	└────┴────┴────┴────┴────┴────┴────┴────┴────┘
516//
517//				APL Function Keys		F700-F7FF
518//
519//	│F700 ...                           ...  F7F0
520//	├────┬────┬────┬────┬....┬────┬────┬────┬────┐
521//     0│F0  │F16 │F32 │F48 │    │F192│F208│F224│F240│
522//	.
523//	.
524//	.
525//     F│F15 │F31 │F47 │F63 │    │F207│F223│F239│F255│
526//	└────┴────┴────┴────┴....┴────┴────┴────┴────┘
527//	
528//	whilst these locations are defined. Dyalog's "aplkeys/xterm" file copes with
529//	normal function keys from the base keyboard rather than this overlay
530
531// ┌─────┐                                                                       ┌───┐
532// │     │                                                                       │ZM │
533// │ QT  │                                                                       │ZM │
534// └─────┘                                                                       └───┘
535
536// ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┲━━━━━━━━━┓
537// │     │     │     │     │     │     │     │     │     │     │     │     │     ┃   CB    ┃
538// │     │     │     │     │     │     │     │     │     │     │     │     │     ┃   BP    ┃
539// ┢━━━━━┷━┱───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┺━┳━━━━━━━┫
540// ┃ BT    ┃     │     │     │     │     │     │     │     │     │     │     │     ┃       ┃
541// ┃ TB    ┃     │     │     │     │     │     │     │     │     │     │     │     ┃       ┃
542// ┣━━━━━━━┻┱────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┺┓      ┃
543// ┃        ┃     │     │     │     │     │     │     │     │     │     │     │     ┃ TC   ┃
544// ┃        ┃     │     │     │     │     │     │     │     │     │     │     │     ┃ ED   ┃
545// ┣━━━━━━━┳┹────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┲┷━━━━━┻━━━━━━┫
546// ┃       ┃     │     │     │     │     │     │     │     │     │     │     ┃             ┃
547// ┃       ┃     │     │     │     │     │     │     │     │     │     │     ┃             ┃
548// ┣━━━━━━━╋━━━━━┷━┳━━━┷━━━┱─┴─────┴─────┴─────┴─────┴─────┴───┲━┷━━━━━╈━━━━━┻━┳━━━━━━━┳━━━┛
549// ┃       ┃       ┃       ┃              MO                   ┃       ┃       ┃       ┃
550// ┃       ┃       ┃       ┃              TO                   ┃       ┃       ┃       ┃
551// ┗━━━━━━━┻━━━━━━━┻━━━━━━━┹───────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┛
552
553
554	key <BKSP> { [ Uf850,	Uf855	] };	// BP CB
555	key <ESC>  { [ Uf800		] };	// QT
556	key <FK11> { [ Uf821,	Uf821	] };	// ZM, ZM put this on both, the unshifted one sometimes gets lost
557	key <RTRN> { [ Uf828,	Uf829	] };	// ED, TC
558	key <SPCE> { [ Uf886,	Uf887	] };	// TO, MO
559	key <TAB>  { [ Uf802,	Uf803	] };	// TB, BT
560
561//      ┌─────┐
562//      │     │
563//      │ BK  │
564// ┌────┼─────┼────┐
565// │ BH │     │ RM │
566// │ PV │ FD  │ NX │
567// └────┴─────┴────┘
568
569	key <DOWN> { [ Uf81f		] };	// FD
570	key <LEFT> { [ Uf825,	Uf84f	] };	// PV, BH
571	key <RGHT> { [ Uf824,	Uf854	] };	// NX, RM
572	key <UP>   { [ Uf820		] };	// BK
573
574
575// ┌───┬───┬───┐
576// │PT │LL │UL │
577// │CP │LS │US │
578// ├───┼───┼───┤
579// │CT │RL │DL │
580// │DK │RS │DS │
581// └───┴───┴───┘
582
583	key <DELE> { [ Uf81b, Uf812 ] };	// DK, CT
584	key <END>  { [ Uf80b, Uf80f ] };	// RS, RL
585	key <HOME> { [ Uf80c, Uf810 ] };	// LS, LL
586	key <INS>  { [ Uf81d, Uf813 ] };	// CP, PT
587	key <PGDN> { [ Uf80a, Uf80e ] };	// DS, DL
588	key <PGUP> { [ Uf809, Uf80d ] };	// US, UL
589
590// ┌───┬───┬───┬───┐
591// │   │RD │TG │LN │
592// ├───┼───┼───┼───┤
593// │   │   │   │   │
594// ├───┼───┼───┤TL │
595// │   │   │   │   │
596// ├───┼───┼───┼───┤
597// │   │   │   │   │
598// ├───┴───┼───┤   │
599// │       │   │   │
600// └───────┴───┴───┘
601
602
603	key <KPAD> { [ Uf859 ] };	// TL
604	key <KPDV> { [ Uf819 ] };	// RD
605	key <KPMU> { [ Uf81a ] };	// TG
606	key <KPSU> { [ Uf831 ] };	// LN
607};
608
609xkb_symbols "dyalog" {
610	include "apl(dyalog_base)"
611	include "apl(dyalog_box)"
612	include "apl(dyalog_codes)"
613	name[Group1] = "APL keyboard symbols (Dyalog)";
614};
615
616