Added pk(snd)
[xorg/xkeyboard-config] / types / caps
1 // $XFree86: xc/programs/xkbcomp/types/caps,v 1.3 2002/11/26 02:14:02 dawes Exp $
2
3 // CapsLock uses internal capitalization rules
4 // Shift "pauses" CapsLock
5 partial xkb_types "internal" {
6     type "ALPHABETIC" {
7         modifiers = Shift+Lock;
8         map[Shift] = Level2;
9         preserve[Lock] = Lock;
10         level_name[Level1] = "Base";
11         level_name[Level2] = "Caps";
12     };
13
14     type "FOUR_LEVEL_ALPHABETIC" {
15         modifiers = Shift+Lock+LevelThree;
16         map[None] = Level1;
17         map[Shift] = Level2;
18         preserve[Lock] = Lock;
19         map[LevelThree] = Level3;
20         map[Shift+LevelThree] = Level4;
21         map[Lock+LevelThree] =  Level3;
22         map[Lock+Shift+LevelThree] = Level3;
23         preserve[Lock+LevelThree] = Lock;
24         level_name[Level1] = "Base";
25         level_name[Level2] = "Shift";
26         level_name[Level3] = "Alt Base";
27         level_name[Level4] = "Shift Alt";
28     };
29
30     type "FOUR_LEVEL_SEMIALPHABETIC" {
31         modifiers = Shift+Lock+LevelThree;
32         map[None] = Level1;
33         map[Shift] = Level2;
34         preserve[Lock] = Lock;
35         map[LevelThree] = Level3;
36         map[Shift+LevelThree] = Level4;
37         map[Lock+LevelThree] =  Level3;
38         map[Lock+Shift+LevelThree] = Level4;
39         preserve[Lock+LevelThree] = Lock;
40         preserve[Lock+Shift+LevelThree] = Lock;
41         level_name[Level1] = "Base";
42         level_name[Level2] = "Shift";
43         level_name[Level3] = "Alt Base";
44         level_name[Level4] = "Shift Alt";
45     };
46 };
47 // CapsLock uses internal capitalization rules
48 // Shift doesn't cancel CapsLock
49 partial xkb_types "internal_nocancel" {
50     type "ALPHABETIC" {
51         modifiers = Shift;
52         map[Shift] = Level2;
53         level_name[Level1] = "Base";
54         level_name[Level2] = "Caps";
55     };
56
57     type "FOUR_LEVEL_ALPHABETIC" {
58         modifiers = Shift+LevelThree;
59         map[None] = Level1;
60         map[Shift] = Level2;
61         map[LevelThree] = Level3;
62         map[Shift+LevelThree] = Level4;
63         level_name[Level1] = "Base";
64         level_name[Level2] = "Shift";
65         level_name[Level3] = "Alt Base";
66         level_name[Level4] = "Shift Alt";
67     };
68
69     type "FOUR_LEVEL_SEMIALPHABETIC" {
70         // the same as FOUR_LEVEL_ALPHABETIC
71         modifiers = Shift+LevelThree;
72         map[None] = Level1;
73         map[Shift] = Level2;
74         map[LevelThree] = Level3;
75         map[Shift+LevelThree] = Level4;
76         level_name[Level1] = "Base";
77         level_name[Level2] = "Shift";
78         level_name[Level3] = "Alt Base";
79         level_name[Level4] = "Shift Alt";
80     };
81 };
82 // CapsLock acts as Shift with locking
83 // Shift "pauses" CapsLock
84 partial xkb_types "shift" {
85     type "ALPHABETIC" {
86         modifiers = Shift+Lock;
87         map[Shift] = Level2;
88         map[Lock] = Level2;
89         level_name[Level1] = "Base";
90         level_name[Level2] = "Caps";
91     };
92
93     type "FOUR_LEVEL_ALPHABETIC" {
94         modifiers = Shift+Lock+LevelThree;
95         map[None] = Level1;
96         map[Shift] = Level2;
97         map[Lock]  = Level2;
98         map[LevelThree] = Level3;
99         map[Shift+LevelThree] = Level4;
100         map[Lock+LevelThree] =  Level4;
101         map[Shift+Lock+LevelThree] =  Level3;
102         level_name[Level1] = "Base";
103         level_name[Level2] = "Shift";
104         level_name[Level3] = "Alt Base";
105         level_name[Level4] = "Shift Alt";
106     };
107
108     type "FOUR_LEVEL_SEMIALPHABETIC" {
109         modifiers = Shift+Lock+LevelThree;
110         map[None] = Level1;
111         map[Shift] = Level2;
112         map[Lock]  = Level2;
113         map[LevelThree] = Level3;
114         map[Shift+LevelThree] = Level4;
115         map[Lock+LevelThree] =  Level3;
116         map[Lock+Shift+LevelThree] = Level4;
117         preserve[Lock+LevelThree] = Lock;
118         preserve[Lock+Shift+LevelThree] = Lock;
119         level_name[Level1] = "Base";
120         level_name[Level2] = "Shift";
121         level_name[Level3] = "Alt Base";
122         level_name[Level4] = "Shift Alt";
123     };
124 };
125 // CapsLock acts as Shift with locking
126 // Shift doesn't cancel CapsLock
127 partial xkb_types "shift_nocancel" {
128     type "ALPHABETIC" {
129         modifiers = Shift+Lock;
130         map[Shift] = Level2;
131         map[Lock] = Level2;
132         map[Shift+Lock] = Level2;
133         level_name[Level1] = "Base";
134         level_name[Level2] = "Caps";
135     };
136
137     type "FOUR_LEVEL_ALPHABETIC" {
138         modifiers = Shift+Lock+LevelThree;
139         map[None] =  Level1;
140         map[Shift] = Level2;
141         map[Lock] =  Level2;
142         map[Shift+Lock] = Level2;
143         map[LevelThree] = Level3;
144         map[Shift+LevelThree] = Level4;
145         map[Lock+LevelThree] =  Level4;
146         map[Shift+Lock+LevelThree] = Level4;
147         level_name[Level1] = "Base";
148         level_name[Level2] = "Shift";
149         level_name[Level3] = "Alt Base";
150         level_name[Level4] = "Shift Alt";
151     };
152
153     type "FOUR_LEVEL_SEMIALPHABETIC" {
154         modifiers = Shift+Lock+LevelThree;
155         map[None] =  Level1;
156         map[Shift] = Level2;
157         map[Lock] =  Level2;
158         map[Shift+Lock] = Level2;
159         map[LevelThree] = Level3;
160         map[Shift+LevelThree] = Level4;
161         map[Lock+LevelThree] =  Level3;
162         map[Lock+Shift+LevelThree] = Level4;
163         preserve[Lock+LevelThree] = Lock;
164         preserve[Lock+Shift+LevelThree] = Lock;
165         level_name[Level1] = "Base";
166         level_name[Level2] = "Shift";
167         level_name[Level3] = "Alt Base";
168         level_name[Level4] = "Shift Alt";
169     };
170 };