~ubuntu-branches/ubuntu/raring/xkeyboard-config/raring

« back to all changes in this revision

Viewing changes to symbols/us

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2011-04-06 02:41:25 UTC
  • mto: (12.3.3 sid)
  • mto: This revision was merged to the branch mainline in revision 74.
  • Revision ID: james.westby@ubuntu.com-20110406024125-viz2oxc3mwv20d44
Tags: upstream-2.2.1
Import upstream version 2.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $XKeyboardConfig$
2
 
 
3
 
//
4
 
// $XdotOrg: xc/programs/xkbcomp/symbols/us,v 1.1.4.3 2004/03/05 13:41:33 eich Exp $
5
 
// $XFree86: xc/programs/xkbcomp/symbols/us,v 1.6 2003/10/31 14:32:05 pascal Exp $
6
 
 
7
1
default
8
2
partial alphanumeric_keys modifier_keys 
9
3
xkb_symbols "basic" {
196
190
};
197
191
 
198
192
// based on a keyboard map from an 'xkb/symbols/dk' file
199
 
//
200
 
// $XFree86: xc/programs/xkbcomp/symbols/dvorak,v 1.5 2004/01/03 16:35:07 herrb Exp $
201
193
 
202
194
partial alphanumeric_keys
203
195
xkb_symbols "dvorak" {
1194
1186
 
1195
1187
        include "level3(alt_switch)"
1196
1188
};
 
1189
 
 
1190
// EXTRAS:
 
1191
 
 
1192
// XCompose is out! Unicode combining is in!  For those of us who live
 
1193
// on the edge: A keymap using Unicode combining characters instead of
 
1194
// deadkeys.  This variation does not deviate from the lame MS-style
 
1195
// US-intl layout; but it uses AltGr for combining, like altgr-intl.
 
1196
//
 
1197
// This might break your font layout layout systems (because they
 
1198
// suck), caveat emptor.  Also, most of today's software will count
 
1199
// individual combining marks for selection, deletion, character
 
1200
// counting &c., and won't be smart enough to do canonical equivalence
 
1201
// when searching, &c.
 
1202
//
 
1203
// With Unicode combining you use "handwriting order", not
 
1204
// "typewriting order" as with deadkeys.  That is, you first type the
 
1205
// base character, then the diacritics/accents/modifiers.  This has
 
1206
// the advantage of avoiding hidden states --- each keypress changes
 
1207
// something on screen.
 
1208
//
 
1209
// TODO: as of now, this duplicates all us(intl) functionality with
 
1210
// combining.  With care, perhaps we could add more combining marks
 
1211
// not present in intl, and support all major languages.
 
1212
partial alphanumeric_keys
 
1213
xkb_symbols "intl-unicode" {
 
1214
 
 
1215
 name[Group1]= "USA - International (AltGr Unicode combining)";
 
1216
 
 
1217
 include "us(intl)"
 
1218
 include "level3(ralt_switch)"
 
1219
 
 
1220
 // grave, tilde
 
1221
 key <TLDE> { [grave, asciitilde, U0300, U0303 ] };
 
1222
 // double acute
 
1223
 key <AE02> { [ 2, at, twosuperior, U030B ] };
 
1224
 // macron
 
1225
 key <AE03> { [ 3, numbersign, threesuperior, U0304 ] };
 
1226
 // circumflex
 
1227
 key <AE06> { [ 6, asciicircum, onequarter, U0302 ] };
 
1228
 // horn
 
1229
 key <AE07> { [ 7, ampersand, onehalf, U031B ] };
 
1230
 // ogonek
 
1231
 key <AE08> { [ 8, asterisk, threequarters, U0328 ] };
 
1232
 // breve
 
1233
 key <AE09> { [  9, parenleft, leftsinglequotemark, U0306 ] };
 
1234
 // abovering
 
1235
 key <AE10> { [  0, parenright, rightsinglequotemark, U030A ] };
 
1236
 
 
1237
 // belowdot
 
1238
 key <AE11> { [ minus, underscore, yen, U0323 ] };
 
1239
 // acute, diaeresis
 
1240
 key <AC11> { [apostrophe, quotedbl, U0301, U0308 ] };
 
1241
 // abovedot, caron
 
1242
 key <AB09> { [ period, greater, U0307, U030C ] };
 
1243
 // hook
 
1244
 key <AB10> { [ slash, question, questiondown, 0309 ] };
 
1245
 
 
1246
 // alt-intl compatibility
 
1247
 // cedilla, caron
 
1248
 key <AB08> { [ comma, less,     U0327, U030C ] };
 
1249
 // ogonek, diaeresis
 
1250
 key <AC10> { [ semicolon, colon,        U0328, U0308 ] };
 
1251
 // doubleacute, horn
 
1252
 key <AE12> { [ equal, plus,     U030B, U031B ] };
 
1253
 
 
1254
 // we don't do combining latin letters and combining enclosures
 
1255
 // because support for those is very rare.
 
1256
};
 
