1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/events/x/keysym_to_unicode.h"
7 // Define XK_xxx before the #include of <X11/keysym.h> so that <X11/keysym.h>
8 // defines all KeySyms we need.
32 #define XK_MATHEMATICAL
36 #include <X11/keysym.h>
39 #define XK_dead_greek 0xfe8c
42 #include "base/containers/hash_tables.h"
43 #include "base/lazy_instance.h"
44 #include "base/macros.h"
51 } g_keysym_to_unicode_table
[] = {
53 {XK_BackSpace
, 0x0008},
55 {XK_Linefeed
, 0x000a},
62 {XK_KP_Space
, 0x0020},
64 {XK_KP_Enter
, 0x000d},
65 {XK_KP_Equal
, 0x003d},
66 {XK_KP_Multiply
, 0x002a},
68 {XK_KP_Separator
, 0x002c},
69 {XK_KP_Subtract
, 0x002d},
70 {XK_KP_Decimal
, 0x002e},
71 {XK_KP_Divide
, 0x002f},
83 // Latin 1 KeySyms map 1:1 to Unicode
86 {XK_Aogonek
, 0x0104}, // LATIN CAPITAL LETTER A WITH OGONEK
87 {XK_breve
, 0x02D8}, // BREVE
88 {XK_Lstroke
, 0x0141}, // LATIN CAPITAL LETTER L WITH STROKE
89 {XK_Lcaron
, 0x013D}, // LATIN CAPITAL LETTER L WITH CARON
90 {XK_Sacute
, 0x015A}, // LATIN CAPITAL LETTER S WITH ACUTE
91 {XK_Scaron
, 0x0160}, // LATIN CAPITAL LETTER S WITH CARON
92 {XK_Scedilla
, 0x015E}, // LATIN CAPITAL LETTER S WITH CEDILLA
93 {XK_Tcaron
, 0x0164}, // LATIN CAPITAL LETTER T WITH CARON
94 {XK_Zacute
, 0x0179}, // LATIN CAPITAL LETTER Z WITH ACUTE
95 {XK_Zcaron
, 0x017D}, // LATIN CAPITAL LETTER Z WITH CARON
96 {XK_Zabovedot
, 0x017B}, // LATIN CAPITAL LETTER Z WITH DOT ABOVE
97 {XK_aogonek
, 0x0105}, // LATIN SMALL LETTER A WITH OGONEK
98 {XK_ogonek
, 0x02DB}, // OGONEK
99 {XK_lstroke
, 0x0142}, // LATIN SMALL LETTER L WITH STROKE
100 {XK_lcaron
, 0x013E}, // LATIN SMALL LETTER L WITH CARON
101 {XK_sacute
, 0x015B}, // LATIN SMALL LETTER S WITH ACUTE
102 {XK_caron
, 0x02C7}, // CARON
103 {XK_scaron
, 0x0161}, // LATIN SMALL LETTER S WITH CARON
104 {XK_scedilla
, 0x015F}, // LATIN SMALL LETTER S WITH CEDILLA
105 {XK_tcaron
, 0x0165}, // LATIN SMALL LETTER T WITH CARON
106 {XK_zacute
, 0x017A}, // LATIN SMALL LETTER Z WITH ACUTE
107 {XK_doubleacute
, 0x02DD}, // DOUBLE ACUTE ACCENT
108 {XK_zcaron
, 0x017E}, // LATIN SMALL LETTER Z WITH CARON
109 {XK_zabovedot
, 0x017C}, // LATIN SMALL LETTER Z WITH DOT ABOVE
110 {XK_Racute
, 0x0154}, // LATIN CAPITAL LETTER R WITH ACUTE
111 {XK_Abreve
, 0x0102}, // LATIN CAPITAL LETTER A WITH BREVE
112 {XK_Lacute
, 0x0139}, // LATIN CAPITAL LETTER L WITH ACUTE
113 {XK_Cacute
, 0x0106}, // LATIN CAPITAL LETTER C WITH ACUTE
114 {XK_Ccaron
, 0x010C}, // LATIN CAPITAL LETTER C WITH CARON
115 {XK_Eogonek
, 0x0118}, // LATIN CAPITAL LETTER E WITH OGONEK
116 {XK_Ecaron
, 0x011A}, // LATIN CAPITAL LETTER E WITH CARON
117 {XK_Dcaron
, 0x010E}, // LATIN CAPITAL LETTER D WITH CARON
118 {XK_Dstroke
, 0x0110}, // LATIN CAPITAL LETTER D WITH STROKE
119 {XK_Nacute
, 0x0143}, // LATIN CAPITAL LETTER N WITH ACUTE
120 {XK_Ncaron
, 0x0147}, // LATIN CAPITAL LETTER N WITH CARON
121 {XK_Odoubleacute
, 0x0150}, // LATIN CAPITAL LETTER O WITH DOUBLE ACUTE
122 {XK_Rcaron
, 0x0158}, // LATIN CAPITAL LETTER R WITH CARON
123 {XK_Uring
, 0x016E}, // LATIN CAPITAL LETTER U WITH RING ABOVE
124 {XK_Udoubleacute
, 0x0170}, // LATIN CAPITAL LETTER U WITH DOUBLE ACUTE
125 {XK_Tcedilla
, 0x0162}, // LATIN CAPITAL LETTER T WITH CEDILLA
126 {XK_racute
, 0x0155}, // LATIN SMALL LETTER R WITH ACUTE
127 {XK_abreve
, 0x0103}, // LATIN SMALL LETTER A WITH BREVE
128 {XK_lacute
, 0x013A}, // LATIN SMALL LETTER L WITH ACUTE
129 {XK_cacute
, 0x0107}, // LATIN SMALL LETTER C WITH ACUTE
130 {XK_ccaron
, 0x010D}, // LATIN SMALL LETTER C WITH CARON
131 {XK_eogonek
, 0x0119}, // LATIN SMALL LETTER E WITH OGONEK
132 {XK_ecaron
, 0x011B}, // LATIN SMALL LETTER E WITH CARON
133 {XK_dcaron
, 0x010F}, // LATIN SMALL LETTER D WITH CARON
134 {XK_dstroke
, 0x0111}, // LATIN SMALL LETTER D WITH STROKE
135 {XK_nacute
, 0x0144}, // LATIN SMALL LETTER N WITH ACUTE
136 {XK_ncaron
, 0x0148}, // LATIN SMALL LETTER N WITH CARON
137 {XK_odoubleacute
, 0x0151}, // LATIN SMALL LETTER O WITH DOUBLE ACUTE
138 {XK_rcaron
, 0x0159}, // LATIN SMALL LETTER R WITH CARON
139 {XK_uring
, 0x016F}, // LATIN SMALL LETTER U WITH RING ABOVE
140 {XK_udoubleacute
, 0x0171}, // LATIN SMALL LETTER U WITH DOUBLE ACUTE
141 {XK_tcedilla
, 0x0163}, // LATIN SMALL LETTER T WITH CEDILLA
142 {XK_abovedot
, 0x02D9}, // DOT ABOVE
145 {XK_Hstroke
, 0x0126}, // LATIN CAPITAL LETTER H WITH STROKE
146 {XK_Hcircumflex
, 0x0124}, // LATIN CAPITAL LETTER H WITH CIRCUMFLEX
147 {XK_Iabovedot
, 0x0130}, // LATIN CAPITAL LETTER I WITH DOT ABOVE
148 {XK_Gbreve
, 0x011E}, // LATIN CAPITAL LETTER G WITH BREVE
149 {XK_Jcircumflex
, 0x0134}, // LATIN CAPITAL LETTER J WITH CIRCUMFLEX
150 {XK_hstroke
, 0x0127}, // LATIN SMALL LETTER H WITH STROKE
151 {XK_hcircumflex
, 0x0125}, // LATIN SMALL LETTER H WITH CIRCUMFLEX
152 {XK_idotless
, 0x0131}, // LATIN SMALL LETTER DOTLESS I
153 {XK_gbreve
, 0x011F}, // LATIN SMALL LETTER G WITH BREVE
154 {XK_jcircumflex
, 0x0135}, // LATIN SMALL LETTER J WITH CIRCUMFLEX
155 {XK_Cabovedot
, 0x010A}, // LATIN CAPITAL LETTER C WITH DOT ABOVE
156 {XK_Ccircumflex
, 0x0108}, // LATIN CAPITAL LETTER C WITH CIRCUMFLEX
157 {XK_Gabovedot
, 0x0120}, // LATIN CAPITAL LETTER G WITH DOT ABOVE
158 {XK_Gcircumflex
, 0x011C}, // LATIN CAPITAL LETTER G WITH CIRCUMFLEX
159 {XK_Ubreve
, 0x016C}, // LATIN CAPITAL LETTER U WITH BREVE
160 {XK_Scircumflex
, 0x015C}, // LATIN CAPITAL LETTER S WITH CIRCUMFLEX
161 {XK_cabovedot
, 0x010B}, // LATIN SMALL LETTER C WITH DOT ABOVE
162 {XK_ccircumflex
, 0x0109}, // LATIN SMALL LETTER C WITH CIRCUMFLEX
163 {XK_gabovedot
, 0x0121}, // LATIN SMALL LETTER G WITH DOT ABOVE
164 {XK_gcircumflex
, 0x011D}, // LATIN SMALL LETTER G WITH CIRCUMFLEX
165 {XK_ubreve
, 0x016D}, // LATIN SMALL LETTER U WITH BREVE
166 {XK_scircumflex
, 0x015D}, // LATIN SMALL LETTER S WITH CIRCUMFLEX
169 {XK_kra
, 0x0138}, // LATIN SMALL LETTER KRA
170 {XK_Rcedilla
, 0x0156}, // LATIN CAPITAL LETTER R WITH CEDILLA
171 {XK_Itilde
, 0x0128}, // LATIN CAPITAL LETTER I WITH TILDE
172 {XK_Lcedilla
, 0x013B}, // LATIN CAPITAL LETTER L WITH CEDILLA
173 {XK_Emacron
, 0x0112}, // LATIN CAPITAL LETTER E WITH MACRON
174 {XK_Gcedilla
, 0x0122}, // LATIN CAPITAL LETTER G WITH CEDILLA
175 {XK_Tslash
, 0x0166}, // LATIN CAPITAL LETTER T WITH STROKE
176 {XK_rcedilla
, 0x0157}, // LATIN SMALL LETTER R WITH CEDILLA
177 {XK_itilde
, 0x0129}, // LATIN SMALL LETTER I WITH TILDE
178 {XK_lcedilla
, 0x013C}, // LATIN SMALL LETTER L WITH CEDILLA
179 {XK_emacron
, 0x0113}, // LATIN SMALL LETTER E WITH MACRON
180 {XK_gcedilla
, 0x0123}, // LATIN SMALL LETTER G WITH CEDILLA
181 {XK_tslash
, 0x0167}, // LATIN SMALL LETTER T WITH STROKE
182 {XK_ENG
, 0x014A}, // LATIN CAPITAL LETTER ENG
183 {XK_eng
, 0x014B}, // LATIN SMALL LETTER ENG
184 {XK_Amacron
, 0x0100}, // LATIN CAPITAL LETTER A WITH MACRON
185 {XK_Iogonek
, 0x012E}, // LATIN CAPITAL LETTER I WITH OGONEK
186 {XK_Eabovedot
, 0x0116}, // LATIN CAPITAL LETTER E WITH DOT ABOVE
187 {XK_Imacron
, 0x012A}, // LATIN CAPITAL LETTER I WITH MACRON
188 {XK_Ncedilla
, 0x0145}, // LATIN CAPITAL LETTER N WITH CEDILLA
189 {XK_Omacron
, 0x014C}, // LATIN CAPITAL LETTER O WITH MACRON
190 {XK_Kcedilla
, 0x0136}, // LATIN CAPITAL LETTER K WITH CEDILLA
191 {XK_Uogonek
, 0x0172}, // LATIN CAPITAL LETTER U WITH OGONEK
192 {XK_Utilde
, 0x0168}, // LATIN CAPITAL LETTER U WITH TILDE
193 {XK_Umacron
, 0x016A}, // LATIN CAPITAL LETTER U WITH MACRON
194 {XK_amacron
, 0x0101}, // LATIN SMALL LETTER A WITH MACRON
195 {XK_iogonek
, 0x012F}, // LATIN SMALL LETTER I WITH OGONEK
196 {XK_eabovedot
, 0x0117}, // LATIN SMALL LETTER E WITH DOT ABOVE
197 {XK_imacron
, 0x012B}, // LATIN SMALL LETTER I WITH MACRON
198 {XK_ncedilla
, 0x0146}, // LATIN SMALL LETTER N WITH CEDILLA
199 {XK_omacron
, 0x014D}, // LATIN SMALL LETTER O WITH MACRON
200 {XK_kcedilla
, 0x0137}, // LATIN SMALL LETTER K WITH CEDILLA
201 {XK_uogonek
, 0x0173}, // LATIN SMALL LETTER U WITH OGONEK
202 {XK_utilde
, 0x0169}, // LATIN SMALL LETTER U WITH TILDE
203 {XK_umacron
, 0x016B}, // LATIN SMALL LETTER U WITH MACRON
205 // Latin 8 KeySyms map 1:1 to Unicode
208 {XK_OE
, 0x0152}, // LATIN CAPITAL LIGATURE OE
209 {XK_oe
, 0x0153}, // LATIN SMALL LIGATURE OE
210 {XK_Ydiaeresis
, 0x0178}, // LATIN CAPITAL LETTER Y WITH DIAERESIS
213 {XK_overline
, 0x203E}, // OVERLINE
214 {XK_kana_fullstop
, 0x3002}, // IDEOGRAPHIC FULL STOP
215 {XK_kana_openingbracket
, 0x300C}, // LEFT CORNER BRACKET
216 {XK_kana_closingbracket
, 0x300D}, // RIGHT CORNER BRACKET
217 {XK_kana_comma
, 0x3001}, // IDEOGRAPHIC COMMA
218 {XK_kana_conjunctive
, 0x30FB}, // KATAKANA MIDDLE DOT
219 {XK_kana_WO
, 0x30F2}, // KATAKANA LETTER WO
220 {XK_kana_a
, 0x30A1}, // KATAKANA LETTER SMALL A
221 {XK_kana_i
, 0x30A3}, // KATAKANA LETTER SMALL I
222 {XK_kana_u
, 0x30A5}, // KATAKANA LETTER SMALL U
223 {XK_kana_e
, 0x30A7}, // KATAKANA LETTER SMALL E
224 {XK_kana_o
, 0x30A9}, // KATAKANA LETTER SMALL O
225 {XK_kana_ya
, 0x30E3}, // KATAKANA LETTER SMALL YA
226 {XK_kana_yu
, 0x30E5}, // KATAKANA LETTER SMALL YU
227 {XK_kana_yo
, 0x30E7}, // KATAKANA LETTER SMALL YO
228 {XK_kana_tsu
, 0x30C3}, // KATAKANA LETTER SMALL TU
229 {XK_prolongedsound
, 0x30FC}, // KATAKANA-HIRAGANA PROLONGED SOUND MARK
230 {XK_kana_A
, 0x30A2}, // KATAKANA LETTER A
231 {XK_kana_I
, 0x30A4}, // KATAKANA LETTER I
232 {XK_kana_U
, 0x30A6}, // KATAKANA LETTER U
233 {XK_kana_E
, 0x30A8}, // KATAKANA LETTER E
234 {XK_kana_O
, 0x30AA}, // KATAKANA LETTER O
235 {XK_kana_KA
, 0x30AB}, // KATAKANA LETTER KA
236 {XK_kana_KI
, 0x30AD}, // KATAKANA LETTER KI
237 {XK_kana_KU
, 0x30AF}, // KATAKANA LETTER KU
238 {XK_kana_KE
, 0x30B1}, // KATAKANA LETTER KE
239 {XK_kana_KO
, 0x30B3}, // KATAKANA LETTER KO
240 {XK_kana_SA
, 0x30B5}, // KATAKANA LETTER SA
241 {XK_kana_SHI
, 0x30B7}, // KATAKANA LETTER SI
242 {XK_kana_SU
, 0x30B9}, // KATAKANA LETTER SU
243 {XK_kana_SE
, 0x30BB}, // KATAKANA LETTER SE
244 {XK_kana_SO
, 0x30BD}, // KATAKANA LETTER SO
245 {XK_kana_TA
, 0x30BF}, // KATAKANA LETTER TA
246 {XK_kana_CHI
, 0x30C1}, // KATAKANA LETTER TI
247 {XK_kana_TSU
, 0x30C4}, // KATAKANA LETTER TU
248 {XK_kana_TE
, 0x30C6}, // KATAKANA LETTER TE
249 {XK_kana_TO
, 0x30C8}, // KATAKANA LETTER TO
250 {XK_kana_NA
, 0x30CA}, // KATAKANA LETTER NA
251 {XK_kana_NI
, 0x30CB}, // KATAKANA LETTER NI
252 {XK_kana_NU
, 0x30CC}, // KATAKANA LETTER NU
253 {XK_kana_NE
, 0x30CD}, // KATAKANA LETTER NE
254 {XK_kana_NO
, 0x30CE}, // KATAKANA LETTER NO
255 {XK_kana_HA
, 0x30CF}, // KATAKANA LETTER HA
256 {XK_kana_HI
, 0x30D2}, // KATAKANA LETTER HI
257 {XK_kana_FU
, 0x30D5}, // KATAKANA LETTER HU
258 {XK_kana_HE
, 0x30D8}, // KATAKANA LETTER HE
259 {XK_kana_HO
, 0x30DB}, // KATAKANA LETTER HO
260 {XK_kana_MA
, 0x30DE}, // KATAKANA LETTER MA
261 {XK_kana_MI
, 0x30DF}, // KATAKANA LETTER MI
262 {XK_kana_MU
, 0x30E0}, // KATAKANA LETTER MU
263 {XK_kana_ME
, 0x30E1}, // KATAKANA LETTER ME
264 {XK_kana_MO
, 0x30E2}, // KATAKANA LETTER MO
265 {XK_kana_YA
, 0x30E4}, // KATAKANA LETTER YA
266 {XK_kana_YU
, 0x30E6}, // KATAKANA LETTER YU
267 {XK_kana_YO
, 0x30E8}, // KATAKANA LETTER YO
268 {XK_kana_RA
, 0x30E9}, // KATAKANA LETTER RA
269 {XK_kana_RI
, 0x30EA}, // KATAKANA LETTER RI
270 {XK_kana_RU
, 0x30EB}, // KATAKANA LETTER RU
271 {XK_kana_RE
, 0x30EC}, // KATAKANA LETTER RE
272 {XK_kana_RO
, 0x30ED}, // KATAKANA LETTER RO
273 {XK_kana_WA
, 0x30EF}, // KATAKANA LETTER WA
274 {XK_kana_N
, 0x30F3}, // KATAKANA LETTER N
275 {XK_voicedsound
, 0x309B}, // KATAKANA-HIRAGANA VOICED SOUND MARK
276 {XK_semivoicedsound
, 0x309C}, // KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
278 // Arabic KeySyms partially map 1:1 to Unicode
279 {XK_Arabic_comma
, 0x060C}, // ARABIC COMMA
280 {XK_Arabic_semicolon
, 0x061B}, // ARABIC SEMICOLON
281 {XK_Arabic_question_mark
, 0x061F}, // ARABIC QUESTION MARK
282 {XK_Arabic_hamza
, 0x0621}, // ARABIC LETTER HAMZA
283 {XK_Arabic_maddaonalef
, 0x0622}, // ARABIC LETTER ALEF WITH MADDA ABOVE
284 {XK_Arabic_hamzaonalef
, 0x0623}, // ARABIC LETTER ALEF WITH HAMZA ABOVE
285 {XK_Arabic_hamzaonwaw
, 0x0624}, // ARABIC LETTER WAW WITH HAMZA ABOVE
286 {XK_Arabic_hamzaunderalef
, 0x0625}, // ARABIC LETTER ALEF WITH HAMZA BELOW
287 {XK_Arabic_hamzaonyeh
, 0x0626}, // ARABIC LETTER YEH WITH HAMZA ABOVE
288 {XK_Arabic_alef
, 0x0627}, // ARABIC LETTER ALEF
289 {XK_Arabic_beh
, 0x0628}, // ARABIC LETTER BEH
290 {XK_Arabic_tehmarbuta
, 0x0629}, // ARABIC LETTER TEH MARBUTA
291 {XK_Arabic_teh
, 0x062A}, // ARABIC LETTER TEH
292 {XK_Arabic_theh
, 0x062B}, // ARABIC LETTER THEH
293 {XK_Arabic_jeem
, 0x062C}, // ARABIC LETTER JEEM
294 {XK_Arabic_hah
, 0x062D}, // ARABIC LETTER HAH
295 {XK_Arabic_khah
, 0x062E}, // ARABIC LETTER KHAH
296 {XK_Arabic_dal
, 0x062F}, // ARABIC LETTER DAL
297 {XK_Arabic_thal
, 0x0630}, // ARABIC LETTER THAL
298 {XK_Arabic_ra
, 0x0631}, // ARABIC LETTER REH
299 {XK_Arabic_zain
, 0x0632}, // ARABIC LETTER ZAIN
300 {XK_Arabic_seen
, 0x0633}, // ARABIC LETTER SEEN
301 {XK_Arabic_sheen
, 0x0634}, // ARABIC LETTER SHEEN
302 {XK_Arabic_sad
, 0x0635}, // ARABIC LETTER SAD
303 {XK_Arabic_dad
, 0x0636}, // ARABIC LETTER DAD
304 {XK_Arabic_tah
, 0x0637}, // ARABIC LETTER TAH
305 {XK_Arabic_zah
, 0x0638}, // ARABIC LETTER ZAH
306 {XK_Arabic_ain
, 0x0639}, // ARABIC LETTER AIN
307 {XK_Arabic_ghain
, 0x063A}, // ARABIC LETTER GHAIN
308 {XK_Arabic_tatweel
, 0x0640}, // ARABIC TATWEEL
309 {XK_Arabic_feh
, 0x0641}, // ARABIC LETTER FEH
310 {XK_Arabic_qaf
, 0x0642}, // ARABIC LETTER QAF
311 {XK_Arabic_kaf
, 0x0643}, // ARABIC LETTER KAF
312 {XK_Arabic_lam
, 0x0644}, // ARABIC LETTER LAM
313 {XK_Arabic_meem
, 0x0645}, // ARABIC LETTER MEEM
314 {XK_Arabic_noon
, 0x0646}, // ARABIC LETTER NOON
315 {XK_Arabic_ha
, 0x0647}, // ARABIC LETTER HEH
316 {XK_Arabic_waw
, 0x0648}, // ARABIC LETTER WAW
317 {XK_Arabic_alefmaksura
, 0x0649}, // ARABIC LETTER ALEF MAKSURA
318 {XK_Arabic_yeh
, 0x064A}, // ARABIC LETTER YEH
319 {XK_Arabic_fathatan
, 0x064B}, // ARABIC FATHATAN
320 {XK_Arabic_dammatan
, 0x064C}, // ARABIC DAMMATAN
321 {XK_Arabic_kasratan
, 0x064D}, // ARABIC KASRATAN
322 {XK_Arabic_fatha
, 0x064E}, // ARABIC FATHA
323 {XK_Arabic_damma
, 0x064F}, // ARABIC DAMMA
324 {XK_Arabic_kasra
, 0x0650}, // ARABIC KASRA
325 {XK_Arabic_shadda
, 0x0651}, // ARABIC SHADDA
326 {XK_Arabic_sukun
, 0x0652}, // ARABIC SUKUN
328 // Cyrillic KeySyms partially map 1:1 to Unicode
329 {XK_Serbian_dje
, 0x0452}, // CYRILLIC SMALL LETTER DJE
330 {XK_Macedonia_gje
, 0x0453}, // CYRILLIC SMALL LETTER GJE
331 {XK_Cyrillic_io
, 0x0451}, // CYRILLIC SMALL LETTER IO
332 {XK_Ukrainian_ie
, 0x0454}, // CYRILLIC SMALL LETTER UKRAINIAN IE
333 {XK_Macedonia_dse
, 0x0455}, // CYRILLIC SMALL LETTER DZE
334 {XK_Ukrainian_i
, 0x0456}, // CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
335 {XK_Ukrainian_yi
, 0x0457}, // CYRILLIC SMALL LETTER YI
336 {XK_Cyrillic_je
, 0x0458}, // CYRILLIC SMALL LETTER JE
337 {XK_Cyrillic_lje
, 0x0459}, // CYRILLIC SMALL LETTER LJE
338 {XK_Cyrillic_nje
, 0x045A}, // CYRILLIC SMALL LETTER NJE
339 {XK_Serbian_tshe
, 0x045B}, // CYRILLIC SMALL LETTER TSHE
340 {XK_Macedonia_kje
, 0x045C}, // CYRILLIC SMALL LETTER KJE
341 {XK_Ukrainian_ghe_with_upturn
, 0x0491}, // CYRILLIC SMALL LETTER GHE WITH UPTURN
342 {XK_Byelorussian_shortu
, 0x045E}, // CYRILLIC SMALL LETTER SHORT U
343 {XK_Cyrillic_dzhe
, 0x045F}, // CYRILLIC SMALL LETTER DZHE
344 {XK_numerosign
, 0x2116}, // NUMERO SIGN
345 {XK_Serbian_DJE
, 0x0402}, // CYRILLIC CAPITAL LETTER DJE
346 {XK_Macedonia_GJE
, 0x0403}, // CYRILLIC CAPITAL LETTER GJE
347 {XK_Cyrillic_IO
, 0x0401}, // CYRILLIC CAPITAL LETTER IO
348 {XK_Ukrainian_IE
, 0x0404}, // CYRILLIC CAPITAL LETTER UKRAINIAN IE
349 {XK_Macedonia_DSE
, 0x0405}, // CYRILLIC CAPITAL LETTER DZE
350 {XK_Ukrainian_I
, 0x0406}, // CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I
351 {XK_Ukrainian_YI
, 0x0407}, // CYRILLIC CAPITAL LETTER YI
352 {XK_Cyrillic_JE
, 0x0408}, // CYRILLIC CAPITAL LETTER JE
353 {XK_Cyrillic_LJE
, 0x0409}, // CYRILLIC CAPITAL LETTER LJE
354 {XK_Cyrillic_NJE
, 0x040A}, // CYRILLIC CAPITAL LETTER NJE
355 {XK_Serbian_TSHE
, 0x040B}, // CYRILLIC CAPITAL LETTER TSHE
356 {XK_Macedonia_KJE
, 0x040C}, // CYRILLIC CAPITAL LETTER KJE
357 {XK_Ukrainian_GHE_WITH_UPTURN
, 0x0490}, // CYRILLIC CAPITAL LETTER GHE WITH UPTURN
358 {XK_Byelorussian_SHORTU
, 0x040E}, // CYRILLIC CAPITAL LETTER SHORT U
359 {XK_Cyrillic_DZHE
, 0x040F}, // CYRILLIC CAPITAL LETTER DZHE
360 {XK_Cyrillic_yu
, 0x044E}, // CYRILLIC SMALL LETTER YU
361 {XK_Cyrillic_a
, 0x0430}, // CYRILLIC SMALL LETTER A
362 {XK_Cyrillic_be
, 0x0431}, // CYRILLIC SMALL LETTER BE
363 {XK_Cyrillic_tse
, 0x0446}, // CYRILLIC SMALL LETTER TSE
364 {XK_Cyrillic_de
, 0x0434}, // CYRILLIC SMALL LETTER DE
365 {XK_Cyrillic_ie
, 0x0435}, // CYRILLIC SMALL LETTER IE
366 {XK_Cyrillic_ef
, 0x0444}, // CYRILLIC SMALL LETTER EF
367 {XK_Cyrillic_ghe
, 0x0433}, // CYRILLIC SMALL LETTER GHE
368 {XK_Cyrillic_ha
, 0x0445}, // CYRILLIC SMALL LETTER HA
369 {XK_Cyrillic_i
, 0x0438}, // CYRILLIC SMALL LETTER I
370 {XK_Cyrillic_shorti
, 0x0439}, // CYRILLIC SMALL LETTER SHORT I
371 {XK_Cyrillic_ka
, 0x043A}, // CYRILLIC SMALL LETTER KA
372 {XK_Cyrillic_el
, 0x043B}, // CYRILLIC SMALL LETTER EL
373 {XK_Cyrillic_em
, 0x043C}, // CYRILLIC SMALL LETTER EM
374 {XK_Cyrillic_en
, 0x043D}, // CYRILLIC SMALL LETTER EN
375 {XK_Cyrillic_o
, 0x043E}, // CYRILLIC SMALL LETTER O
376 {XK_Cyrillic_pe
, 0x043F}, // CYRILLIC SMALL LETTER PE
377 {XK_Cyrillic_ya
, 0x044F}, // CYRILLIC SMALL LETTER YA
378 {XK_Cyrillic_er
, 0x0440}, // CYRILLIC SMALL LETTER ER
379 {XK_Cyrillic_es
, 0x0441}, // CYRILLIC SMALL LETTER ES
380 {XK_Cyrillic_te
, 0x0442}, // CYRILLIC SMALL LETTER TE
381 {XK_Cyrillic_u
, 0x0443}, // CYRILLIC SMALL LETTER U
382 {XK_Cyrillic_zhe
, 0x0436}, // CYRILLIC SMALL LETTER ZHE
383 {XK_Cyrillic_ve
, 0x0432}, // CYRILLIC SMALL LETTER VE
384 {XK_Cyrillic_softsign
, 0x044C}, // CYRILLIC SMALL LETTER SOFT SIGN
385 {XK_Cyrillic_yeru
, 0x044B}, // CYRILLIC SMALL LETTER YERU
386 {XK_Cyrillic_ze
, 0x0437}, // CYRILLIC SMALL LETTER ZE
387 {XK_Cyrillic_sha
, 0x0448}, // CYRILLIC SMALL LETTER SHA
388 {XK_Cyrillic_e
, 0x044D}, // CYRILLIC SMALL LETTER E
389 {XK_Cyrillic_shcha
, 0x0449}, // CYRILLIC SMALL LETTER SHCHA
390 {XK_Cyrillic_che
, 0x0447}, // CYRILLIC SMALL LETTER CHE
391 {XK_Cyrillic_hardsign
, 0x044A}, // CYRILLIC SMALL LETTER HARD SIGN
392 {XK_Cyrillic_YU
, 0x042E}, // CYRILLIC CAPITAL LETTER YU
393 {XK_Cyrillic_A
, 0x0410}, // CYRILLIC CAPITAL LETTER A
394 {XK_Cyrillic_BE
, 0x0411}, // CYRILLIC CAPITAL LETTER BE
395 {XK_Cyrillic_TSE
, 0x0426}, // CYRILLIC CAPITAL LETTER TSE
396 {XK_Cyrillic_DE
, 0x0414}, // CYRILLIC CAPITAL LETTER DE
397 {XK_Cyrillic_IE
, 0x0415}, // CYRILLIC CAPITAL LETTER IE
398 {XK_Cyrillic_EF
, 0x0424}, // CYRILLIC CAPITAL LETTER EF
399 {XK_Cyrillic_GHE
, 0x0413}, // CYRILLIC CAPITAL LETTER GHE
400 {XK_Cyrillic_HA
, 0x0425}, // CYRILLIC CAPITAL LETTER HA
401 {XK_Cyrillic_I
, 0x0418}, // CYRILLIC CAPITAL LETTER I
402 {XK_Cyrillic_SHORTI
, 0x0419}, // CYRILLIC CAPITAL LETTER SHORT I
403 {XK_Cyrillic_KA
, 0x041A}, // CYRILLIC CAPITAL LETTER KA
404 {XK_Cyrillic_EL
, 0x041B}, // CYRILLIC CAPITAL LETTER EL
405 {XK_Cyrillic_EM
, 0x041C}, // CYRILLIC CAPITAL LETTER EM
406 {XK_Cyrillic_EN
, 0x041D}, // CYRILLIC CAPITAL LETTER EN
407 {XK_Cyrillic_O
, 0x041E}, // CYRILLIC CAPITAL LETTER O
408 {XK_Cyrillic_PE
, 0x041F}, // CYRILLIC CAPITAL LETTER PE
409 {XK_Cyrillic_YA
, 0x042F}, // CYRILLIC CAPITAL LETTER YA
410 {XK_Cyrillic_ER
, 0x0420}, // CYRILLIC CAPITAL LETTER ER
411 {XK_Cyrillic_ES
, 0x0421}, // CYRILLIC CAPITAL LETTER ES
412 {XK_Cyrillic_TE
, 0x0422}, // CYRILLIC CAPITAL LETTER TE
413 {XK_Cyrillic_U
, 0x0423}, // CYRILLIC CAPITAL LETTER U
414 {XK_Cyrillic_ZHE
, 0x0416}, // CYRILLIC CAPITAL LETTER ZHE
415 {XK_Cyrillic_VE
, 0x0412}, // CYRILLIC CAPITAL LETTER VE
416 {XK_Cyrillic_SOFTSIGN
, 0x042C}, // CYRILLIC CAPITAL LETTER SOFT SIGN
417 {XK_Cyrillic_YERU
, 0x042B}, // CYRILLIC CAPITAL LETTER YERU
418 {XK_Cyrillic_ZE
, 0x0417}, // CYRILLIC CAPITAL LETTER ZE
419 {XK_Cyrillic_SHA
, 0x0428}, // CYRILLIC CAPITAL LETTER SHA
420 {XK_Cyrillic_E
, 0x042D}, // CYRILLIC CAPITAL LETTER E
421 {XK_Cyrillic_SHCHA
, 0x0429}, // CYRILLIC CAPITAL LETTER SHCHA
422 {XK_Cyrillic_CHE
, 0x0427}, // CYRILLIC CAPITAL LETTER CHE
423 {XK_Cyrillic_HARDSIGN
, 0x042A}, // CYRILLIC CAPITAL LETTER HARD SIGN
426 {XK_Greek_ALPHAaccent
, 0x0386}, // GREEK CAPITAL LETTER ALPHA WITH TONOS
427 {XK_Greek_EPSILONaccent
, 0x0388}, // GREEK CAPITAL LETTER EPSILON WITH TONOS
428 {XK_Greek_ETAaccent
, 0x0389}, // GREEK CAPITAL LETTER ETA WITH TONOS
429 {XK_Greek_IOTAaccent
, 0x038A}, // GREEK CAPITAL LETTER IOTA WITH TONOS
430 {XK_Greek_IOTAdieresis
, 0x03AA}, // GREEK CAPITAL LETTER IOTA WITH DIALYTIKA
431 {XK_Greek_OMICRONaccent
, 0x038C}, // GREEK CAPITAL LETTER OMICRON WITH TONOS
432 {XK_Greek_UPSILONaccent
, 0x038E}, // GREEK CAPITAL LETTER UPSILON WITH TONOS
433 {XK_Greek_UPSILONdieresis
, 0x03AB}, // GREEK CAPITAL LETTER UPSILON WITH DIALYTIKA
434 {XK_Greek_OMEGAaccent
, 0x038F}, // GREEK CAPITAL LETTER OMEGA WITH TONOS
435 {XK_Greek_accentdieresis
, 0x0385}, // GREEK DIALYTIKA TONOS
436 {XK_Greek_horizbar
, 0x2015}, // HORIZONTAL BAR
437 {XK_Greek_alphaaccent
, 0x03AC}, // GREEK SMALL LETTER ALPHA WITH TONOS
438 {XK_Greek_epsilonaccent
, 0x03AD}, // GREEK SMALL LETTER EPSILON WITH TONOS
439 {XK_Greek_etaaccent
, 0x03AE}, // GREEK SMALL LETTER ETA WITH TONOS
440 {XK_Greek_iotaaccent
, 0x03AF}, // GREEK SMALL LETTER IOTA WITH TONOS
441 {XK_Greek_iotadieresis
, 0x03CA}, // GREEK SMALL LETTER IOTA WITH DIALYTIKA
442 {XK_Greek_iotaaccentdieresis
, 0x0390}, // GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS
443 {XK_Greek_omicronaccent
, 0x03CC}, // GREEK SMALL LETTER OMICRON WITH TONOS
444 {XK_Greek_upsilonaccent
, 0x03CD}, // GREEK SMALL LETTER UPSILON WITH TONOS
445 {XK_Greek_upsilondieresis
, 0x03CB}, // GREEK SMALL LETTER UPSILON WITH DIALYTIKA
446 {XK_Greek_upsilonaccentdieresis
, 0x03B0}, // GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS
447 {XK_Greek_omegaaccent
, 0x03CE}, // GREEK SMALL LETTER OMEGA WITH TONOS
448 {XK_Greek_ALPHA
, 0x0391}, // GREEK CAPITAL LETTER ALPHA
449 {XK_Greek_BETA
, 0x0392}, // GREEK CAPITAL LETTER BETA
450 {XK_Greek_GAMMA
, 0x0393}, // GREEK CAPITAL LETTER GAMMA
451 {XK_Greek_DELTA
, 0x0394}, // GREEK CAPITAL LETTER DELTA
452 {XK_Greek_EPSILON
, 0x0395}, // GREEK CAPITAL LETTER EPSILON
453 {XK_Greek_ZETA
, 0x0396}, // GREEK CAPITAL LETTER ZETA
454 {XK_Greek_ETA
, 0x0397}, // GREEK CAPITAL LETTER ETA
455 {XK_Greek_THETA
, 0x0398}, // GREEK CAPITAL LETTER THETA
456 {XK_Greek_IOTA
, 0x0399}, // GREEK CAPITAL LETTER IOTA
457 {XK_Greek_KAPPA
, 0x039A}, // GREEK CAPITAL LETTER KAPPA
458 {XK_Greek_LAMDA
, 0x039B}, // GREEK CAPITAL LETTER LAMDA
459 {XK_Greek_LAMBDA
, 0x039B}, // GREEK CAPITAL LETTER LAMDA
460 {XK_Greek_MU
, 0x039C}, // GREEK CAPITAL LETTER MU
461 {XK_Greek_NU
, 0x039D}, // GREEK CAPITAL LETTER NU
462 {XK_Greek_XI
, 0x039E}, // GREEK CAPITAL LETTER XI
463 {XK_Greek_OMICRON
, 0x039F}, // GREEK CAPITAL LETTER OMICRON
464 {XK_Greek_PI
, 0x03A0}, // GREEK CAPITAL LETTER PI
465 {XK_Greek_RHO
, 0x03A1}, // GREEK CAPITAL LETTER RHO
466 {XK_Greek_SIGMA
, 0x03A3}, // GREEK CAPITAL LETTER SIGMA
467 {XK_Greek_TAU
, 0x03A4}, // GREEK CAPITAL LETTER TAU
468 {XK_Greek_UPSILON
, 0x03A5}, // GREEK CAPITAL LETTER UPSILON
469 {XK_Greek_PHI
, 0x03A6}, // GREEK CAPITAL LETTER PHI
470 {XK_Greek_CHI
, 0x03A7}, // GREEK CAPITAL LETTER CHI
471 {XK_Greek_PSI
, 0x03A8}, // GREEK CAPITAL LETTER PSI
472 {XK_Greek_OMEGA
, 0x03A9}, // GREEK CAPITAL LETTER OMEGA
473 {XK_Greek_alpha
, 0x03B1}, // GREEK SMALL LETTER ALPHA
474 {XK_Greek_beta
, 0x03B2}, // GREEK SMALL LETTER BETA
475 {XK_Greek_gamma
, 0x03B3}, // GREEK SMALL LETTER GAMMA
476 {XK_Greek_delta
, 0x03B4}, // GREEK SMALL LETTER DELTA
477 {XK_Greek_epsilon
, 0x03B5}, // GREEK SMALL LETTER EPSILON
478 {XK_Greek_zeta
, 0x03B6}, // GREEK SMALL LETTER ZETA
479 {XK_Greek_eta
, 0x03B7}, // GREEK SMALL LETTER ETA
480 {XK_Greek_theta
, 0x03B8}, // GREEK SMALL LETTER THETA
481 {XK_Greek_iota
, 0x03B9}, // GREEK SMALL LETTER IOTA
482 {XK_Greek_kappa
, 0x03BA}, // GREEK SMALL LETTER KAPPA
483 {XK_Greek_lamda
, 0x03BB}, // GREEK SMALL LETTER LAMDA
484 {XK_Greek_lambda
, 0x03BB}, // GREEK SMALL LETTER LAMDA
485 {XK_Greek_mu
, 0x03BC}, // GREEK SMALL LETTER MU
486 {XK_Greek_nu
, 0x03BD}, // GREEK SMALL LETTER NU
487 {XK_Greek_xi
, 0x03BE}, // GREEK SMALL LETTER XI
488 {XK_Greek_omicron
, 0x03BF}, // GREEK SMALL LETTER OMICRON
489 {XK_Greek_pi
, 0x03C0}, // GREEK SMALL LETTER PI
490 {XK_Greek_rho
, 0x03C1}, // GREEK SMALL LETTER RHO
491 {XK_Greek_sigma
, 0x03C3}, // GREEK SMALL LETTER SIGMA
492 {XK_Greek_finalsmallsigma
, 0x03C2}, // GREEK SMALL LETTER FINAL SIGMA
493 {XK_Greek_tau
, 0x03C4}, // GREEK SMALL LETTER TAU
494 {XK_Greek_upsilon
, 0x03C5}, // GREEK SMALL LETTER UPSILON
495 {XK_Greek_phi
, 0x03C6}, // GREEK SMALL LETTER PHI
496 {XK_Greek_chi
, 0x03C7}, // GREEK SMALL LETTER CHI
497 {XK_Greek_psi
, 0x03C8}, // GREEK SMALL LETTER PSI
498 {XK_Greek_omega
, 0x03C9}, // GREEK SMALL LETTER OMEGA
501 {XK_leftradical
, 0x23B7}, // RADICAL SYMBOL BOTTOM
502 {XK_topleftradical
, 0x250C}, // BOX DRAWINGS LIGHT DOWN AND RIGHT
503 {XK_horizconnector
, 0x2500}, // BOX DRAWINGS LIGHT HORIZONTAL
504 {XK_topintegral
, 0x2320}, // TOP HALF INTEGRAL
505 {XK_botintegral
, 0x2321}, // BOTTOM HALF INTEGRAL
506 {XK_vertconnector
, 0x2502}, // BOX DRAWINGS LIGHT VERTICAL
507 {XK_topleftsqbracket
, 0x23A1}, // LEFT SQUARE BRACKET UPPER CORNER
508 {XK_botleftsqbracket
, 0x23A3}, // LEFT SQUARE BRACKET LOWER CORNER
509 {XK_toprightsqbracket
, 0x23A4}, // RIGHT SQUARE BRACKET UPPER CORNER
510 {XK_botrightsqbracket
, 0x23A6}, // RIGHT SQUARE BRACKET LOWER CORNER
511 {XK_topleftparens
, 0x239B}, // LEFT PARENTHESIS UPPER HOOK
512 {XK_botleftparens
, 0x239D}, // LEFT PARENTHESIS LOWER HOOK
513 {XK_toprightparens
, 0x239E}, // RIGHT PARENTHESIS UPPER HOOK
514 {XK_botrightparens
, 0x23A0}, // RIGHT PARENTHESIS LOWER HOOK
515 {XK_leftmiddlecurlybrace
, 0x23A8}, // LEFT CURLY BRACKET MIDDLE PIECE
516 {XK_rightmiddlecurlybrace
, 0x23AC}, // RIGHT CURLY BRACKET MIDDLE PIECE
517 {XK_lessthanequal
, 0x2264}, // LESS-THAN OR EQUAL TO
518 {XK_notequal
, 0x2260}, // NOT EQUAL TO
519 {XK_greaterthanequal
, 0x2265}, // GREATER-THAN OR EQUAL TO
520 {XK_integral
, 0x222B}, // INTEGRAL
521 {XK_therefore
, 0x2234}, // THEREFORE
522 {XK_variation
, 0x221D}, // PROPORTIONAL TO
523 {XK_infinity
, 0x221E}, // INFINITY
524 {XK_nabla
, 0x2207}, // NABLA
525 {XK_approximate
, 0x223C}, // TILDE OPERATOR
526 {XK_similarequal
, 0x2243}, // ASYMPTOTICALLY EQUAL TO
527 {XK_ifonlyif
, 0x21D4}, // LEFT RIGHT DOUBLE ARROW
528 {XK_implies
, 0x21D2}, // RIGHTWARDS DOUBLE ARROW
529 {XK_identical
, 0x2261}, // IDENTICAL TO
530 {XK_radical
, 0x221A}, // SQUARE ROOT
531 {XK_includedin
, 0x2282}, // SUBSET OF
532 {XK_includes
, 0x2283}, // SUPERSET OF
533 {XK_intersection
, 0x2229}, // INTERSECTION
534 {XK_union
, 0x222A}, // UNION
535 {XK_logicaland
, 0x2227}, // LOGICAL AND
536 {XK_logicalor
, 0x2228}, // LOGICAL OR
537 {XK_partialderivative
, 0x2202}, // PARTIAL DIFFERENTIAL
538 {XK_function
, 0x0192}, // LATIN SMALL LETTER F WITH HOOK
539 {XK_leftarrow
, 0x2190}, // LEFTWARDS ARROW
540 {XK_uparrow
, 0x2191}, // UPWARDS ARROW
541 {XK_rightarrow
, 0x2192}, // RIGHTWARDS ARROW
542 {XK_downarrow
, 0x2193}, // DOWNWARDS ARROW
545 {XK_soliddiamond
, 0x25C6}, // BLACK DIAMOND
546 {XK_checkerboard
, 0x2592}, // MEDIUM SHADE
547 {XK_ht
, 0x2409}, // SYMBOL FOR HORIZONTAL TABULATION
548 {XK_ff
, 0x240C}, // SYMBOL FOR FORM FEED
549 {XK_cr
, 0x240D}, // SYMBOL FOR CARRIAGE RETURN
550 {XK_lf
, 0x240A}, // SYMBOL FOR LINE FEED
551 {XK_nl
, 0x2424}, // SYMBOL FOR NEWLINE
552 {XK_vt
, 0x240B}, // SYMBOL FOR VERTICAL TABULATION
553 {XK_lowrightcorner
, 0x2518}, // BOX DRAWINGS LIGHT UP AND LEFT
554 {XK_uprightcorner
, 0x2510}, // BOX DRAWINGS LIGHT DOWN AND LEFT
555 {XK_upleftcorner
, 0x250C}, // BOX DRAWINGS LIGHT DOWN AND RIGHT
556 {XK_lowleftcorner
, 0x2514}, // BOX DRAWINGS LIGHT UP AND RIGHT
557 {XK_crossinglines
, 0x253C}, // BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
558 {XK_horizlinescan1
, 0x23BA}, // HORIZONTAL SCAN LINE-1
559 {XK_horizlinescan3
, 0x23BB}, // HORIZONTAL SCAN LINE-3
560 {XK_horizlinescan5
, 0x2500}, // BOX DRAWINGS LIGHT HORIZONTAL
561 {XK_horizlinescan7
, 0x23BC}, // HORIZONTAL SCAN LINE-7
562 {XK_horizlinescan9
, 0x23BD}, // HORIZONTAL SCAN LINE-9
563 {XK_leftt
, 0x251C}, // BOX DRAWINGS LIGHT VERTICAL AND RIGHT
564 {XK_rightt
, 0x2524}, // BOX DRAWINGS LIGHT VERTICAL AND LEFT
565 {XK_bott
, 0x2534}, // BOX DRAWINGS LIGHT UP AND HORIZONTAL
566 {XK_topt
, 0x252C}, // BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
567 {XK_vertbar
, 0x2502}, // BOX DRAWINGS LIGHT VERTICAL
570 {XK_emspace
, 0x2003}, // EM SPACE
571 {XK_enspace
, 0x2002}, // EN SPACE
572 {XK_em3space
, 0x2004}, // THREE-PER-EM SPACE
573 {XK_em4space
, 0x2005}, // FOUR-PER-EM SPACE
574 {XK_digitspace
, 0x2007}, // FIGURE SPACE
575 {XK_punctspace
, 0x2008}, // PUNCTUATION SPACE
576 {XK_thinspace
, 0x2009}, // THIN SPACE
577 {XK_hairspace
, 0x200A}, // HAIR SPACE
578 {XK_emdash
, 0x2014}, // EM DASH
579 {XK_endash
, 0x2013}, // EN DASH
580 {XK_signifblank
, 0x2423}, // OPEN BOX
581 {XK_ellipsis
, 0x2026}, // HORIZONTAL ELLIPSIS
582 {XK_doubbaselinedot
, 0x2025}, // TWO DOT LEADER
583 {XK_onethird
, 0x2153}, // VULGAR FRACTION ONE THIRD
584 {XK_twothirds
, 0x2154}, // VULGAR FRACTION TWO THIRDS
585 {XK_onefifth
, 0x2155}, // VULGAR FRACTION ONE FIFTH
586 {XK_twofifths
, 0x2156}, // VULGAR FRACTION TWO FIFTHS
587 {XK_threefifths
, 0x2157}, // VULGAR FRACTION THREE FIFTHS
588 {XK_fourfifths
, 0x2158}, // VULGAR FRACTION FOUR FIFTHS
589 {XK_onesixth
, 0x2159}, // VULGAR FRACTION ONE SIXTH
590 {XK_fivesixths
, 0x215A}, // VULGAR FRACTION FIVE SIXTHS
591 {XK_careof
, 0x2105}, // CARE OF
592 {XK_figdash
, 0x2012}, // FIGURE DASH
593 {XK_leftanglebracket
, 0x27E8}, // MATHEMATICAL LEFT ANGLE BRACKET
594 {XK_decimalpoint
, 0x002E}, // FULL STOP
595 {XK_rightanglebracket
, 0x27E9}, // MATHEMATICAL RIGHT ANGLE BRACKET
596 {XK_oneeighth
, 0x215B}, // VULGAR FRACTION ONE EIGHTH
597 {XK_threeeighths
, 0x215C}, // VULGAR FRACTION THREE EIGHTHS
598 {XK_fiveeighths
, 0x215D}, // VULGAR FRACTION FIVE EIGHTHS
599 {XK_seveneighths
, 0x215E}, // VULGAR FRACTION SEVEN EIGHTHS
600 {XK_trademark
, 0x2122}, // TRADE MARK SIGN
601 {XK_signaturemark
, 0x2613}, // SALTIRE
602 {XK_leftopentriangle
, 0x25C1}, // WHITE LEFT-POINTING TRIANGLE
603 {XK_rightopentriangle
, 0x25B7}, // WHITE RIGHT-POINTING TRIANGLE
604 {XK_emopencircle
, 0x25CB}, // WHITE CIRCLE
605 {XK_emopenrectangle
, 0x25AF}, // WHITE VERTICAL RECTANGLE
606 {XK_leftsinglequotemark
, 0x2018}, // LEFT SINGLE QUOTATION MARK
607 {XK_rightsinglequotemark
, 0x2019}, // RIGHT SINGLE QUOTATION MARK
608 {XK_leftdoublequotemark
, 0x201C}, // LEFT DOUBLE QUOTATION MARK
609 {XK_rightdoublequotemark
, 0x201D}, // RIGHT DOUBLE QUOTATION MARK
610 {XK_prescription
, 0x211E}, // PRESCRIPTION TAKE
611 {XK_minutes
, 0x2032}, // PRIME
612 {XK_seconds
, 0x2033}, // DOUBLE PRIME
613 {XK_latincross
, 0x271D}, // LATIN CROSS
614 {XK_filledrectbullet
, 0x25AC}, // BLACK RECTANGLE
615 {XK_filledlefttribullet
, 0x25C0}, // BLACK LEFT-POINTING TRIANGLE
616 {XK_filledrighttribullet
, 0x25B6}, // BLACK RIGHT-POINTING TRIANGLE
617 {XK_emfilledcircle
, 0x25CF}, // BLACK CIRCLE
618 {XK_emfilledrect
, 0x25AE}, // BLACK VERTICAL RECTANGLE
619 {XK_enopencircbullet
, 0x25E6}, // WHITE BULLET
620 {XK_enopensquarebullet
, 0x25AB}, // WHITE SMALL SQUARE
621 {XK_openrectbullet
, 0x25AD}, // WHITE RECTANGLE
622 {XK_opentribulletup
, 0x25B3}, // WHITE UP-POINTING TRIANGLE
623 {XK_opentribulletdown
, 0x25BD}, // WHITE DOWN-POINTING TRIANGLE
624 {XK_openstar
, 0x2606}, // WHITE STAR
625 {XK_enfilledcircbullet
, 0x2022}, // BULLET
626 {XK_enfilledsqbullet
, 0x25AA}, // BLACK SMALL SQUARE
627 {XK_filledtribulletup
, 0x25B2}, // BLACK UP-POINTING TRIANGLE
628 {XK_filledtribulletdown
, 0x25BC}, // BLACK DOWN-POINTING TRIANGLE
629 {XK_leftpointer
, 0x261C}, // WHITE LEFT POINTING INDEX
630 {XK_rightpointer
, 0x261E}, // WHITE RIGHT POINTING INDEX
631 {XK_club
, 0x2663}, // BLACK CLUB SUIT
632 {XK_diamond
, 0x2666}, // BLACK DIAMOND SUIT
633 {XK_heart
, 0x2665}, // BLACK HEART SUIT
634 {XK_maltesecross
, 0x2720}, // MALTESE CROSS
635 {XK_dagger
, 0x2020}, // DAGGER
636 {XK_doubledagger
, 0x2021}, // DOUBLE DAGGER
637 {XK_checkmark
, 0x2713}, // CHECK MARK
638 {XK_ballotcross
, 0x2717}, // BALLOT X
639 {XK_musicalsharp
, 0x266F}, // MUSIC SHARP SIGN
640 {XK_musicalflat
, 0x266D}, // MUSIC FLAT SIGN
641 {XK_malesymbol
, 0x2642}, // MALE SIGN
642 {XK_femalesymbol
, 0x2640}, // FEMALE SIGN
643 {XK_telephone
, 0x260E}, // BLACK TELEPHONE
644 {XK_telephonerecorder
, 0x2315}, // TELEPHONE RECORDER
645 {XK_phonographcopyright
, 0x2117}, // SOUND RECORDING COPYRIGHT
646 {XK_caret
, 0x2038}, // CARET
647 {XK_singlelowquotemark
, 0x201A}, // SINGLE LOW-9 QUOTATION MARK
648 {XK_doublelowquotemark
, 0x201E}, // DOUBLE LOW-9 QUOTATION MARK
651 {XK_leftcaret
, 0x003C}, // LESS-THAN SIGN
652 {XK_rightcaret
, 0x003E}, // GREATER-THAN SIGN
653 {XK_downcaret
, 0x2228}, // LOGICAL OR
654 {XK_upcaret
, 0x2227}, // LOGICAL AND
655 {XK_overbar
, 0x00AF}, // MACRON
656 {XK_downtack
, 0x22A4}, // DOWN TACK
657 {XK_upshoe
, 0x2229}, // INTERSECTION
658 {XK_downstile
, 0x230A}, // LEFT FLOOR
659 {XK_underbar
, 0x005F}, // LOW LINE
660 {XK_jot
, 0x2218}, // RING OPERATOR
661 {XK_quad
, 0x2395}, // APL FUNCTIONAL SYMBOL QUAD
662 {XK_uptack
, 0x22A5}, // UP TACK
663 {XK_circle
, 0x25CB}, // WHITE CIRCLE
664 {XK_upstile
, 0x2308}, // LEFT CEILING
665 {XK_downshoe
, 0x222A}, // UNION
666 {XK_rightshoe
, 0x2283}, // SUPERSET OF
667 {XK_leftshoe
, 0x2282}, // SUBSET OF
668 {XK_lefttack
, 0x22A3}, // LEFT TACK
669 {XK_righttack
, 0x22A2}, // RIGHT TACK
672 {XK_hebrew_doublelowline
, 0x2017}, // DOUBLE LOW LINE
673 {XK_hebrew_aleph
, 0x05D0}, // HEBREW LETTER ALEF
674 {XK_hebrew_bet
, 0x05D1}, // HEBREW LETTER BET
675 {XK_hebrew_gimel
, 0x05D2}, // HEBREW LETTER GIMEL
676 {XK_hebrew_dalet
, 0x05D3}, // HEBREW LETTER DALET
677 {XK_hebrew_he
, 0x05D4}, // HEBREW LETTER HE
678 {XK_hebrew_waw
, 0x05D5}, // HEBREW LETTER VAV
679 {XK_hebrew_zain
, 0x05D6}, // HEBREW LETTER ZAYIN
680 {XK_hebrew_chet
, 0x05D7}, // HEBREW LETTER HET
681 {XK_hebrew_tet
, 0x05D8}, // HEBREW LETTER TET
682 {XK_hebrew_yod
, 0x05D9}, // HEBREW LETTER YOD
683 {XK_hebrew_finalkaph
, 0x05DA}, // HEBREW LETTER FINAL KAF
684 {XK_hebrew_kaph
, 0x05DB}, // HEBREW LETTER KAF
685 {XK_hebrew_lamed
, 0x05DC}, // HEBREW LETTER LAMED
686 {XK_hebrew_finalmem
, 0x05DD}, // HEBREW LETTER FINAL MEM
687 {XK_hebrew_mem
, 0x05DE}, // HEBREW LETTER MEM
688 {XK_hebrew_finalnun
, 0x05DF}, // HEBREW LETTER FINAL NUN
689 {XK_hebrew_nun
, 0x05E0}, // HEBREW LETTER NUN
690 {XK_hebrew_samech
, 0x05E1}, // HEBREW LETTER SAMEKH
691 {XK_hebrew_ayin
, 0x05E2}, // HEBREW LETTER AYIN
692 {XK_hebrew_finalpe
, 0x05E3}, // HEBREW LETTER FINAL PE
693 {XK_hebrew_pe
, 0x05E4}, // HEBREW LETTER PE
694 {XK_hebrew_finalzade
, 0x05E5}, // HEBREW LETTER FINAL TSADI
695 {XK_hebrew_zade
, 0x05E6}, // HEBREW LETTER TSADI
696 {XK_hebrew_qoph
, 0x05E7}, // HEBREW LETTER QOF
697 {XK_hebrew_resh
, 0x05E8}, // HEBREW LETTER RESH
698 {XK_hebrew_shin
, 0x05E9}, // HEBREW LETTER SHIN
699 {XK_hebrew_taw
, 0x05EA}, // HEBREW LETTER TAV
702 {XK_Thai_kokai
, 0x0E01}, // THAI CHARACTER KO KAI
703 {XK_Thai_khokhai
, 0x0E02}, // THAI CHARACTER KHO KHAI
704 {XK_Thai_khokhuat
, 0x0E03}, // THAI CHARACTER KHO KHUAT
705 {XK_Thai_khokhwai
, 0x0E04}, // THAI CHARACTER KHO KHWAI
706 {XK_Thai_khokhon
, 0x0E05}, // THAI CHARACTER KHO KHON
707 {XK_Thai_khorakhang
, 0x0E06}, // THAI CHARACTER KHO RAKHANG
708 {XK_Thai_ngongu
, 0x0E07}, // THAI CHARACTER NGO NGU
709 {XK_Thai_chochan
, 0x0E08}, // THAI CHARACTER CHO CHAN
710 {XK_Thai_choching
, 0x0E09}, // THAI CHARACTER CHO CHING
711 {XK_Thai_chochang
, 0x0E0A}, // THAI CHARACTER CHO CHANG
712 {XK_Thai_soso
, 0x0E0B}, // THAI CHARACTER SO SO
713 {XK_Thai_chochoe
, 0x0E0C}, // THAI CHARACTER CHO CHOE
714 {XK_Thai_yoying
, 0x0E0D}, // THAI CHARACTER YO YING
715 {XK_Thai_dochada
, 0x0E0E}, // THAI CHARACTER DO CHADA
716 {XK_Thai_topatak
, 0x0E0F}, // THAI CHARACTER TO PATAK
717 {XK_Thai_thothan
, 0x0E10}, // THAI CHARACTER THO THAN
718 {XK_Thai_thonangmontho
, 0x0E11}, // THAI CHARACTER THO NANGMONTHO
719 {XK_Thai_thophuthao
, 0x0E12}, // THAI CHARACTER THO PHUTHAO
720 {XK_Thai_nonen
, 0x0E13}, // THAI CHARACTER NO NEN
721 {XK_Thai_dodek
, 0x0E14}, // THAI CHARACTER DO DEK
722 {XK_Thai_totao
, 0x0E15}, // THAI CHARACTER TO TAO
723 {XK_Thai_thothung
, 0x0E16}, // THAI CHARACTER THO THUNG
724 {XK_Thai_thothahan
, 0x0E17}, // THAI CHARACTER THO THAHAN
725 {XK_Thai_thothong
, 0x0E18}, // THAI CHARACTER THO THONG
726 {XK_Thai_nonu
, 0x0E19}, // THAI CHARACTER NO NU
727 {XK_Thai_bobaimai
, 0x0E1A}, // THAI CHARACTER BO BAIMAI
728 {XK_Thai_popla
, 0x0E1B}, // THAI CHARACTER PO PLA
729 {XK_Thai_phophung
, 0x0E1C}, // THAI CHARACTER PHO PHUNG
730 {XK_Thai_fofa
, 0x0E1D}, // THAI CHARACTER FO FA
731 {XK_Thai_phophan
, 0x0E1E}, // THAI CHARACTER PHO PHAN
732 {XK_Thai_fofan
, 0x0E1F}, // THAI CHARACTER FO FAN
733 {XK_Thai_phosamphao
, 0x0E20}, // THAI CHARACTER PHO SAMPHAO
734 {XK_Thai_moma
, 0x0E21}, // THAI CHARACTER MO MA
735 {XK_Thai_yoyak
, 0x0E22}, // THAI CHARACTER YO YAK
736 {XK_Thai_rorua
, 0x0E23}, // THAI CHARACTER RO RUA
737 {XK_Thai_ru
, 0x0E24}, // THAI CHARACTER RU
738 {XK_Thai_loling
, 0x0E25}, // THAI CHARACTER LO LING
739 {XK_Thai_lu
, 0x0E26}, // THAI CHARACTER LU
740 {XK_Thai_wowaen
, 0x0E27}, // THAI CHARACTER WO WAEN
741 {XK_Thai_sosala
, 0x0E28}, // THAI CHARACTER SO SALA
742 {XK_Thai_sorusi
, 0x0E29}, // THAI CHARACTER SO RUSI
743 {XK_Thai_sosua
, 0x0E2A}, // THAI CHARACTER SO SUA
744 {XK_Thai_hohip
, 0x0E2B}, // THAI CHARACTER HO HIP
745 {XK_Thai_lochula
, 0x0E2C}, // THAI CHARACTER LO CHULA
746 {XK_Thai_oang
, 0x0E2D}, // THAI CHARACTER O ANG
747 {XK_Thai_honokhuk
, 0x0E2E}, // THAI CHARACTER HO NOKHUK
748 {XK_Thai_paiyannoi
, 0x0E2F}, // THAI CHARACTER PAIYANNOI
749 {XK_Thai_saraa
, 0x0E30}, // THAI CHARACTER SARA A
750 {XK_Thai_maihanakat
, 0x0E31}, // THAI CHARACTER MAI HAN-AKAT
751 {XK_Thai_saraaa
, 0x0E32}, // THAI CHARACTER SARA AA
752 {XK_Thai_saraam
, 0x0E33}, // THAI CHARACTER SARA AM
753 {XK_Thai_sarai
, 0x0E34}, // THAI CHARACTER SARA I
754 {XK_Thai_saraii
, 0x0E35}, // THAI CHARACTER SARA II
755 {XK_Thai_saraue
, 0x0E36}, // THAI CHARACTER SARA UE
756 {XK_Thai_sarauee
, 0x0E37}, // THAI CHARACTER SARA UEE
757 {XK_Thai_sarau
, 0x0E38}, // THAI CHARACTER SARA U
758 {XK_Thai_sarauu
, 0x0E39}, // THAI CHARACTER SARA UU
759 {XK_Thai_phinthu
, 0x0E3A}, // THAI CHARACTER PHINTHU
760 {XK_Thai_baht
, 0x0E3F}, // THAI CURRENCY SYMBOL BAHT
761 {XK_Thai_sarae
, 0x0E40}, // THAI CHARACTER SARA E
762 {XK_Thai_saraae
, 0x0E41}, // THAI CHARACTER SARA AE
763 {XK_Thai_sarao
, 0x0E42}, // THAI CHARACTER SARA O
764 {XK_Thai_saraaimaimuan
, 0x0E43}, // THAI CHARACTER SARA AI MAIMUAN
765 {XK_Thai_saraaimaimalai
, 0x0E44}, // THAI CHARACTER SARA AI MAIMALAI
766 {XK_Thai_lakkhangyao
, 0x0E45}, // THAI CHARACTER LAKKHANGYAO
767 {XK_Thai_maiyamok
, 0x0E46}, // THAI CHARACTER MAIYAMOK
768 {XK_Thai_maitaikhu
, 0x0E47}, // THAI CHARACTER MAITAIKHU
769 {XK_Thai_maiek
, 0x0E48}, // THAI CHARACTER MAI EK
770 {XK_Thai_maitho
, 0x0E49}, // THAI CHARACTER MAI THO
771 {XK_Thai_maitri
, 0x0E4A}, // THAI CHARACTER MAI TRI
772 {XK_Thai_maichattawa
, 0x0E4B}, // THAI CHARACTER MAI CHATTAWA
773 {XK_Thai_thanthakhat
, 0x0E4C}, // THAI CHARACTER THANTHAKHAT
774 {XK_Thai_nikhahit
, 0x0E4D}, // THAI CHARACTER NIKHAHIT
775 {XK_Thai_leksun
, 0x0E50}, // THAI DIGIT ZERO
776 {XK_Thai_leknung
, 0x0E51}, // THAI DIGIT ONE
777 {XK_Thai_leksong
, 0x0E52}, // THAI DIGIT TWO
778 {XK_Thai_leksam
, 0x0E53}, // THAI DIGIT THREE
779 {XK_Thai_leksi
, 0x0E54}, // THAI DIGIT FOUR
780 {XK_Thai_lekha
, 0x0E55}, // THAI DIGIT FIVE
781 {XK_Thai_lekhok
, 0x0E56}, // THAI DIGIT SIX
782 {XK_Thai_lekchet
, 0x0E57}, // THAI DIGIT SEVEN
783 {XK_Thai_lekpaet
, 0x0E58}, // THAI DIGIT EIGHT
784 {XK_Thai_lekkao
, 0x0E59}, // THAI DIGIT NINE
787 {XK_Korean_Won
, 0x20A9}, // WON SIGN
789 // Armenian KeySyms map 1:1 to Unicode
791 // Georgian KeySyms map 1:1 to Unicode
793 // Azeri KeySyms map 1:1 to Unicode
795 // Vietnamese KeySyms map 1:1 to Unicode
797 // Currency KeySyms partially map 1:1 to Unicode
798 {XK_EuroSign
, 0x20AC}, // EURO SIGN
800 // Mathematical KeySyms map 1:1 to Unicode
802 // Braille KeySyms map 1:1 to Unicode
804 // Sinhala KeySyms map 1:1 to Unicode
806 // Dead keys mapped to Unicode combining characters (mostly) for composition,
807 // used in combination with the UI Events 'Dead' key. For the X KeySyms that
808 // have no combining accent, we use a character whose name has mnemonic value.
809 {XK_dead_grave
, 0x0300}, // COMBINING GRAVE ACCENT
810 {XK_dead_acute
, 0x0301}, // COMBINING ACUTE ACCENT
811 {XK_dead_circumflex
, 0x0302}, // COMBINING CIRCUMFLEX ACCENT
812 {XK_dead_tilde
, 0x0303}, // COMBINING TILDE
813 {XK_dead_macron
, 0x0304}, // COMBINING MACRON
814 {XK_dead_breve
, 0x0306}, // COMBINING BREVE
815 {XK_dead_abovedot
, 0x0307}, // COMBINING DOT ABOVE
816 {XK_dead_diaeresis
, 0x0308}, // COMBINING DIAERESIS
817 {XK_dead_abovering
, 0x030A}, // COMBINING RING ABOVE
818 {XK_dead_doubleacute
, 0x030B}, // COMBINING DOUBLE ACUTE ACCENT
819 {XK_dead_caron
, 0x030C}, // COMBINING CARON
820 {XK_dead_cedilla
, 0x0327}, // COMBINING CEDILLA
821 {XK_dead_ogonek
, 0x0328}, // COMBINING OGONEK
822 {XK_dead_iota
, 0x0345}, // COMBINING GREEK YPOGEGRAMMENI
823 {XK_dead_voiced_sound
, 0x3099}, // COMB. KATAKANA-HIRAGANA VOICED
824 {XK_dead_semivoiced_sound
, 0x309A}, // COMB. KATAKANA-HIRAGANA SEMI-VOICED
825 {XK_dead_belowdot
, 0x0323}, // COMBINING DOT BELOW
826 {XK_dead_hook
, 0x0309}, // COMBINING HOOK ABOVE
827 {XK_dead_horn
, 0x031B}, // COMBINING HORN
828 {XK_dead_stroke
, 0x0338}, // COMBINING LONG SOLIDUS OVERLAY
829 {XK_dead_abovecomma
, 0x0313}, // COMBINING COMMA ABOVE
830 {XK_dead_abovereversedcomma
, 0x0314}, // COMBINING REVERSED COMMA ABOVE
831 {XK_dead_doublegrave
, 0x030F}, // COMBINING DOUBLE GRAVE ACCENT
832 {XK_dead_belowring
, 0x0325}, // COMBINING RING BELOW
833 {XK_dead_belowmacron
, 0x0331}, // COMBINING MACRON BELOW
834 {XK_dead_belowcircumflex
, 0x032D}, // COMBINING CIRCUMFLEX ACCENT BELOW
835 {XK_dead_belowtilde
, 0x0330}, // COMBINING TILDE BELOW
836 {XK_dead_belowbreve
, 0x032E}, // COMBINING BREVE BELOW
837 {XK_dead_belowdiaeresis
, 0x0324}, // COMBINING DIAERESIS BELOW
838 {XK_dead_invertedbreve
, 0x0311}, // COMBINING INVERTED BREVE
839 {XK_dead_belowcomma
, 0x0326}, // COMBINING COMMA BELOW
840 {XK_dead_currency
, 0x00A4}, // CURRENCY SIGN
841 {XK_dead_greek
, 0x037E}, // GREEK QUESTION MARK
844 class KeySymToUnicode
{
847 : keysym_to_unicode_map_(arraysize(g_keysym_to_unicode_table
)) {
848 for (size_t i
= 0; i
< arraysize(g_keysym_to_unicode_table
); ++i
) {
849 keysym_to_unicode_map_
[g_keysym_to_unicode_table
[i
].keysym
] =
850 g_keysym_to_unicode_table
[i
].unicode
;
854 uint16_t UnicodeFromKeySym(KeySym keysym
) const {
855 // Latin-1 characters have the same representation.
856 if ((0x0020 <= keysym
&& keysym
<= 0x007e) ||
857 (0x00a0 <= keysym
&& keysym
<= 0x00ff))
858 return static_cast<uint16_t>(keysym
);
860 // Unicode-style KeySyms.
861 if ((keysym
& 0xffe00000) == 0x01000000) {
862 uint32_t unicode
= static_cast<uint32_t>(keysym
& 0x1fffff);
863 if (unicode
& ~0xffff)
864 return 0; // We don't support characters outside the Basic Plane.
865 return static_cast<uint16_t>(unicode
);
868 // Other KeySyms which are not Unicode-style.
869 KeySymToUnicodeMap::const_iterator i
=
870 keysym_to_unicode_map_
.find(keysym
);
871 return i
!= keysym_to_unicode_map_
.end() ? i
->second
: 0;
875 typedef base::hash_map
<KeySym
, uint16_t> KeySymToUnicodeMap
;
876 KeySymToUnicodeMap keysym_to_unicode_map_
;
878 DISALLOW_COPY_AND_ASSIGN(KeySymToUnicode
);
881 static base::LazyInstance
<KeySymToUnicode
>::Leaky g_keysym_to_unicode
=
882 LAZY_INSTANCE_INITIALIZER
;
884 uint16_t GetUnicodeCharacterFromXKeySym(unsigned long keysym
) {
885 return g_keysym_to_unicode
.Get().UnicodeFromKeySym(
886 static_cast<KeySym
>(keysym
));