vn revision bb3a541c
1// Vietnamese keyboard layout, somehow based on TCVN 5712:1993. 2// Originally by Le Hong Boi <le.hong.boi@bigfoot.com> 3// August 1999 4// Further modified by Ashley Clark <aclark@debian.org> 5// July 2000 for X 4.0 6// Changed accents into combining marks by Samuel Thibault <samuel.thibault@ens-lyon.org> 7// July 2009 8 9default partial alphanumeric_keys 10xkb_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@gallai.re> 40 41partial alphanumeric_keys 42xkb_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@gallai.re> 67 68partial alphanumeric_keys 69xkb_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 AÐERTY (60s typewriters adaptation) 94// 95// Copyright (C) 2018, Florent Gallaire Phong <f@gallai.re> 96 97partial alphanumeric_keys 98xkb_symbols "aderty" { 99 100 include "fr(basic)" 101 102 name[Group1]="Vietnamese (AÐERTY)"; 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 QĐERTY (AĐERTY qwertification) 120// 121// Copyright (C) 2018, Florent Gallaire Phong <f@gallai.re> 122 123partial alphanumeric_keys 124xkb_symbols "qderty" { 125 126 include "us(euro)" 127 name[Group1]= "Vietnamese (QĐERTY)"; 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