File: vn

package info (click to toggle)
xkeyboard-config 2.26-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 10,192 kB
  • sloc: sh: 4,369; makefile: 474; ansic: 433; perl: 382; ruby: 207
file content (146 lines) | stat: -rw-r--r-- 6,035 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
// based on:
// vn,  TCVN 5712:1993
// Le Hong Boi <le.hong.boi@bigfoot.com>
// August 1999
// Further modified by Ashley Clark <aclark@debian.org>
// July 2000 for X 4.0
// Fix accents into combining marks by Samuel Thibault <samuel.thibault@ens-lyon.org>
// July 2009


default  partial alphanumeric_keys
xkb_symbols "basic" {

    include "us"

    name[Group1]= "Vietnamese";

    key <TLDE> { [	   grave, 	asciitilde	] };
    key <AE01> { [	   abreve,	Abreve		] };
    key <AE02> { [	   acircumflex,  Acircumflex	] };
    key <AE03> { [	   ecircumflex,	Ecircumflex	] };
    key <AE04> { [	   ocircumflex,	Ocircumflex	] };
    key <AE05> { [	   0x1000300,	percent,	dead_grave,	percent		] };
    key <AE06> { [	   0x1000309,	asciicircum,	dead_hook,	asciicircum	] };
    key <AE07> { [	   0x1000303,	ampersand,	dead_tilde,	ampersand	] };
    key <AE08> { [	   0x1000301,	asterisk,	dead_acute,	asterisk	] };
    key <AE09> { [	   0x1000323,	parenleft,	dead_belowdot,	parenleft	] };
    key <AE10> { [	   dstroke,	Dstroke		] };
    key <AE11> { [     minus, underscore  ]	};
    key <AE12> { [     DongSign, plus ]	};

    key <AD11> { [ uhorn,	Uhorn	] };
    key <AD12> { [ ohorn,	Ohorn	] };

    include "level3(ralt_switch)"
};


// US keyboard made Vietnamese
//
// Copyright (C) 2018, Florent Gallaire Phong <f@gallai.re>

partial alphanumeric_keys
xkb_symbols "us" {

    include "us(euro)"
    name[Group1]= "Vietnamese (US, with Vietnamese letters)";

    key <TLDE> { [dead_grave, dead_tilde,              grave,          asciitilde ] };
    key <AE04> { [         4,     dollar,           DongSign,            currency ] }; // ₫ ¤

    key <AD03> { [         e,          E,        ecircumflex,         Ecircumflex ] }; // ê Ê
    key <AD07> { [         u,          U,              uhorn,               Uhorn ] }; // ư Ư
    key <AD09> { [         o,          O,        ocircumflex,         Ocircumflex ] }; // ô Ô
    key <AD10> { [         p,          P,              ohorn,               Ohorn ] }; // ơ Ơ

    key <AC01> { [         a,          A,        acircumflex,         Acircumflex ] }; // â Â
    key <AC02> { [         s,          S,             abreve,              Abreve ] }; // ă Ă
    key <AC03> { [         d,          D,            dstroke,             Dstroke ] }; // đ Đ
    key <AC11> { [dead_acute,   quotedbl,         apostrophe ] };

    key <AB09> { [dead_belowdot, greater,             period ] };
    key <AB10> { [ dead_hook,   question,              slash ] };
};

// French keyboard made Vietnamese
//
// Copyright (C) 2018, Florent Gallaire Phong <f@gallai.re>

partial alphanumeric_keys
xkb_symbols "fr" {

    include "fr(basic)"

    name[Group1]="Vietnamese (French, with Vietnamese letters)";

    key <AE02> { [dead_tilde,          2,             eacute,          asciitilde ] };
    key <AE04> { [dead_acute,          4,         apostrophe,           braceleft ] };
    key <AE07> { [dead_grave,          7,             egrave,               grave ] };

    key <AD01> { [         a,          A,             abreve,              Abreve ] }; // ă Ă
    key <AD07> { [         u,          U,              uhorn,               Uhorn ] }; // ư Ư
    key <AD09> { [         o,          O,              ohorn,               Ohorn ] }; // ơ Ơ
    key <AD12> { [    dollar,   sterling,           DongSign,            currency ] }; // ₫ ¤

    key <AC03> { [         d,          D,            dstroke,             Dstroke ] }; // đ Đ

    key <AB07> { [ dead_hook,   question,          comma ] };
    key <AB08> { [dead_belowdot,  period,      semicolon ] };
};


// EXTRAS:

// Vietnamese AÐERTY (60s typewriters adaptation)
//
// Copyright (C) 2018, Florent Gallaire Phong <f@gallai.re>

partial alphanumeric_keys
xkb_symbols "aderty" {

    include "fr(basic)"

    name[Group1]="Vietnamese (AÐERTY)";

    key <AE02> { [dead_tilde,          2,             eacute,          asciitilde ] };
    key <AE04> { [dead_acute,          4,         apostrophe,           braceleft ] };
    key <AE07> { [dead_grave,          7,             egrave,               grave ] };

    key <AD02> { [   dstroke,    Dstroke,                  z,                   Z ] }; // đ Đ
    key <AD12> { [    dollar,   sterling,           DongSign,            currency ] }; // ₫ ¤

    key <AC04> { [     uhorn,      Uhorn,                  f,                   F ] }; // ư Ư
    key <AC07> { [     ohorn,      Ohorn,                  j,                   J ] }; // ơ Ơ

    key <AB01> { [    abreve,     Abreve,                  w,                   W ] }; // ă Ă
    key <AB07> { [ dead_hook,   question,          comma ] };
    key <AB08> { [dead_belowdot,  period,      semicolon ] };
};

// Vietnamese QĐERTY (AĐERTY qwertification)
//
// Copyright (C) 2018, Florent Gallaire Phong <f@gallai.re>

partial alphanumeric_keys
xkb_symbols "qderty" {

    include "us(euro)"
    name[Group1]= "Vietnamese (QĐERTY)";

    key <TLDE> { [dead_grave, dead_tilde,              grave,          asciitilde ] };
    key <AE04> { [         4,     dollar,           DongSign,            currency ] }; // ₫ ¤

    key <AD02> { [   dstroke,    Dstroke,                  w,                   W ] }; // đ Đ
    key <AD03> { [         e,          E,        ecircumflex,         Ecircumflex ] }; // ê Ê
    key <AD09> { [         o,          O,        ocircumflex,         Ocircumflex ] }; // ô Ô

    key <AC01> { [         a,          A,        acircumflex,         Acircumflex ] }; // â Â
    key <AC04> { [     uhorn,      Uhorn,                  f,                   F ] }; // ư Ư
    key <AC07> { [     ohorn,      Ohorn,                  j,                   J ] }; // ơ Ơ
    key <AC11> { [dead_acute,   quotedbl,         apostrophe ] };

    key <AB01> { [    abreve,     Abreve,                  z,                   Z ] }; // ă Ă
    key <AB09> { [dead_belowdot, greater,             period ] };
    key <AB10> { [ dead_hook,   question,              slash ] };
};