is revision 0412cded
1154daed1Smrg// based on 2154daed1Smrg// XKB keyboard by Hrafnkell Eiriksson - hkelle@rhi.hi.is 3154daed1Smrg// fixes by Olafur Osvaldsson - oli@isnic.is 4154daed1Smrg// 50412cdedSmrg// "basic" corrected according to the Icelandic standard for keyboards, 60412cdedSmrg// IST 125:1995 (some symbols substituted by a dead diacritic). 70412cdedSmrg// Some positions are according to IST ISO/IEC 9995-3:1994 80412cdedSmrg// Added nobreakspace 9154daed1Smrg 10154daed1Smrgdefault partial alphanumeric_keys 11154daed1Smrgxkb_symbols "basic" { 12154daed1Smrg 13154daed1Smrg include "latin(type4)" 14154daed1Smrg 15bfd7cbc1Smrg name[Group1]="Icelandic"; 16154daed1Smrg 170412cdedSmrg// <AE00> = <TLDE> 18154daed1Smrg key <AE02> { [ 2, quotedbl, twosuperior, oneeighth ] }; 19154daed1Smrg key <AE04> { [ 4, dollar, onequarter, currency ] }; 20154daed1Smrg key <AE11> { [odiaeresis, Odiaeresis, backslash, questiondown ] }; 210412cdedSmrg key <AE12> { [ minus, underscore, dead_cedilla, dead_ogonek ] }; 22154daed1Smrg 23154daed1Smrg key <AD11> { [ eth, ETH, dead_diaeresis, dead_abovering ] }; 24154daed1Smrg key <AD12> { [apostrophe, question, asciitilde, dead_macron ] }; 25154daed1Smrg 26154daed1Smrg key <AC10> { [ ae, AE, asciicircum, dead_doubleacute ] }; 270412cdedSmrg key <AC11> { [dead_acute, dead_acute, dead_circumflex, dead_caron ] }; 280412cdedSmrg key <TLDE> { [dead_abovering, dead_diaeresis, notsign, hyphen ] }; 29154daed1Smrg 300412cdedSmrg// <AC12> = <BKSL> 310412cdedSmrg key <BKSL> { [ plus, asterisk, grave, dead_breve ] }; 320412cdedSmrg 330412cdedSmrg// <AB00> = <LSGT>, is in file "pc": pc105 34154daed1Smrg key <AB10> { [ thorn, THORN, dead_belowdot, dead_abovedot ] }; 35154daed1Smrg 360412cdedSmrg key <SPCE> { [ space, space, nobreakspace, nobreakspace ] }; 370412cdedSmrg 38154daed1Smrg include "level3(ralt_switch)" 39154daed1Smrg}; 40154daed1Smrg 41154daed1Smrgpartial alphanumeric_keys 42154daed1Smrgxkb_symbols "Sundeadkeys" { 43154daed1Smrg 44154daed1Smrg // modify the basic Icelandic layout to use Sun dead keys 45154daed1Smrg 46154daed1Smrg include "is(basic)" 47154daed1Smrg 48bfd7cbc1Smrg name[Group1]="Icelandic (Sun dead keys)"; 49154daed1Smrg 50c067fea9Sghen key <TLDE> { [dead_circumflex, degree, notsign, notsign ] }; 51c067fea9Sghen key <AE12> { [dead_acute, dead_grave, dead_cedilla, dead_cedilla ] }; 52c067fea9Sghen key <AD11> { [udiaeresis, Udiaeresis, dead_diaeresis, dead_diaeresis ] }; 53c067fea9Sghen key <AD12> { [ plus, asterisk, dead_tilde, dead_macron ] }; 54c067fea9Sghen key <AC10> { [odiaeresis, Odiaeresis, dead_acute, dead_acute ] }; 55c067fea9Sghen key <AC11> { [adiaeresis, Adiaeresis, dead_circumflex, dead_circumflex ] }; 56c067fea9Sghen key <BKSL> { [numbersign, acute, dead_grave, dead_grave ] }; 57154daed1Smrg}; 58154daed1Smrg 59154daed1Smrgpartial alphanumeric_keys 60154daed1Smrgxkb_symbols "nodeadkeys" { 61154daed1Smrg 62154daed1Smrg // modify the basic Icelandic layout to not have any dead keys 63154daed1Smrg 64154daed1Smrg include "is(basic)" 65154daed1Smrg 66bfd7cbc1Smrg name[Group1]="Icelandic (eliminate dead keys)"; 67154daed1Smrg 68154daed1Smrg key <TLDE> { [asciicircum, degree, notsign, notsign ] }; 69154daed1Smrg key <AE12> { [apostrophe, grave, cedilla, cedilla ] }; 70154daed1Smrg key <AD11> { [udiaeresis, Udiaeresis, diaeresis, diaeresis ] }; 71154daed1Smrg key <AD12> { [ plus, asterisk, asciitilde, macron ] }; 72154daed1Smrg key <AC10> { [odiaeresis, Odiaeresis, acute, acute ] }; 73154daed1Smrg key <AC11> { [adiaeresis, Adiaeresis, asciicircum, asciicircum ] }; 74154daed1Smrg key <BKSL> { [numbersign, acute, grave, grave ] }; 75154daed1Smrg key <AB10> { [ thorn, THORN, dead_belowdot, abovedot ] }; 76154daed1Smrg}; 77154daed1Smrg 78154daed1Smrg// Copyright (C) 2004, 2006 Ævar Arnfjörð Bjarmason <avarab@gmail.com> 79154daed1Smrg// 80154daed1Smrg// = HISTORY 81154daed1Smrg// * 2004-09-28: 82154daed1Smrg// Initial cleanroom writing of the keymap, I just booted Mac OS X, opened 83154daed1Smrg// TextEdit.app and wrote down what the value produced by each key was when I 84154daed1Smrg// pressed it, a for a, A for shift + a, å for lalt + a etc and made the 85154daed1Smrg// keymap from that information 86154daed1Smrg// 87154daed1Smrg// * 2006-01-14: 88154daed1Smrg// Revised the comments in the file 89154daed1Smrg// 90154daed1Smrg// = NOTES 91154daed1Smrg// * 20 characters in this keymap have no named character defined in 92154daed1Smrg// include/keysymdef.h and as a result their Unicode code points in 93154daed1Smrg// hexadecimal are listed here, these can be generated with the following 94154daed1Smrg// perl command: 95154daed1Smrg// $ perl -CA -e 'printf "U%x\n", ord shift' Æ 96154daed1Smrg// and converted back like: 97154daed1Smrg// $ perl -CO -le '$_=shift;s/[^a-f0-9]//ig;print chr hex' Uc6 98154daed1Smrg// * The Apple logo appears twice on this keymap like the Mac OS and Mac OS X 99154daed1Smrg// keymaps. In the MacRoman encoding it has the code point 0xF0 (240) but it 100154daed1Smrg// has no assigned code point in Unicode, the code point Apple uses for it is 101154daed1Smrg// U+F8FF (63743) which is in the BMP's Private Use Area (U+E000–U+F8FF) 102154daed1Smrg// * This keymap has only been tested on a PowerBook6,5 (iBook G4) but it 103154daed1Smrg// should work on other Apple laptop models which use the same keyboard 104154daed1Smrg// layout. It will probably work on standard sized keyboards with little or 105154daed1Smrg// no modification but it might not support them fully, please report if 106154daed1Smrg// you're able to get it running with such a keyboard 107154daed1Smrg 108154daed1Smrg// Copied from macintosh_vndr/is 109154daed1Smrgpartial alphanumeric_keys 110154daed1Smrgxkb_symbols "mac" { 111bfd7cbc1Smrg name[Group1]= "Icelandic (Macintosh)"; 112154daed1Smrg 113154daed1Smrg //-- Row 5 (E) --// 114154daed1Smrg key <TLDE> { [ sterling, section, UF8FF, apostrophe ] }; 115154daed1Smrg key <AE01> { [ 1, exclam, exclamdown, VoidSymbol ] }; 116154daed1Smrg key <AE02> { [ 2, quotedbl, at, VoidSymbol ] }; 117154daed1Smrg key <AE03> { [ 3, numbersign, U2122, sterling ] }; 118154daed1Smrg key <AE04> { [ 4, dollar, U00A2, EuroSign ] }; 119154daed1Smrg key <AE05> { [ 5, percent, U2030, infinity ] }; 120154daed1Smrg key <AE06> { [ 6, ampersand, asciicircum, U2044 ] }; 121154daed1Smrg key <AE07> { [ 7, slash, backslash, U00F7 ] }; 122154daed1Smrg key <AE08> { [ 8, parenleft, bracketleft, braceleft ] }; 123154daed1Smrg key <AE09> { [ 9, parenright, bracketright, braceright ] }; 124154daed1Smrg key <AE10> { [ 0, equal, U2260, U2248 ] }; 125154daed1Smrg key <AE11> { [ odiaeresis, Odiaeresis, oslash, Ooblique ] }; 126154daed1Smrg key <AE12> { [ minus, underscore, endash, emdash ] }; 127154daed1Smrg 128154daed1Smrg 129154daed1Smrg //-- Row 4 (D) --// 130154daed1Smrg key <AD01> { [ q, Q, paragraph, VoidSymbol ] }; 131154daed1Smrg key <AD02> { [ w, W, U2211, VoidSymbol ] }; 132154daed1Smrg key <AD03> { [ e, E, dead_grave, VoidSymbol ] }; 133154daed1Smrg key <AD04> { [ r, R, registered, VoidSymbol ] }; 134154daed1Smrg key <AD05> { [ t, T, degree, VoidSymbol ] }; 135154daed1Smrg key <AD06> { [ y, Y, yen, VoidSymbol ] }; 136154daed1Smrg key <AD07> { [ u, U, dead_diaeresis, VoidSymbol ] }; 137154daed1Smrg key <AD08> { [ i, I, U0131, U00AA ] }; 138154daed1Smrg key <AD09> { [ o, O, dead_circumflex,U00BA ] }; 139154daed1Smrg key <AD10> { [ p, P, Greek_pi, Greek_PI ] }; 140154daed1Smrg key <AD11> { [ eth, Eth, U201e, U201c ] }; 141154daed1Smrg key <AD12> { [ apostrophe, question, questiondown, U00B7 ] }; 142154daed1Smrg 143154daed1Smrg 144154daed1Smrg //-- Row 3 (C) --// 145154daed1Smrg key <AC01> { [ a, A, aring, Aring ] }; 146154daed1Smrg key <AC02> { [ s, S, ssharp, abovedot ] }; 147154daed1Smrg key <AC03> { [ d, D, U2202, U2DA ] }; 148154daed1Smrg key <AC04> { [ f, F, U192, macron ] }; 149154daed1Smrg key <AC05> { [ g, G, copyright, breve ] }; 150154daed1Smrg key <AC06> { [ h, H, bar, VoidSymbol ] }; 151154daed1Smrg key <AC07> { [ j, J, U2206, U2dd ] }; 152154daed1Smrg key <AC08> { [ k, K, U00AC, VoidSymbol ] }; 153154daed1Smrg key <AC09> { [ l, L, U2026, caron ] }; 154154daed1Smrg key <AC10> { [ ae, AE, oe, OE ] }; 155154daed1Smrg key <AC11> { [ dead_acute, dead_diaeresis, U201A, U2018 ] }; 156154daed1Smrg key <BKSL> { [ plus, asterisk, U2022, plusminus ] }; 157154daed1Smrg 158154daed1Smrg 159154daed1Smrg //-- Row 2 (B) --// 160154daed1Smrg key <LSGT> { [ less, greater, section, UF8FF ] }; 161154daed1Smrg key <AB01> { [ z, Z, U3A9, VoidSymbol ] }; 162154daed1Smrg key <AB02> { [ x, X, asciitilde, VoidSymbol ] }; 163154daed1Smrg key <AB03> { [ c, C, ccedilla, Ccedilla ] }; 164154daed1Smrg key <AB04> { [ v, V, U221A, U25CA ] }; 165154daed1Smrg key <AB05> { [ b, B, U222B, VoidSymbol ] }; 166154daed1Smrg key <AB06> { [ n, N, dead_tilde, VoidSymbol ] }; 167154daed1Smrg key <AB07> { [ m, M, U00B5, VoidSymbol ] }; 168154daed1Smrg key <AB08> { [ comma, semicolon, lessthanequal, guillemotleft ] }; 169154daed1Smrg key <AB09> { [ period, colon, greaterthanequal,guillemotright ] }; 170154daed1Smrg key <AB10> { [ thorn, Thorn, U2019, U201d ] }; 171154daed1Smrg 172154daed1Smrg include "level3(ralt_switch)" 173154daed1Smrg}; 174154daed1Smrg 1755a35480eSmrg// This is a modified version of the English Dvorak layout that allows 1765a35480eSmrg// you to type all Icelandic letters under X. It's not a full attempt at 1775a35480eSmrg// nationalizing the layout as e.g. the Norwegian, Swedish and French 1785a35480eSmrg// layouts which modify the primary keys of the basic Dvorak layout 1795a35480eSmrg// extensively. 1805a35480eSmrg 1815a35480eSmrg// Rather it's a simple modification of 5 keys of the US Dvorak layout, 1825a35480eSmrg// it adds Germanic/Icelandic style quotation marks („“), eth (ðÐ), ae 18347fb91feSmrg// (æÆ), endash and emdash (–—), thorn (þÞ), EuroSign (€) and the German 18447fb91feSmrg// Sharp S (ßẞ). These keys aren't used in the US version, making the 18547fb91feSmrg// Icelandic version a superset of it. 1865a35480eSmrg 1875a35480eSmrg// Maybe someone else will make a "full" attempt at an Icelandic layout 1885a35480eSmrg// but I was mostly interested in continuing to type English comfortably 1895a35480eSmrg// as a primary function while being able to type the full Icelandic 1905a35480eSmrg// alphabet as a secondary function. 19147fb91feSmrg// -- Ævar Arnfjörð Bjarmason <avarab@gmail.com> 1925a35480eSmrg 1935a35480eSmrg// Icelandic Dvorak 1945a35480eSmrgpartial alphanumeric_keys 1955a35480eSmrgxkb_symbols "dvorak" { 196bfd7cbc1Smrg name[Group1]= "Icelandic (Dvorak)"; 1975a35480eSmrg 1985a35480eSmrg include "us(dvorak)" 19947fb91feSmrg include "eurosign(4)" 2005a35480eSmrg 2015a35480eSmrg key <AD11> { [ slash, question, U201e, U201c ] }; 2025a35480eSmrg key <AC06> { [ d, D, eth, ETH ] }; 2035a35480eSmrg key <AC10> { [ s, S, ae, AE ] }; 2045a35480eSmrg key <AC11> { [ minus, underscore, endash, emdash ] }; 2055a35480eSmrg key <AB10> { [ z, Z, thorn, Thorn ] }; 20647fb91feSmrg key <AB06> { [ b, B, ssharp, U1E9E ] }; 2075a35480eSmrg 2085a35480eSmrg include "level3(ralt_switch)" 2095a35480eSmrg}; 210