Add more unicode to us(dvp) layout.
authorMichal Nazarewicz <mina86@mina86.com>
Sun, 10 Nov 2013 17:09:48 +0000 (18:09 +0100)
committerSergey Udaltsov <sergey.udaltsov@gmail.com>
Sun, 17 Nov 2013 01:14:45 +0000 (01:14 +0000)
This commit adds the following definitions to the alternative group of
the us(dvp) layout:

  Shift+AC11  is en dash      mnemonic: <EC11> is -
  Shift+AD02  is ...          was: dead caron  mnemonic: <AD02> is ,
  Shift+AE11  is reverse interrobang  mnemonic: <AE11> is !
  Shift+AD11  is interrobang  mnemonic: Shift+<AD11> is ?

  Shift+AB07  is micro        mnemonic: <AB07> is m

Note about ellipsis which replace existing dead caron:

  The us(dvp) inherited some definitions from us(dvorak) simply because
  it omitted definition of all 4 levels for given key:

    key <AD02> { [ comma,           less,           guillemotleft               ] };

  which specifies only two levels so the third and fourth happens to be
  inherited from us(dvorak)'s definitions:

    key <AD02> { [ comma, less,   dead_cedilla, dead_caron ] };

  I'm assuming that this was actually not intentional behaviour
  especially since the overwritten key is available in us(dvp) under
  another key (which make more sense):

    key <AD12> { [ at,              asciicircum,    dead_circumflex, dead_caron ] };

  Because of that, I've decided to go ahead and break that behaviour in
  favour of adding a new key.

symbols/us

index 357aea1..e0253ea 100644 (file)
@@ -567,13 +567,13 @@ xkb_symbols "dvp" {
     key <AE08> { [ parenright,      2,              onehalf                     ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
     key <AE09> { [ plus,            4                                           ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
     key <AE10> { [ bracketright,    6                                           ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
-    key <AE11> { [ exclam,          8,              exclamdown                  ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
+    key <AE11> { [ exclam,          8,              exclamdown,      U2E18      ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };  // reversed interrobang
     key <AE12> { [ numbersign,      grave,          dead_grave                  ] };
     key <BKSP> { [ BackSpace,       BackSpace                                   ] };
 
     // upper row, left side
     key <AD01> { [ semicolon,       colon,          dead_diaeresis              ] };
-    key <AD02> { [ comma,           less,           guillemotleft               ] };
+    key <AD02> { [ comma,           less,           guillemotleft,   ellipsis   ] };
     key <AD03> { [ period,          greater,        guillemotright              ] };
     key <AD04> { [ p,               P,              paragraph,       section    ] };
     key <AD05> { [ y,               Y,              udiaeresis,      Udiaeresis ] };
@@ -581,7 +581,7 @@ xkb_symbols "dvp" {
     // upper row, right side
     key <AD08> { [ c,               C,              ccedilla,        Ccedilla   ] };
     key <AD09> { [ r,               R,              registered,      trademark  ] };
-    key <AD11> { [ slash,           question,       questiondown                ] };
+    key <AD11> { [ slash,           question,       questiondown,    U203D      ] };  // interrobang
     key <AD12> { [ at,              asciicircum,    dead_circumflex, dead_caron ] };
 
     // home row, left side
@@ -596,11 +596,12 @@ xkb_symbols "dvp" {
     key <AC08> { [ t,               T,              thorn,           THORN      ] };
     key <AC09> { [ n,               N,              ntilde,          Ntilde     ] };
     key <AC10> { [ s,               S,              ssharp                      ] };
-    key <AC11> { [ minus,           underscore,     hyphen                      ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
+    key <AC11> { [ minus,           underscore,     hyphen,          endash     ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
     key <BKSL> { [ backslash,       bar                                         ] };
 
     // lower row, left side
     key <AB01> { [ apostrophe,      quotedbl,       dead_acute                  ] };
+    key <AB07> { [ m,               M,              mu                          ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
 
     include "level3(ralt_switch)"
 };