Home | History | Annotate | Line # | Download | only in symbols
vn revision 1.1.1.8
      1 // Vietnamese keyboard layout, somehow based on TCVN 5712:1993.
      2 // Originally by Le Hong Boi <le.hong.boi (a] bigfoot.com>
      3 // August 1999
      4 // Further modified by Ashley Clark <aclark (a] debian.org>
      5 // July 2000 for X 4.0
      6 // Changed accents into combining marks by Samuel Thibault <samuel.thibault (a] ens-lyon.org>
      7 // July 2009
      8 
      9 default partial alphanumeric_keys
     10 xkb_symbols "basic" {
     11 
     12     include "us"
     13 
     14     name[Group1]= "Vietnamese";
     15 
     16     key <TLDE> { [	   grave, 	asciitilde	] };
     17     key <AE01> { [	   abreve,	Abreve		] };
     18     key <AE02> { [	   acircumflex,  Acircumflex	] };
     19     key <AE03> { [	   ecircumflex,	Ecircumflex	] };
     20     key <AE04> { [	   ocircumflex,	Ocircumflex	] };
     21     key <AE05> { [	   0x1000300,	percent,	dead_grave,	percent		] };
     22     key <AE06> { [	   0x1000309,	asciicircum,	dead_hook,	asciicircum	] };
     23     key <AE07> { [	   0x1000303,	ampersand,	dead_tilde,	ampersand	] };
     24     key <AE08> { [	   0x1000301,	asterisk,	dead_acute,	asterisk	] };
     25     key <AE09> { [	   0x1000323,	parenleft,	dead_belowdot,	parenleft	] };
     26     key <AE10> { [	   dstroke,	Dstroke		] };
     27     key <AE11> { [     minus, underscore  ]	};
     28     key <AE12> { [     DongSign, plus ]	};
     29 
     30     key <AD11> { [ uhorn,	Uhorn	] };
     31     key <AD12> { [ ohorn,	Ohorn	] };
     32 
     33     include "level3(ralt_switch)"
     34 };
     35 
     36 
     37 // US keyboard made Vietnamese
     38 //
     39 // Copyright (C) 2018, Florent Gallaire Phong <f (a] gallai.re>
     40 
     41 partial alphanumeric_keys
     42 xkb_symbols "us" {
     43 
     44     include "us(euro)"
     45     name[Group1]= "Vietnamese (US)";
     46 
     47     key <TLDE> { [dead_grave, dead_tilde,              grave,          asciitilde ] };
     48     key <AE04> { [         4,     dollar,           DongSign,            currency ] }; //  
     49 
     50     key <AD03> { [         e,          E,        ecircumflex,         Ecircumflex ] }; //  
     51     key <AD07> { [         u,          U,              uhorn,               Uhorn ] }; //  
     52     key <AD09> { [         o,          O,        ocircumflex,         Ocircumflex ] }; //  
     53     key <AD10> { [         p,          P,              ohorn,               Ohorn ] }; //  
     54 
     55     key <AC01> { [         a,          A,        acircumflex,         Acircumflex ] }; //  
     56     key <AC02> { [         s,          S,             abreve,              Abreve ] }; //  
     57     key <AC03> { [         d,          D,            dstroke,             Dstroke ] }; //  
     58     key <AC11> { [dead_acute,   quotedbl,         apostrophe ] };
     59 
     60     key <AB09> { [dead_belowdot, greater,             period ] };
     61     key <AB10> { [ dead_hook,   question,              slash ] };
     62 };
     63 
     64 // French keyboard made Vietnamese
     65 //
     66 // Copyright (C) 2018, Florent Gallaire Phong <f (a] gallai.re>
     67 
     68 partial alphanumeric_keys
     69 xkb_symbols "fr" {
     70 
     71     include "fr(basic)"
     72 
     73     name[Group1]="Vietnamese (French)";
     74 
     75     key <AE02> { [dead_tilde,          2,             eacute,          asciitilde ] };
     76     key <AE04> { [dead_acute,          4,         apostrophe,           braceleft ] };
     77     key <AE07> { [dead_grave,          7,             egrave,               grave ] };
     78 
     79     key <AD01> { [         a,          A,             abreve,              Abreve ] }; //  
     80     key <AD07> { [         u,          U,              uhorn,               Uhorn ] }; //  
     81     key <AD09> { [         o,          O,              ohorn,               Ohorn ] }; //  
     82     key <AD12> { [    dollar,   sterling,           DongSign,            currency ] }; //  
     83 
     84     key <AC03> { [         d,          D,            dstroke,             Dstroke ] }; //  
     85 
     86     key <AB07> { [ dead_hook,   question,          comma ] };
     87     key <AB08> { [dead_belowdot,  period,      semicolon ] };
     88 };
     89 
     90 
     91 // EXTRAS:
     92 
     93 // Vietnamese AERTY (60s typewriters adaptation)
     94 //
     95 // Copyright (C) 2018, Florent Gallaire Phong <f (a] gallai.re>
     96 
     97 partial alphanumeric_keys
     98 xkb_symbols "aderty" {
     99 
    100     include "fr(basic)"
    101 
    102     name[Group1]="Vietnamese (AERTY)";
    103 
    104     key <AE02> { [dead_tilde,          2,             eacute,          asciitilde ] };
    105     key <AE04> { [dead_acute,          4,         apostrophe,           braceleft ] };
    106     key <AE07> { [dead_grave,          7,             egrave,               grave ] };
    107 
    108     key <AD02> { [   dstroke,    Dstroke,                  z,                   Z ] }; //  
    109     key <AD12> { [    dollar,   sterling,           DongSign,            currency ] }; //  
    110 
    111     key <AC04> { [     uhorn,      Uhorn,                  f,                   F ] }; //  
    112     key <AC07> { [     ohorn,      Ohorn,                  j,                   J ] }; //  
    113 
    114     key <AB01> { [    abreve,     Abreve,                  w,                   W ] }; //  
    115     key <AB07> { [ dead_hook,   question,          comma ] };
    116     key <AB08> { [dead_belowdot,  period,      semicolon ] };
    117 };
    118 
    119 // Vietnamese QERTY (AERTY qwertification)
    120 //
    121 // Copyright (C) 2018, Florent Gallaire Phong <f (a] gallai.re>
    122 
    123 partial alphanumeric_keys
    124 xkb_symbols "qderty" {
    125 
    126     include "us(euro)"
    127     name[Group1]= "Vietnamese (QERTY)";
    128 
    129     key <TLDE> { [dead_grave, dead_tilde,              grave,          asciitilde ] };
    130     key <AE04> { [         4,     dollar,           DongSign,            currency ] }; //  
    131 
    132     key <AD02> { [   dstroke,    Dstroke,                  w,                   W ] }; //  
    133     key <AD03> { [         e,          E,        ecircumflex,         Ecircumflex ] }; //  
    134     key <AD09> { [         o,          O,        ocircumflex,         Ocircumflex ] }; //  
    135 
    136     key <AC01> { [         a,          A,        acircumflex,         Acircumflex ] }; //  
    137     key <AC04> { [     uhorn,      Uhorn,                  f,                   F ] }; //  
    138     key <AC07> { [     ohorn,      Ohorn,                  j,                   J ] }; //  
    139     key <AC11> { [dead_acute,   quotedbl,         apostrophe ] };
    140 
    141     key <AB01> { [    abreve,     Abreve,                  z,                   Z ] }; //  
    142     key <AB09> { [dead_belowdot, greater,             period ] };
    143     key <AB10> { [ dead_hook,   question,              slash ] };
    144 };
    145