~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/programs/xkbcomp/geometry/fujitsu

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// $Xorg: fujitsu,v 1.4 2001/02/09 02:05:49 xorgcvs Exp $
 
2
//
 
3
//Copyright 1996, 1998  The Open Group
 
4
//
 
5
//Permission to use, copy, modify, distribute, and sell this software and its
 
6
//documentation for any purpose is hereby granted without fee, provided that
 
7
//the above copyright notice appear in all copies and that both that
 
8
//copyright notice and this permission notice appear in supporting
 
9
//documentation.
 
10
//
 
11
//The above copyright notice and this permission notice shall be
 
12
//included in all copies or substantial portions of the Software.
 
13
//
 
14
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 
15
//EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
16
//MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 
17
//IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
 
18
//OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 
19
//ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 
20
//OTHER DEALINGS IN THE SOFTWARE.
 
21
//
 
22
//Except as contained in this notice, the name of The Open Group shall
 
23
//not be used in advertising or otherwise to promote the sale, use or
 
24
//other dealings in this Software without prior written authorization
 
25
//from The Open Group.
 
26
//
 
27
default xkb_geometry "138" {
 
28
 
 
29
    // This is an approximate layout for a (US/ASCII) Fujitsu keyboard.  
 
30
 
 
31
    description= "Fujitsu English keyboard";
 
32
 
 
33
    width= 480;
 
34
    height= 215;
 
35
 
 
36
    shape "EDGE" { cornerRadius= 2, { [ 480, 215 ] } };
 
37
    shape.cornerRadius= 1;
 
38
    shape "NORM" { { [ 18,18] }, { [2,1], [ 16,17] } };
 
39
    shape "TABK" { { [ 27,18] }, { [2,1], [ 25,17] } };
 
40
    shape "RTRN" { 
 
41
            approx = { [ 0, 0], [28,37] },
 
42
            { [ 0, 0], [28, 0], [28,37],
 
43
              [ 5,37], [ 5,19], [ 0,19] },
 
44
            { [ 1, 1], [26, 1], [26,36],
 
45
              [ 7,36], [ 7,18], [ 1,18] }
 
46
    };
 
47
    shape "LFSH" { { [ 41,18] }, { [2,1], [ 39,17] } };
 
48
    shape "RTSH" { { [ 33,18] }, { [2,1], [ 31,17] } };
 
49
    shape "LCTL" { { [ 32,18] }, { [2,1], [ 30,17] } };
 
50
    shape "SPCE" { { [151,18] }, { [2,1], [149,17] } };
 
51
    shape "KP0"  { { [ 37,18] }, { [2,1], [ 35,17] } };
 
52
    shape "KPEN" { { [ 18,37] }, { [2,1], [ 16,36] } };
 
53
    shape "EXEC" { { [ 57,18] }, { [2,1], [ 55,17] } };
 
54
 
 
55
    outline "Edges" {
 
56
        top= 0;
 
57
        left= 0;
 
58
        shape= "EDGE";
 
59
    };
 
60
 
 
61
    section.left= 15;
 
62
    row.left= 1;
 
63
    key.shape= "NORM";
 
64
    key.gap=  1;
 
65
 
 
66
    section "Alpha" {
 
67
        top= 28;
 
68
        row {
 
69
            top= 1;
 
70
            keys { 
 
71
                  <BREA>, { <PRSC>, 6 }, 
 
72
                { <FK13>, 30 }, <FK14>, <FK15>, <FK16>,
 
73
                { <FK17>, 6 }, <FK18>, <FK19>, <FK20>,
 
74
                { <FK21>, 6 }, <FK22>, <FK23>, <FK24>,
 
75
                { <FK29>, 68 }, <FK30>, <FK31>, <FK32>
 
76
            };
 
77
        };
 
78
        row {
 
79
            top= 20;
 
80
            keys {
 
81
                  <KNJI>, { <PAUS>, 6 },
 
82
                { <FK01>, 30 }, <FK02>, <FK03>, <FK04>,
 
83
                { <FK05>, 6 }, <FK06>, <FK07>, <FK08>,
 
84
                { <FK09>, 6 }, <FK10>, <FK11>, <FK12>,
 
85
                { <UNK0>, 6 }, <UNK1>, <UNK2>,
 
86
                { <FK25>, 6 }, <FK26>, <FK27>, <FK28>
 
87
            };
 
88
        };
 
89
        row {
 
90
            top= 39;
 
91
            left= 316;
 
92
            keys {
 
93
                  <PGUP>, <HOME>, <PGDN>
 
94
            };
 
95
        };
 
96
        row {
 
97
            top= 54;
 
98
            keys { 
 
99
                  <UNDO>, { <ESC>, 6 }, 
 
100
                  <AE01>, <AE02>, <AE03>, <AE04>, <AE05>, 
 
101
                  <AE06>, <AE07>, <AE08>, <AE09>, <AE10>, 
 
102
                  <AE11>, <AE12>, <TLDE>, <BKSP>,
 
103
                { <KPMU>, 68 }, <KPDV>, <KPAD>, <KPSU>
 
104
 
 
105
            };
 
106
        };
 
107
        row {
 
108
            top= 58;
 
109
            left= 316;
 
110
            keys {
 
111
                  <UNK3>, <DEL>, <INS>
 
112
            };
 
113
        };
 
114
        row {
 
115
            top= 73;
 
116
            keys { <COPY>, 
 
117
                 { <TAB>, 6, "TABK" },
 
118
                   <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
 
119
                   <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
 
120
                   <AD11>, <AD12>, { <RTRN>, "RTRN" },
 
121
                 { <KP7>, 68 }, <KP8>, <KP9>, <KPEQ>
 
122
            };
 
123
        };
 
124
        row {
 
125
            top= 92;
 
126
            keys { <PAST>, 
 
127
                 { <LCTL>, 6, "LCTL" },
 
128
                   <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
 
129
                   <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
 
130
                   <AC11>, <BKSL>,
 
131
                 { <UP>, 49 },
 
132
                 { <KP4>, 25 }, <KP5>, <KP6>, <KPDC>
 
133
            };
 
134
        };
 
135
        row {
 
136
            top= 102;
 
137
            left= 316;
 
138
            keys { <LEFT>, { <RGHT>, 19 }
 
139
            };
 
140
        };
 
141
        row {
 
142
            top= 111;
 
143
            keys { <CUT>, 
 
144
                 { <LFSH>, 6 , "LFSH" }, 
 
145
                   <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
 
146
                   <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
 
147
                   <AB11>, { <RTSH>, "RTSH" },
 
148
                 { <DOWN>, 25 },
 
149
                 { <KP1>, 25 }, <KP2>, <KP3>, { <KPEN>, "KPEN" }
 
150
            };
 
151
        };
 
152
        row {
 
153
            top= 130;
 
154
            keys { <HELP>, { <CAPS>, 6 },
 
155
                   <LALT>, <LMTA>, 
 
156
                 { <SPCE>, "SPCE" },
 
157
                   <RMTA>, <RALT>, <COMP>, <LNFD>, 
 
158
                 { <KP0>, 68, "KP0" }, <KP00>
 
159
            };
 
160
        };
 
161
        row {
 
162
            top= 149;
 
163
            left= 316;
 
164
            keys { 
 
165
                 { <EXEC>, "EXEC" }
 
166
            };
 
167
        };
 
168
    }; // End of "Alpha" section
 
169
};
 