1257
 
 
1258
// XCompose is out! Unicode combining is in! For those of us who live
 
1259
// on the edge: A keymap using Unicode combining characters instead of
 
1260
// deadkeys. This variation does break compatibility with us-intl,
 
1261
// whenever I thought it would be more mnemonic or Unicodeish.
 
1262
partial alphanumeric_keys
 
1263
xkb_symbols "alt-intl-unicode" {
 
1264
 
 
1265
 name[Group1]= "USA - International (AltGr Unicode combining, alternative)";
 
1266
 
 
1267
 include "extras/us(intl-unicode)"
 
1268
 include "level3(ralt_switch)"
 
1269
 
 
1270
 // easier macron; em-dash.
 
1271
 // em-dash is available via compose, but I added here since it's such
 
1272
 // an important typographic character.
 
1273
 key <AE11> { [ minus, underscore, U0304, U2014 ] };
 
1274
 
 
1275
 // belowdot, abovedot (caron at coma/less key, per above)
 
1276
 key <AB09> { [ period, greater, U0323, U0307 ] };
 
1277
 
 
1278
};
 
1279
 
 
1280
partial alphanumeric_keys  
 
1281
xkb_symbols "ats" {
 
1282
 
 
1283
    include "us"
 
1284
 
 
1285
    name[Group1]= "USA - Atsina";
 
1286
 
 
1287
    //Using Dead key to get COMBINING COMMA ABOVE for ejectives on
 
1288
    //q, l, t, s, m, g, k, p, w, y, r
 
1289
    //XCompose key is used for the other accute and grave.
 
1290
 
 
1291
    key <AD03> { [ e, E, eacute, Eacute  ] };
 
1292
    key <AD07> { [ u, U, uacute, Uacute  ] };
 
1293
    key <AD08> { [ i, I, iacute, Iacute  ] };
 
1294
    key <AD09> { [ o, O, oacute, Oacute  ] };
 
1295
    key <AD11> { [ bracketleft, braceleft, U03B8 ] };
 
1296
    key <AD12> { [ bracketright, braceright, U010D, U010C ] };
 
1297
    //U+010C (uppercase Č) and U+010D (lowercase č).
 
1298
 
 
1299
    key <AC01> { [ a, A, aacute, Aacute  ] };
 
1300
 
 
1301
 
 
1302
    //Small letter Open use compose to key get acute accent
 
1303
    key <AB03> { [ c,   C, U0254, U0186           ] };
 
1304
    key <AB08> { [ comma,     less, U0313 ] };
 
1305
    key <AB10> { [ slash, question, U0294 ] };
 
1306
 
 
1307
    include "level3(ralt_switch)"
 
1308
    include "compose(rctrl)"
 
1309
};
 
1310
 
 
1311
partial alphanumeric_keys
 
1312
xkb_symbols "crd" {
 
1313
 
 
1314
  include "us"
 
1315
 
 
1316
  name[Group1]= "USA - Couer D'alene Salish";
 
1317
 
 
1318
  // Alphanumeric section
 
1319
  key <AD02> { [         w,           W, U02B7, U02B7 ] }; 
 
1320
  key <AE07> { [         7,   ampersand, U0294        ] }; 
 
1321
  key <AD01> { [         q,           Q, U221A        ] }; 
 
1322
  key <AB04> { [         v,           V, U0259        ] }; 
 
1323
  key <BKSL> { [ backslash,         bar, U026B        ] }; 
 
1324
  key <AD03> { [         e,           E, U025B        ] }; 
 
1325
  key <AD08> { [         i,           I, U026A        ] }; 
 
1326
  key <AC07> { [         j,           J, U01F0        ] }; 
 
1327
  key <AE06> { [         6, asciicircum, U0295        ] }; 
 
1328
  key <AC02> { [         s,           S, U0161        ] }; 
 
1329
  key <AB03> { [         c,           C, U010D        ] }; 
 
1330
  key <AD09> { [         o,           O, U0254        ] }; 
 
1331
  key <AB09> { [    period,     greater, U0323        ] }; 
 
1332
 
 
1333
  include "level3(ralt_switch)"
 
1334
  include "compose(rctrl)"
 
1335
 
 
1336
  // End alphanumeric section
 
1337
};