• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// mac version from Ricardo Cabral <bfe00991@mail.telepac.pt>
2
3default partial alphanumeric_keys
4xkb_symbols "basic" {
5
6    // Describes the differences between a very simple en_US
7    // keyboard and a very simple Portuguese keyboard.
8
9    include "latin"
10
11    name[Group1]= "Portugal - Mac";
12
13    key <LSGT> {	[	     less,	   greater, 	      bar,       brokenbar	]	};
14    key <AE02> {	[               2,	  quotedbl, 	       at,       oneeighth	]	};
15    key <AE03> {	[               3,	numbersign,      sterling,        sterling     	]	};
16    key <AE04> {	[               4,	    dollar,       section,          dollar	]	};
17    key <AE06> {	[               6,       ampersand     	]	};
18    key <AE07> {	[               7,           slash     	]	};
19    key <AE08> {	[               8,       parenleft,      bracketleft,       braceleft     	]	};
20    key <AE09> {	[               9,      parenright,     bracketright,      braceright     	]	};
21    key <AE10> {	[               0,           equal      ]	};
22    key <AE11> {	[      apostrophe,        question      ]	};
23    key <AE12> {	[	     plus,        asterisk,             dead_diaeresis             ]	};
24    key <AB08> {	[           comma,       semicolon     	]	};
25    key <AB09> {	[          period,           colon      ]	};
26    key <AB10> {	[           minus,      underscore      ]	};
27    key <AC10> {	[        ccedilla,        Ccedilla      ]	};
28    key <AC11> {	[      dead_tilde, dead_circumflex	]	};
29    key <AC12> {	[       backslash,	       bar     	]	};
30    key <AD11> {	[       masculine,     ordfeminine      ]	};
31    key <AD12> {	[      dead_acute,      dead_grave 	]	};
32
33    include "eurosign(e)"
34    include "level3(ralt_switch)"
35};
36
37partial alphanumeric_keys
38xkb_symbols "Sundeadkeys" {
39    include "macintosh_vndr/pt(basic)" // for consistent naming
40    name[Group1]= "Portugal - Mac, Sun dead keys";
41
42    key <AE12> {	[	     plus,        asterisk,  SunFA_Diaeresis, SunFA_Diaeresis      ]	};
43    key <AC11> {	[     SunFA_Tilde,    SunFA_Circum	]	};
44    key <AD12> {	[     SunFA_Acute,     SunFA_Grave 	]	};
45};
46
47partial alphanumeric_keys
48xkb_symbols "sundeadkeys" {
49    include "macintosh_vndr/pt(Sundeadkeys)" // for consistent naming
50};
51
52partial alphanumeric_keys
53xkb_symbols "nodeadkeys" {
54    include "macintosh_vndr/pt(basic)" // for consistent naming
55    name[Group1]= "Portugal - Mac, no dead keys";
56
57    key <AE12> {	[	     plus,        asterisk, 	 quotedbl,        quotedbl      ]	};
58    key <AC11> {	[      asciitilde,     asciicircum	]	};
59    key <AD12> {	[	    acute,           grave 	]	};
60};
61