170
 
 
171
xkb_geometry "140" {
 
172
 
 
173
    // This is an approximate layout for a Fujitsu Japanese keyboard.  
 
174
 
 
175
    description= "Fujitsu Japanese keyboard";
 
176
 
 
177
    width= 480;
 
178
    height= 215;
 
179
 
 
180
    shape "EDGE" { cornerRadius= 2, { [ 480, 215 ] } };
 
181
    shape.cornerRadius= 1;
 
182
    shape "NORM" { { [ 18,18] }, { [2,1], [ 16,17] } };
 
183
    shape "TABK" { { [ 27,18] }, { [2,1], [ 25,17] } };
 
184
    shape "RTRN" { 
 
185
            approx = { [ 0, 0], [28,37] },
 
186
            { [ 0, 0], [28, 0], [28,37],
 
187
              [ 5,37], [ 5,19], [ 0,19] },
 
188
            { [ 1, 1], [26, 1], [26,36],
 
189
              [ 7,36], [ 7,18], [ 1,18] }
 
190
    };
 
191
    shape "LFSH" { { [ 41,18] }, { [2,1], [ 39,17] } };
 
192
    shape "RTSH" { { [ 33,18] }, { [2,1], [ 31,17] } };
 
193
    shape "LCTL" { { [ 32,18] }, { [2,1], [ 30,17] } };
 
194
    shape "SPCE" { { [113,18] }, { [2,1], [111,17] } };
 
195
    shape "KP0"  { { [ 37,18] }, { [2,1], [ 35,17] } };
 
196
    shape "KPEN" { { [ 18,37] }, { [2,1], [ 16,36] } };
 
197
    shape "HNKN" { { [ 23,18] }, { [2,1], [ 21,17] } };
 
198
    shape "EXEC" { { [ 57,18] }, { [2,1], [ 55,17] } };
 
199
 
 
200
    outline "Edges" {
 
201
        top= 0;
 
202
        left= 0;
 
203
        shape= "EDGE";
 
204
    };
 
205
 
 
206
    section.left= 15;
 
207
    row.left= 1;
 
208
    key.shape= "NORM";
 
209
    key.gap=  1;
 
210
 
 
211
    section "Alpha" {
 
212
        top= 28;
 
213
        row {
 
214
            top= 1;
 
215
            keys { 
 
216
                  <BREA>, { <PRSC>, 6 }, 
 
217
                { <FK13>, 30 }, <FK14>, <FK15>, <FK16>,
 
218
                { <FK17>, 6 }, <FK18>, <FK19>, <FK20>,
 
219
                { <FK21>, 6 }, <FK22>, <FK23>, <FK24>,
 
220
                { <FK29>, 68 }, <FK30>, <FK31>, <FK32>
 
221
            };
 
222
        };
 
223
        row {
 
224
            top= 20;
 
225
            keys {
 
226
                  <KNJI>, { <PAUS>, 6 },
 
227
                { <FK01>, 30 }, <FK02>, <FK03>, <FK04>,
 
228
                { <FK05>, 6 }, <FK06>, <FK07>, <FK08>,
 
229
                { <FK09>, 6 }, <FK10>, <FK11>, <FK12>,
 
230
                { <UNK0>, 6 }, <UNK1>, <UNK2>,
 
231
                { <FK25>, 6 }, <FK26>, <FK27>, <FK28>
 
232
            };
 
233
        };
 
234
        row {
 
235
            top= 39;
 
236
            left= 316;
 
237
            keys {
 
238
                  <PGUP>, <HOME>, <PGDN>
 
239
            };
 
240
        };
 
241
        row {
 
242
            top= 54;
 
243
            keys { 
 
244
                  <UNDO>, { <ESC>, 6 }, 
 
245
                  <AE01>, <AE02>, <AE03>, <AE04>, <AE05>, 
 
246
                  <AE06>, <AE07>, <AE08>, <AE09>, <AE10>, 
 
247
                  <AE11>, <AE12>, <BKSL>, <BKSP>,
 
248
                { <KPMU>, 68 }, <KPDV>, <KPAD>, <KPSU>
 
249
 
 
250
            };
 
251
        };
 
252
        row {
 
253
            top= 58;
 
254
            left= 316;
 
255
            keys {
 
256
                  <UNK3>, <DEL>, <INS>
 
257
            };
 
258
        };
 
259
        row {
 
260
            top= 73;
 
261
            keys { <COPY>, 
 
262
                 { <TAB>, 6, "TABK" },
 
263
                   <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
 
264
                   <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
 
265
                   <AD11>, <AD12>, { <RTRN>, "RTRN" },
 
266
                 { <KP7>, 68 }, <KP8>, <KP9>, <KPEQ>
 
267
            };
 
268
        };
 
269
        row {
 
270
            top= 92;
 
271
            keys { <PAST>, 
 
272
                 { <LCTL>, 6, "LCTL" },
 
273
                   <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
 
274
                   <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
 
275
                   <AC11>, <TLDE>,
 
276
                 { <UP>, 49 },
 
277
                 { <KP4>, 25 }, <KP5>, <KP6>, <KPDC>
 
278
            };
 
279
        };
 
280
        row {
 
281
            top= 102;
 
282
            left= 316;
 
283
            keys { <LEFT>, { <RGHT>, 19 }
 
284
            };
 
285
        };
 
286
        row {
 
287
            top= 111;
 
288
            keys { <CUT>, 
 
289
                 { <LFSH>, 6 , "LFSH" }, 
 
290
                   <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
 
291
                   <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
 
292
                   <AB11>, { <RTSH>, "RTSH" }, 
 
293
                 { <DOWN>, 25 },
 
294
                 { <KP1>, 25 }, <KP2>, <KP3>, { <KPEN>, "KPEN" }
 
295
            };
 
296
        };
 
297
        row {
 
298
            top= 130;
 
299
            keys { <HELP>, { <CAPS>, 6 },
 
300
                   <LALT>, <LMTA>, <UNK4>,
 
301
                 { <SPCE>, "SPCE" },
 
302
                   <UNK5>, <RMTA>, <COMP>, <LNFD>, <UNK6>,
 
303
                 { <KP0>, 68, "KP0" }, <KP00>
 
304
            };
 
305
        };
 
306
        row {
 
307
            top= 149;
 
308
            left= 134;
 
309
            keys { 
 
310
                 { <UNK7>, "HNKN" }, { <UNK8>, "HNKN" }, 
 
311
                 { <EXEC>, 132, "EXEC" }
 
312
            };
 
313
        };
 
314
    }; // End of "Alpha" section
 
315
};