3 // APL Keyboard Layouts
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
10 // Unicode APL table: http://aplwiki.com/UnicodeAplTable
11 // ...and another: http://publibfp.boulder.ibm.com/epubs/pdf/h2110611.pdf (appendix A)
12 // Generic Unicode stuff: http://www.fileformat.info/info/unicode/category/index.htm
14 // Tim Nelson (this file's creator) says:
16 // This file doesn't deal with all the combining stuff -- I'm not an APL programmer,
17 // and am not quite sure what's needed here. However, it may be possible to get this
18 // working with dead keys and the like. Patches gratefully accepted.
20 // Some of the shift-key assignments may differ from the APL tradition. If
21 // that's not considered acceptable, it should be possible to remap the
22 // shift keys. I have striven, however, to ensure that the use of shift keys
23 // in these maps is at least self-consistent.
25 // I'm assuming that this will be used with another keyboard layout (ie. for
26 // your language), with a special shift key to use these maps.
28 partial alphanumeric_keys modifier_keys
29 xkb_symbols "common" {
32 key <AE01> { [ diaeresis ] };
33 key <AE02> { [ U00AF ] }; // ¯ -- Macron
34 key <AE03> { [ less ] };
35 key <AE04> { [ U2264 ] }; // ≤ -- Less-than Or Equal To
36 key <AE05> { [ equal ] };
37 key <AE06> { [ U2265 ] }; // ≥ -- Greater-than Or Equal To
38 key <AE07> { [ greater ] };
39 key <AE08> { [ U2260 ] }; // ≠ -- Not Equal To
40 key <AE09> { [ U2228 ] }; // ∨ -- Logical Or
41 key <AE10> { [ U2227 ] }; // ∧ -- Logical And
44 key <AD01> { [ question ] };
46 key <AD02> { [ U2375 ] }; // ⍵ -- APL Functional Symbol Omega
48 key <AD03> { [ U220A ] }; // ∊ -- Small Element Of
50 key <AD04> { [ U2374 ] }; // ⍴ -- APL Functional Symbol Rho
52 key <AD05> { [ asciitilde ] };
54 key <AD06> { [ U2191 ] }; // ↑ -- Upwards Arrow
56 key <AD07> { [ U2193 ] }; // ↓ -- Downwards Arrow
58 key <AD08> { [ U2373 ] }; // ⍳ -- APL Functional Symbol Iota
60 key <AD09> { [ U25CB ] }; // ○ -- White Circle
62 key <AD10> { [ U22C6 ] }; // ⋆ -- Should this be a plain asterisk, or the star operator???
64 key <AD11> { [ U2190 ] }; // ← -- Leftwards Arrow
67 key <AC01> { [ U237A ] }; // ⍺ -- APL Functional Symbol Alpha
69 key <AC02> { [ U2308 ] }; // ⌈ -- Left Ceiling
71 key <AC03> { [ U230A ] }; // ⌊ -- Left Floor
73 key <AC04> { [ underscore ] };
75 key <AC05> { [ U2207 ] }; // ∇ -- Nabla
77 key <AC06> { [ U2206 ] }; // ∆ -- Increment
79 key <AC07> { [ U2218 ] }; // ∘ -- Ring Operator
81 key <AC08> { [ apostrophe ] };
83 key <AC09> { [ U2395 ] }; // ⎕ -- APL Functional Symbol Quad
86 key <AB01> { [ U2282 ] }; // ⊂ -- Subset Of
88 key <AB02> { [ U2283 ] }; // ⊃ -- Superset Of
90 key <AB03> { [ U2229 ] }; // ∩ -- Intersection
92 key <AB04> { [ U222A ] }; // ∪ -- Union
94 key <AB05> { [ U22A5 ] }; // ⊥ -- Up Tack
96 key <AB06> { [ U22A4 ] }; // ⊤ -- Down Tack
98 key <AB07> { [ U007C ] }; // | -- Vertical Line
101 // Keys common to a number of keyboards that allow normal language usage alongside APL
102 partial alphanumeric_keys modifier_keys
103 xkb_symbols "unified" {
104 name[Group1]= "APL Keyboard Symbols: Unified Layout";
106 include "apl(common)"
109 key <TLDE> { [ U22C4 ] }; // ⋄ -- Diamond Operator
110 key <AE09> { [ NoSymbol, U2371 ] }; // ⍱ -- APL Functional Symbol Down Caret Tilde
111 key <AE10> { [ NoSymbol, U2372 ] }; // ⍲ -- APL Functional Symbol Up Caret Tilde
113 key <AE11> { [ U00D7 ] }; // × -- Multiplication Sign
115 key <AE12> { [ U00F7, U2339 ] }; // ÷ ⌹ -- Division Sign / APL Functional Symbol Quad Divide
118 key <AD12> { [ U2192 ] }; // → -- Rightwards Arrow
121 // Layout: http://www.wickensonline.co.uk/apl-unicomp.html
123 partial alphanumeric_keys modifier_keys
125 name[Group1]= "APL Keyboard Symbols: Sharp APL for Unix";
127 include "apl(unified)"
129 key <AE01> { [ NoSymbol, U00A1 ] }; // ¡ -- Inverted Exclamation Mark
130 key <AE04> { [ NoSymbol, cent ] };
131 key <AE08> { [ NoSymbol, U2342 ] }; // ⍂ -- APL Functional Symbol Quad Backslash
133 key <AE11> { [ NoSymbol, U2261 ] }; // ≡ -- Identical To
136 key <AD01> { [ NoSymbol, U00BF ] }; // ¿ -- Inverted Question Mark
138 key <AD02> { [ NoSymbol, U233D ] }; // ⌽ -- APL Functional Symbol Circle Stile
140 key <AD03> { [ NoSymbol, U2377 ] }; // ⍷ -- APL Functional Symbol Epsilon Underbar
142 key <AD05> { [ NoSymbol, U2349 ] }; // ⍉ -- APL Functional Symbol Circle Backslash
144 key <AD08> { [ NoSymbol, U2378 ] }; // ⍸ -- APL Functional Symbol Iota Underbar
146 key <AD09> { [ NoSymbol, U2365 ] }; // ⍥ -- APL Functional Symbol Circle Diaeresis
148 key <AD10> { [ NoSymbol, U235F ] }; // ⍟ -- APL Functional Symbol Circle Star
151 key <AC01> { [ NoSymbol, U2296 ] }; // ⊖ -- Circled Minus
153 key <AC04> { [ NoSymbol, U236B ] }; // ⍫ -- APL Functional Symbol Del Tilde
155 key <AC05> { [ NoSymbol, U2352 ] }; // ∇ ⍒ -- APL Functional Symbol Del Stile
157 key <AC06> { [ NoSymbol, U234B ] }; // ∆ ⍋ -- APL Functional Symbol Delta Stile
159 key <AC07> { [ NoSymbol, U2364 ] }; // ⍤ -- APL Functional Symbol Jot Diaeresis
161 key <AC08> { [ NoSymbol, U233B ] }; // ⌻
163 key <AC09> { [ NoSymbol, U235E ] }; // ⍞ -- APL Functional Symbol Quote Quad
165 key <AC10> { [ U22A2 ] }; // ⊢ -- Right Tack
167 key <AC11> { [ U22A3 ] }; // ⊣ -- Left Tack
170 key <AB03> { [ NoSymbol, U235D ] }; // ⍝ -- APL Functional Symbol Up Shoe Jot
172 key <AB05> { [ NoSymbol, U234E ] }; // ⍎ -- APL Functional Symbol Down Tack Jot (Unicode got the name wrong; it should have been "Up Tack")
174 key <AB06> { [ NoSymbol, U2355 ] }; // ⍕ -- APL Functional Symbol Up Tack Jot (Unicode got the name wrong; it should have been "Down Tack")
176 key <AB07> { [ NoSymbol, U2336 ] }; // ⌶ -- APL Functional Symbol I-Beam
178 key <AB08> { [ U235E, U236A ] }; // ⍞ ⍪ -- APL Functional Symbol Quote Quad / APL Functional Symbol Comma Bar
180 key <AB09> { [ U234E, U2359 ] }; // ⍎ ⍙ -- [See B key] / APL Functional Symbol Delta Underbar
182 key <AB10> { [ U2355, U233F ] }; // ⍕ ⌿ -- [See N key] / APL Functional Symbol Slash Bar
184 key <BKSL> { [ U235D, U2340 ] }; // ⍝ ⍀ -- APL Functional Symbol Up Shoe Jot / APL Functional Symbol Backslash Bar
187 // Layout: http://www.wickensonline.co.uk/apl-unicomp.html
188 partial alphanumeric_keys modifier_keys
190 name[Group1]= "APL Keyboard Symbols: IBM APL2";
192 include "apl(common)"
194 // The first column is NoSymbol because it inherits. The second is NoSymbol because those keys don't do anything
197 key <TLDE> { [ NoSymbol, U233B, U2342 ] }; // ⌻ ⍂ --
198 key <AE01> { [ NoSymbol, NoSymbol, U2336 ] }; // ⌶ -- APL Functional Symbol I-Beam
199 key <AE02> { [ NoSymbol, NoSymbol, U236B ] }; // ⍫ -- APL Functional Symbol Del Tilde
200 key <AE03> { [ NoSymbol, NoSymbol, U2353 ] }; // ⍒ -- APL Functional Symbol Del Stile
201 key <AE04> { [ NoSymbol, NoSymbol, U234B ] }; // ⍋ -- APL Functional Symbol Delta Stile
202 key <AE05> { [ NoSymbol, NoSymbol, U233D ] }; // ⌽ -- APL Functional Symbol Circle Stile
203 key <AE06> { [ NoSymbol, NoSymbol, U2349 ] }; // ⍉ -- APL Functional Symbol Circle Backslash
204 key <AE07> { [ NoSymbol, NoSymbol, U2296 ] }; // ⊖ -- Circled Minus
205 key <AE08> { [ NoSymbol, NoSymbol, U235F ] }; // ⍟ -- APL Functional Symbol Circle Star
206 key <AE09> { [ NoSymbol, NoSymbol, U2371 ] }; // ⍱ -- APL Functional Symbol Down Caret Tilde
207 key <AE10> { [ NoSymbol, NoSymbol, U2372 ] }; // ⍲ -- APL Functional Symbol Up Caret Tilde
209 key <AE11> { [ plus, minus, exclam ] };
211 key <AE12> { [ U00D7, U00F7, U2339 ] }; // × ÷ ⌹ -- Multiplication Sign / Division Sign / APL Functional Symbol Quad Divide
214 key <AD11> { [ NoSymbol, U2192, U235E ] }; // (←) → ⍞ -- Rightwards Arrow / APL Functional Symbol Quote Quad
216 key <AD12> { [ U2337, U2378, U2359 ] }; // ⌷ ⍸ ⍙ -- APL Functional Symbol Squish Quad / APL Functional Symbol Iota Underbar / APL Functional Symbol Delta Underbar
219 key <AC10> { [ bracketleft, parenleft, U234E ] }; // ⍎ -- [See B key in SAX layout]
221 key <AC11> { [ bracketright, parenright, U2355 ] }; // ⍕ -- [See N key in SAX layout]
224 key <AB08> { [ comma, semicolon, U235D ] }; // ⍝ -- APL Functional Symbol Up Shoe Jot
226 key <AB09> { [ period, colon, U2340 ] }; // ⍀ -- APL Functional Symbol Backslash Bar
228 key <AB10> { [ slash, backslash, U233F ] }; // ⌿ -- APL Functional Symbol Slash Bar
230 key <BKSL> { [ U2261, U2377, U2364 ] }; // ≡ ⍷ ⍤ -- Identical To / APL Functional Symbol Epsilon Underbar / APL Functional Symbol Jot Diaeresis
233 partial alphanumeric_keys modifier_keys
234 xkb_symbols "aplplusII" {
235 name[Group1]= "APL Keyboard Symbols: Manugistics APL*PLUS II";
240 key <TLDE> { [ dollar, U22C4, U236A ] }; // ⋄ ⍪ -- Diamond Operator / APL Functional Symbol Comma Bar
241 key <AE01> { [ NoSymbol, NoSymbol, U2261 ] }; // ≡ -- Identical To
244 key <AD11> { [ U2190, NoSymbol, U235E ] }; // ← ⍞ -- Leftwards Arrow / APL Functional Symbol Quote Quad
246 key <AD12> { [ U2192, NoSymbol, U236C ] }; // → ⍬ -- Rightwards Arrow / APL Functional Symbol Zilde
249 key <AC10> { [ bracketleft, parenleft, U234E ] }; // ⍎ -- [See B key in SAX layout]
251 key <AC11> { [ bracketright, parenright, U2355 ] }; // ⍕ -- [See N key in SAX layout]
253 key <BKSL> { [ U22A3, U22A2, U2359 ] }; // ⊣ ⊢ ⍙ -- Left Tack / Right Tack / APL Functional Symbol Delta Underbar
257 // MicroAPL layout: http://aplwiki.com/APLXKeyboardLayouts
258 // I didn't do the old-style MicroAPL layout; patches gratefully accepted
259 partial alphanumeric_keys modifier_keys
261 name[Group1]= "APL Keyboard Symbols: APLX Unified APL Layout";
263 include "apl(unified)"
266 key <TLDE> { [ NoSymbol, U235E ] }; // ⍞ -- APL Functional Symbol Quote Quad
267 key <AE01> { [ NoSymbol, U2336 ] }; // ⌶ -- APL Functional Symbol I-Beam
268 key <AE02> { [ NoSymbol, U236B ] }; // ⍫ -- APL Functional Symbol Del Tilde
269 key <AE03> { [ NoSymbol, U2353 ] }; // ⍒ -- APL Functional Symbol Del Stile
270 key <AE04> { [ NoSymbol, U234B ] }; // ⍋ -- APL Functional Symbol Delta Stile
271 key <AE05> { [ NoSymbol, U233D ] }; // ⌽ -- APL Functional Symbol Circle Stile
272 key <AE06> { [ NoSymbol, U2349 ] }; // ⍉ -- APL Functional Symbol Circle Backslash
273 key <AE07> { [ NoSymbol, U2296 ] }; // ⊖ -- Circled Minus
274 key <AE08> { [ NoSymbol, U235F ] }; // ⍟ -- APL Functional Symbol Circle Star
276 key <AE11> { [ NoSymbol, exclam ] };
279 key <AD11> { [ NoSymbol, U2347 ] }; // ⍇ -- Box With Left Arrow
281 key <AD12> { [ NoSymbol, U2348 ] }; // ⍈ -- Box With Right Arrow
284 key <AC10> { [ U234E, U2261 ] }; // ⍎ ≡ -- [See B key in SAX layout] / Identical To
286 key <AC11> { [ U2355, U2262 ] }; // ⍕ ≢ -- [See N key in SAX layout] / Not Identical To
289 key <AB08> { [ U235D, U236A ] }; // ⍝ ⍪ -- APL Functional Symbol Up Shoe Jot / APL Functional Symbol Comma Bar
291 key <AB09> { [ U2340, U2364 ] }; // ⍀ ⍤ -- APL Functional Symbol Backslash Bar / APL Functional Symbol Jot Diaeresis
293 key <AB10> { [ U233F ] }; // ⌿ -- APL Functional Symbol Slash Bar
295 key <BKSL> { [ U22A3, U22A3 ] }; // ⊣ ⊢ -- Left Tack / Right Tack