// mac version from Ricardo Cabral <bfe00991@mail.telepac.pt>

partial default alphanumeric_keys 
xkb_symbols "basic" {

    // Describes the differences between a very simple en_US
    // keyboard and a very simple Portuguese keybaord

    include "latin"

    name[Group1]= "Portugal - Mac";

    key <LSGT> {	[	     less,	   greater, 	      bar,       brokenbar	]	};
    key <AE02> {	[               2,	  quotedbl, 	       at,       oneeighth	]	};
    key <AE04> {	[               4,	    dollar,          section,          dollar	]	};
    key <AE03> {	[               3,	numbersign,         sterling,        sterling     	]	};
    key <AE06> {	[               6,       ampersand     	]	};
    key <AE07> {	[               7,           slash     	]	};
    key <AE08> {	[               8,       parenleft,      bracketleft,       braceleft     	]	};
    key <AE09> {	[               9,      parenright,     bracketright,      braceright     	]	};
    key <AE10> {	[               0,           equal      ]	};
    key <AE11> {	[      apostrophe,        question      ]	};
    key <AE12> {	[	     plus,        asterisk,             dead_diaeresis             ]	};
    key <AB08> {	[           comma,       semicolon     	]	};
    key <AB09> {	[          period,           colon      ]	};
    key <AB10> {	[           minus,      underscore      ]	};
    key <AC10> {	[        ccedilla,        Ccedilla      ]	};
    key <AC11> {	[      dead_tilde, dead_circumflex	]	};
    key <AC12> {	[       backslash,	       bar     	]	};
    key <AD11> {	[       masculine,     ordfeminine      ]	};
    key <AD12> {	[      dead_acute,      dead_grave 	]	};
    // End alphanumeric section

    include "eurosign(e)"
    include "level3(ralt_switch)"
};

partial alphanumeric_keys 
xkb_symbols "Sundeadkeys" {
    include "macintosh_vndr/pt(basic)" // for consistent naming
    name[Group1]= "Portugal - Mac, Sun dead keys";
    
    key <AE12> {	[	     plus,        asterisk,  SunFA_Diaeresis, SunFA_Diaeresis      ]	};
    key <AC11> {	[     SunFA_Tilde,    SunFA_Circum	]	};
    key <AD12> {	[     SunFA_Acute,     SunFA_Grave 	]	};
};

partial alphanumeric_keys 
xkb_symbols "sundeadkeys" {
    include "macintosh_vndr/pt(Sundeadkeys)" // for consistent naming
};

partial alphanumeric_keys 
xkb_symbols "nodeadkeys" {
    include "macintosh_vndr/pt(basic)" // for consistent naming
    name[Group1]= "Portugal - Mac, eliminate dead keys";

    key <AE12> {	[	     plus,        asterisk, 	 quotedbl,        quotedbl      ]	};
    key <AC11> {	[      asciitilde,     asciicircum	]	};
    key <AD12> {	[	    acute,           grave 	]	};
};
