Index: programs/xkbcomp/keycodes/macintosh =================================================================== RCS file: /cvs/xc/programs/xkbcomp/keycodes/macintosh,v retrieving revision 1.5 diff -u -p -p -u -r1.5 macintosh --- programs/xkbcomp/keycodes/macintosh 2001/10/03 07:44:22 1.5 +++ programs/xkbcomp/keycodes/macintosh 2003/08/17 11:41:32 @@ -29,7 +29,138 @@ // $XFree86: xc/programs/xkbcomp/keycodes/macintosh,v 1.5 2001/10/03 07:44:22 alanh Exp $ // default xkb_keycodes "macintosh" { + include "macintosh(linux_key_codes)" +}; +xkb_keycodes "linux_key_codes" { + + minimum= 8; + maximum= 134; + + = 49; + = 10; + = 11; + = 12; + = 13; + = 14; + = 15; + = 16; + = 17; + = 18; + = 19; + = 20; + = 21; + = 22; + + = 23; + = 24; + = 25; + = 26; + = 27; + = 28; + = 29; + = 30; + = 31; + = 32; + = 33; + = 34; + = 35; + = 36; + + = 66; + = 38; + = 39; + = 40; + = 41; + = 42; + = 43; + = 44; + = 45; + = 46; + = 47; + = 48; + = 51; + + = 50; + = 94; + = 52; + = 53; + = 54; + = 55; + = 56; + = 57; + = 58; + = 59; + = 60; + = 61; + = 62; + + = 37; // left control + = 64; // left alt / option + = 115; // left command / apple + = 65; // +// alias = ; // right command / apple + = 113; // right altgr / option + = 109; // right control + + = 9; + = 67; + = 68; + = 69; + = 70; + = 71; + = 72; + = 73; + = 74; + = 75; + = 76; + = 95; + = 96; + + = 111; + = 92; + = 78; + = 110; + = 114; + + = 106; + = 97; + = 99; + = 107; + = 103; + = 105; + + = 98; + = 100; + = 104; + = 102; + + = 77; +// = 100; // XXX FIXME kernel or XFree86 bug + = 112; + = 63; + + = 79; + = 80; + = 81; + = 82; + + = 83; + = 84; + = 85; + = 86; + + = 87; + = 88; + = 89; + = 108; + + = 90; + = 91; +}; + +xkb_keycodes "macintosh_raw_adb" { + minimum= 8; maximum= 134; @@ -92,14 +223,14 @@ default xkb_keycodes "macintosh" { = 57; - = 62; // Left Control - = 63; // Left Option = 64; // Left Shift - = 66; // Left Command -// = 131; // Right Shift -// = 132; // Right Command -// = 133; // Right Control -// = 134; // Right Option + = 62; // Left Control + = 66; // Left alt / Option + = 63; // Left apple / Command + = 132; // Right apple / Command + = 134; // Right alt(gr) / Option + = 133; // Right Control + = 131; // Right Shift = 130; = 128; @@ -114,9 +245,9 @@ default xkb_keycodes "macintosh" { = 111; = 119; - = 113; - = 115; - = 121; + = 113; // F13 + = 78; // F14 + = 110; // F15 = 122; = 123; Index: programs/xkbcomp/keymap/macintosh =================================================================== RCS file: /cvs/xc/programs/xkbcomp/keymap/macintosh,v retrieving revision 1.2 diff -u -p -p -u -r1.2 macintosh --- programs/xkbcomp/keymap/macintosh 2001/03/05 20:18:25 1.2 +++ programs/xkbcomp/keymap/macintosh 2003/08/17 11:41:32 @@ -1,7 +1,7 @@ // $XConsortium: macintosh /main/11 1996/03/07 13:42:13 kaleb $ // $XFree86: xc/programs/xkbcomp/keymap/macintosh,v 1.2 2001/03/05 20:18:25 dawes Exp $ default xkb_keymap "macintosh" { - xkb_keycodes { include "xfree86" }; + xkb_keycodes { include "macintosh(linux_key_codes)" }; xkb_types { include "default" }; xkb_compatibility { include "default" }; xkb_symbols { include "macintosh/us(extended)" }; @@ -9,7 +9,7 @@ default xkb_keymap "macintosh" { }; xkb_keymap "macintosh_old" { - xkb_keycodes { include "macintosh" }; + xkb_keycodes { include "macintosh(macintosh_raw_adb)" }; xkb_types { include "default" }; xkb_compatibility { include "default" }; xkb_symbols { include "macintosh/us(extended)" }; Index: programs/xkbcomp/rules/xorg =================================================================== RCS file: /cvs/xc/programs/xkbcomp/rules/xorg,v retrieving revision 3.61 diff -u -p -p -u -r3.61 xorg --- programs/xkbcomp/rules/xorg 2003/02/20 04:36:09 3.61 +++ programs/xkbcomp/rules/xorg 2003/08/17 11:41:32 @@ -21,8 +21,8 @@ ! $mac = macintosh macintosh_old ! model = keycodes - macintosh_old = macintosh - powerpcps2 = powerpcps2 + macintosh_old = macintosh(macintosh_raw_adb) + $mac = macintosh // uses linux_key_codes pc98 = xfree98(pc98) abnt2 = xfree86(abnt2) * = xfree86 Index: programs/xkbcomp/symbols/macintosh/Imakefile =================================================================== RCS file: /cvs/xc/programs/xkbcomp/symbols/macintosh/Imakefile,v retrieving revision 1.3 diff -u -p -p -u -r1.3 Imakefile --- programs/xkbcomp/symbols/macintosh/Imakefile 2000/10/02 02:32:17 1.3 +++ programs/xkbcomp/symbols/macintosh/Imakefile 2003/08/17 11:41:32 @@ -3,7 +3,8 @@ XCOMM XCOMM XCOMM $XFree86: xc/programs/xkbcomp/symbols/macintosh/Imakefile,v 1.3 2000/10/02 02:32:17 tsi Exp $ - DATAFILES = de de_CH dk es fi fr fr_CH gb it nl no pt se us + DATAFILES = de de_CH dk dvorak es fi fr fr_CH gb it nl no pt se us + all:: Index: programs/xkbcomp/symbols/macintosh/de_CH =================================================================== RCS file: /cvs/xc/programs/xkbcomp/symbols/macintosh/de_CH,v retrieving revision 1.2 diff -u -p -p -u -r1.2 de_CH --- programs/xkbcomp/symbols/macintosh/de_CH 2000/09/26 15:57:25 1.2 +++ programs/xkbcomp/symbols/macintosh/de_CH 2003/08/17 11:41:32 @@ -44,7 +44,7 @@ xkb_symbols "extended" { [ Greek_SIGMA, Aacute ] }; key { [ e, E ], - [ trademark, Ediaeresis ] }; + [ EuroSign, Ediaeresis ] }; key { [ r, R ], [ registered, Egrave ] }; @@ -145,6 +145,4 @@ xkb_symbols "extended" { [nobreakspace, nobreakspace ] }; // End alphanumeric section - key { [ KP_Separator , KP_Delete ] }; - }; Index: programs/xkbcomp/symbols/macintosh/dk =================================================================== RCS file: /cvs/xc/programs/xkbcomp/symbols/macintosh/dk,v retrieving revision 1.1 diff -u -p -p -u -r1.1 dk --- programs/xkbcomp/symbols/macintosh/dk 2000/09/19 12:46:25 1.1 +++ programs/xkbcomp/symbols/macintosh/dk 2003/08/17 11:41:33 @@ -48,7 +48,7 @@ xkb_symbols "basic" { key { [ d, D ], [ eth, ETH ]}; key { [ e, E ], - [ NoSymbol, cent ]}; + [ EuroSign, cent ]}; key { [ r, R ], [ registered, NoSymbol ]}; key { [ t, T ], Index: programs/xkbcomp/symbols/macintosh/dvorak =================================================================== RCS file: dvorak diff -N dvorak --- /dev/null Tue Apr 9 15:46:34 2002 +++ programs/xkbcomp/symbols/macintosh/dvorak Sun Aug 17 11:41:33 2003 @@ -0,0 +1,7 @@ + +partial default alphanumeric_keys +xkb_symbols "basic" { + + include "dvorak(basic)" + name[Group1]= "Dvorak"; +}; Index: programs/xkbcomp/symbols/macintosh/es =================================================================== RCS file: /cvs/xc/programs/xkbcomp/symbols/macintosh/es,v retrieving revision 1.2 diff -u -p -p -u -r1.2 es --- programs/xkbcomp/symbols/macintosh/es 2000/09/26 15:57:25 1.2 +++ programs/xkbcomp/symbols/macintosh/es 2003/08/17 11:41:33 @@ -6,6 +6,8 @@ xkb_symbols "basic" { // Describes the differences between a very simple mac_US // keyboard and a very simple Spanish keybaord + // this keymap is used by the spanish guys in Mexico + // people in spain use "iso", see below name[Group1]= "Spanish"; @@ -13,8 +15,8 @@ xkb_symbols "basic" { [ braceleft, braceright ] }; key { [ less, greater ], [ bracketleft, braceleft ] }; - key { [ 1, exclam ] }; - key { [ 2, exclamdown ], + key { [ 1, exclamdown ] }; + key { [ 2, exclam ], [ at, oneeighth ] }; key { [ 3, numbersign ], [ guillemotleft, guillemotright ] }; @@ -36,7 +38,10 @@ xkb_symbols "basic" { key { [ dead_grave, degree ] }; key { [ dead_acute, dead_diaeresis ], [ bar ] }; + key { [ e, E ], + [ EuroSign ] }; + key { [ comma, questiondown ] }; key { [ period, question ] }; key { [ ccedilla, Ccedilla ] }; @@ -46,5 +51,18 @@ xkb_symbols "basic" { key { [ apostrophe, quotedbl ] }; // End alphanumeric section + +}; + +xkb_symbols "nodeadkeys" { + // a dummy map to workaround XF86config errors + include "macintosh/es(basic)" +}; + +xkb_symbols "iso" { + // the people in spain use PC style keyboards on their macs + // credits to Xoán Pedracova + + include "es(basic)" }; Index: programs/xkbcomp/symbols/macintosh/fr =================================================================== RCS file: /cvs/xc/programs/xkbcomp/symbols/macintosh/fr,v retrieving revision 1.2 diff -u -p -p -u -r1.2 fr --- programs/xkbcomp/symbols/macintosh/fr 2000/09/26 15:57:25 1.2 +++ programs/xkbcomp/symbols/macintosh/fr 2003/08/17 11:41:33 @@ -11,11 +11,11 @@ xkb_symbols "extended" { key { [ at, numbersign ], [ periodcentered ] }; key { [ ampersand, 1 ], - [ dead_acute, dead_acute] }; + [ dead_acute, dead_acute ] }; key { [ eacute, 2 ] }; key { [ quotedbl, 3 ] }; key { [ quoteright, 4 ], - [ quoteleft ] }; + [ quoteleft, EuroSign ] }; key { [ parenleft, 5 ], [ braceleft, bracketleft ] }; key { [ section, 6 ], @@ -50,7 +50,7 @@ xkb_symbols "extended" { key { [ p, P ] }; key { [ dead_circumflex, dead_diaeresis ], [ ocircumflex, Ocircumflex ] }; - key { [ dollar, asterisk ], + key { [ EuroSign, asterisk ], [ comma, yen ] }; key { [ dead_grave, sterling ], [ at, numbersign ] }; @@ -95,7 +95,13 @@ xkb_symbols "extended" { [ macron, plusminus ] }; // End alphanumeric section - key { [ KP_Separator , KP_Delete ] }; + key { [ KP_Delete , KP_Separator ] }; }; + +xkb_symbols "nodeadkeys" { + // a dummy map to workaround XF86config errors + include "macintosh/fr(extended)" +}; + Index: programs/xkbcomp/symbols/macintosh/it =================================================================== RCS file: /cvs/xc/programs/xkbcomp/symbols/macintosh/it,v retrieving revision 1.3 diff -u -p -p -u -r1.3 it --- programs/xkbcomp/symbols/macintosh/it 2001/04/06 16:51:20 1.3 +++ programs/xkbcomp/symbols/macintosh/it 2003/08/17 11:41:33 @@ -32,7 +32,8 @@ xkb_symbols "extended" { key { [ q, Q ] }; key { [ z, Z ] }; - key { [ e, E ] }; + key { [ e, E ], + [ EuroSign ] }; key { [ r, R ], [ registered ] }; key { [ t, T ] }; @@ -85,9 +86,6 @@ xkb_symbols "extended" { [ exclamdown ] }; // End alphanumeric section - - key { [ KP_Decimal , KP_Delete ] }; - // End "Keypad" section }; Index: programs/xkbcomp/symbols/macintosh/no =================================================================== RCS file: /cvs/xc/programs/xkbcomp/symbols/macintosh/no,v retrieving revision 1.1 diff -u -p -p -u -r1.1 no --- programs/xkbcomp/symbols/macintosh/no 2000/09/19 12:46:25 1.1 +++ programs/xkbcomp/symbols/macintosh/no 2003/08/17 11:41:33 @@ -31,6 +31,8 @@ xkb_symbols "basic" { [ odiaeresis, Odiaeresis ] }; key { [ plus, question ] }; key { [ ae, AE ] }; + key { [ e, E ], + [ EuroSign ] }; key { [ aring, Aring ] }; key { [ dead_grave, dead_acute ], [ acute, dead_ogonek ] }; Index: programs/xkbcomp/symbols/macintosh/pt =================================================================== RCS file: /cvs/xc/programs/xkbcomp/symbols/macintosh/pt,v retrieving revision 1.1 diff -u -p -p -u -r1.1 pt --- programs/xkbcomp/symbols/macintosh/pt 2000/09/19 12:46:25 1.1 +++ programs/xkbcomp/symbols/macintosh/pt 2003/08/17 11:41:33 @@ -34,25 +34,13 @@ xkb_symbols "basic" { key { [ ccedilla, Ccedilla ] }; key { [ dead_tilde, dead_circumflex ] }; key { [ backslash, bar ] }; + key { [ e, E ], + [ EuroSign ] }; + key { [ masculine, ordfeminine ] }; key { [ dead_acute, dead_grave ] }; // End alphanumeric section -}; - -partial alphanumeric_keys -xkb_symbols "Sundeadkeys" { - include "macintosh/pt(basic)" // for consistent naming - - key { [ plus, asterisk ], - [ SunFA_Diaeresis, SunFA_Diaeresis ] }; - key { [ SunFA_Tilde, SunFA_Circum ] }; - key { [ SunFA_Acute, SunFA_Grave ] }; -}; - -partial alphanumeric_keys -xkb_symbols "sundeadkeys" { - include "macintosh/pt(Sundeadkeys)" // for consistent naming }; partial alphanumeric_keys Index: programs/xkbcomp/symbols/macintosh/se =================================================================== RCS file: /cvs/xc/programs/xkbcomp/symbols/macintosh/se,v retrieving revision 1.2 diff -u -p -p -u -r1.2 se --- programs/xkbcomp/symbols/macintosh/se 2000/12/05 21:18:39 1.2 +++ programs/xkbcomp/symbols/macintosh/se 2003/08/17 11:41:33 @@ -34,6 +34,8 @@ xkb_symbols "basic" { key { [ plus, question ] }; key { [ adiaeresis, Adiaeresis ], [ ae, AE ] }; + key { [ e, E ], + [ EuroSign ] }; key { [ aring, Aring ] }; key { [ acute, grave ] }; key { [ diaeresis, asciicircum ], Index: programs/xkbcomp/symbols/macintosh/us =================================================================== RCS file: /cvs/xc/programs/xkbcomp/symbols/macintosh/us,v retrieving revision 1.7 diff -u -p -p -u -r1.7 us --- programs/xkbcomp/symbols/macintosh/us 2002/10/16 01:29:41 1.7 +++ programs/xkbcomp/symbols/macintosh/us 2003/08/17 11:41:34 @@ -22,12 +22,16 @@ xkb_symbols "extended" { key { [ 0, parenright ] }; key { [ minus, underscore ] }; key { [ equal, plus ] }; - key { [ BackSpace ] }; + key { + type="CTRL+ALT", + symbols[Group1]= [ BackSpace, Terminate_Server ] + }; key { [ Tab, ISO_Left_Tab ] }; key { [ q, Q ] }; key { [ w, W ] }; - key { [ e, E ] }; + key { [ e, E ], + [ EuroSign ] }; key { [ r, R ] }; key { [ t, T ] }; key { [ y, Y ] }; @@ -68,18 +72,54 @@ xkb_symbols "extended" { // End alphanumeric section // Begin "Function" section - key { [ F1 ] }; - key { [ F2 ] }; - key { [ F3 ] }; - key { [ F4 ] }; - key { [ F5 ] }; - key { [ F6 ] }; - key { [ F7 ] }; - key { [ F8 ] }; - key { [ F9 ] }; - key { [ F10 ] }; - key { [ F11 ] }; - key { [ F12 ] }; + key { + type="CTRL+ALT", + symbols[Group1]= [ F1, XF86_Switch_VT_1 ] + }; + key { + type="CTRL+ALT", + symbols[Group1]= [ F2, XF86_Switch_VT_2 ] + }; + key { + type="CTRL+ALT", + symbols[Group1]= [ F3, XF86_Switch_VT_3 ] + }; + key { + type="CTRL+ALT", + symbols[Group1]= [ F4, XF86_Switch_VT_4 ] + }; + key { + type="CTRL+ALT", + symbols[Group1]= [ F5, XF86_Switch_VT_5 ] + }; + key { + type="CTRL+ALT", + symbols[Group1]= [ F6, XF86_Switch_VT_6 ] + }; + key { + type="CTRL+ALT", + symbols[Group1]= [ F7, XF86_Switch_VT_7 ] + }; + key { + type="CTRL+ALT", + symbols[Group1]= [ F8, XF86_Switch_VT_8 ] + }; + key { + type="CTRL+ALT", + symbols[Group1]= [ F9, XF86_Switch_VT_9 ] + }; + key { + type="CTRL+ALT", + symbols[Group1]= [ F10, XF86_Switch_VT_10 ] + }; + key { + type="CTRL+ALT", + symbols[Group1]= [ F11, XF86_Switch_VT_11 ] + }; + key { + type="CTRL+ALT", + symbols[Group1]= [ F12, XF86_Switch_VT_12 ] + }; key { [ Print ] }; key { [ Scroll_Lock ] }; key { [ Pause ] }; @@ -102,18 +142,30 @@ xkb_symbols "extended" { // Begin "Keypad" section key { [ Num_Lock, Pointer_EnableKeys ] }; key { [ equal ] }; - key { [ KP_Divide ] }; - key { [ KP_Multiply ] }; + key { + type="CTRL+ALT", + symbols[Group1]=[ KP_Divide, XF86_Ungrab ] + }; + key { + type="CTRL+ALT", + symbols[Group1]=[ KP_Multiply, XF86_ClearGrab ] + }; key { [ KP_7, KP_Home ] }; key { [ KP_8, KP_Up ] }; key { [ KP_9, KP_Prior ] }; - key { [ KP_Subtract ] }; + key { + type="CTRL+ALT", + symbols[Group1]=[ KP_Subtract, XF86_Prev_VMode ] + }; key { [ KP_4, KP_Left ] }; key { [ KP_5, KP_Begin ] }; key { [ KP_6, KP_Right ] }; - key { [ KP_Add ] }; + key { + type="CTRL+ALT", + symbols[Group1]=[ KP_Add, XF86_Next_VMode ] + }; key { [ KP_1, KP_End ] }; key { [ KP_2, KP_Down ] }; @@ -145,57 +196,5 @@ xkb_symbols "extended" { modifier_map Mod5 { Scroll_Lock }; // end modifier mappings -// *** FIXME -// key { [ quoteleft, asciitilde ] }; -// key { [ 1, exclam ], -// [exclamdown, slash ] }; -// key { [ 2, at ], -// [ trademark, eth ] }; -// key { [ 3, numbersign ], -// [ sterling ] }; -// key { [ 4, dollar ], -// [ cent ] }; -// key { [ 5, percent ], -// [ infinity ] }; -// key { [ 6, asciicircum ], -// [ section ] }; -// key { [ 7, ampersand ], -// [ paragraph ] }; -// key { [ 8, asterisk ], -// [periodcentered ] }; -// key { [ 9, parenleft ], -// [ordfeminine ] }; -// key { [ equal, plus ], -// [ notequal, plusminus ] }; -// key { [ q, Q ], -// [ oe, OE ] }; -// key { [ r, R ], -// [registered ] }; -// key { [ t, T ], -// [ dagger ] }; -// key { [ backslash, bar ], -// [guillemotleft,guillemotright ] }; -// key { [ a, A ], -// [ aring, Aring ] }; -// key { [ s, S ], -// [ ssharp, Iacute ] }; -// key { [ d, D ], -// eth, Icircumflex ] }; -// key { [ f, F ], -// [ Idiaeresis ] }; -// key { [ g, G ], -// [ copyright ] }; -// key { [ l, L ], -// [ notsign, Ograve ] }; -// key { [ quoteright, quotedbl ], -// [ ae, AE ] }; -// key { [ c, C ], -// [ ccedilla, Ccedilla ] }; -// key { [ n, N ], -// [asciitilde ] }; -// key { [ m, M ], -// [ mu, Acircumflex ] }; -// key { [ Mode_switch, Multi_key ] }; -// modifier_map Mod3 { Mode_switch }; }; --- programs/xkbcomp/symbols/macintosh/us +++ programs/xkbcomp/symbols/macintosh/us @@ -181,10 +181,9 @@ key { [ Shift_R ] }; key { [ Control_L ] }; key { [ Control_R ] }; - key { [ Alt_L, Meta_L ] }; - key { [ Alt_R, Meta_R ] }; - key { [ Super_L ] }; - key { [ Super_R ] }; + key { [ Mode_switch, Multi_key ] }; + key { [ Mode_switch, Multi_key ] }; + key { [ Alt_L ] }; // End "Modifier" section // begin modifier mappings