]> Pileus Git - ~andy/gtk/blob - gdk/win32/gdk.c
Add new keysyms from X11R6.4 (including EuroSign).
[~andy/gtk] / gdk / win32 / gdk.c
1 /* GDK - The GIMP Drawing Kit
2  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3  * Copyright (C) 1998-1999 Tor Lillqvist
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 /*
22  * Modified by the GTK+ Team and others 1997-1999.  See the AUTHORS
23  * file for a list of people on the GTK+ Team.  See the ChangeLog
24  * files for a list of changes.  These files are distributed with
25  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
26  */
27
28 #include "config.h"
29
30 #include <stdio.h>
31 #include <stdlib.h>
32 #include <string.h>
33 #include <limits.h>
34 #include <io.h>
35
36 #include "gdk.h"
37 #include "gdkprivate.h"
38 #include "gdkinputprivate.h"
39 #include "gdkkeysyms.h"
40
41 #include <objbase.h>
42
43 static void      gdkx_XConvertCase      (KeySym        symbol,
44                                          KeySym       *lower,
45                                          KeySym       *upper);
46 static void         gdk_exit_func                (void);
47
48
49 /* Private variable declarations
50  */
51 static int gdk_initialized = 0; /* 1 if the library is initialized,
52                                  * 0 otherwise.
53                                  */
54 #ifdef G_ENABLE_DEBUG
55 static const GDebugKey gdk_debug_keys[] = {
56   {"events",        GDK_DEBUG_EVENTS},
57   {"misc",          GDK_DEBUG_MISC},
58   {"dnd",           GDK_DEBUG_DND},
59   {"color-context", GDK_DEBUG_COLOR_CONTEXT},
60   {"xim",           GDK_DEBUG_XIM},
61   {"selection",     GDK_DEBUG_SELECTION}
62 };
63
64 static const int gdk_ndebug_keys = sizeof(gdk_debug_keys)/sizeof(GDebugKey);
65
66 #endif /* G_ENABLE_DEBUG */
67
68 int __stdcall
69 DllMain(HINSTANCE hinstDLL,
70         DWORD dwReason,
71         LPVOID reserved)
72 {
73   gdk_DLLInstance = hinstDLL;
74
75   return TRUE;
76 }
77
78 /*
79  *--------------------------------------------------------------
80  * gdk_init
81  *
82  *   Initialize the library for use.
83  *
84  * Arguments:
85  *   "argc" is the number of arguments.
86  *   "argv" is an array of strings.
87  *
88  * Results:
89  *   "argc" and "argv" are modified to reflect any arguments
90  *   which were not handled. (Such arguments should either
91  *   be handled by the application or dismissed).
92  *
93  * Side effects:
94  *   The library is initialized.
95  *
96  *--------------------------------------------------------------
97  */
98
99 gboolean
100 gdk_init_check (int    *argc,
101                 char ***argv)
102 {
103   gint i, j, k;
104   
105   if (gdk_initialized)
106     return TRUE;
107   
108   if (g_thread_supported ())
109     gdk_threads_mutex = g_mutex_new ();
110   
111 #ifdef G_ENABLE_DEBUG
112   {
113     gchar *debug_string = getenv("GDK_DEBUG");
114     if (debug_string != NULL)
115       gdk_debug_flags = g_parse_debug_string (debug_string,
116                                               (GDebugKey *) gdk_debug_keys,
117                                               gdk_ndebug_keys);
118   }
119 #endif  /* G_ENABLE_DEBUG */
120   
121   if (getenv ("GDK_IGNORE_WINTAB") != NULL)
122     gdk_input_ignore_wintab = TRUE;
123
124   if (getenv ("GDK_EVENT_FUNC_FROM_WINDOW_PROC") != NULL)
125     gdk_event_func_from_window_proc = TRUE;
126
127   if (argc && argv)
128     {
129       if (*argc > 0)
130         {
131           gchar *d;
132           
133           d = strrchr((*argv)[0], G_DIR_SEPARATOR);
134           if (d != NULL)
135             g_set_prgname (d + 1);
136           else
137             g_set_prgname ((*argv)[0]);
138         }
139       
140       for (i = 1; i < *argc;)
141         {
142 #ifdef G_ENABLE_DEBUG     
143           if ((strcmp ("--gdk-debug", (*argv)[i]) == 0) ||
144               (strncmp ("--gdk-debug=", (*argv)[i], 12) == 0))
145             {
146               gchar *equal_pos = strchr ((*argv)[i], '=');
147               
148               if (equal_pos != NULL)
149                 {
150                   gdk_debug_flags |= g_parse_debug_string (equal_pos+1,
151                                                            (GDebugKey *) gdk_debug_keys,
152                                                            gdk_ndebug_keys);
153                 }
154               else if ((i + 1) < *argc && (*argv)[i + 1])
155                 {
156                   gdk_debug_flags |= g_parse_debug_string ((*argv)[i+1],
157                                                            (GDebugKey *) gdk_debug_keys,
158                                                            gdk_ndebug_keys);
159                   (*argv)[i] = NULL;
160                   i += 1;
161                 }
162               (*argv)[i] = NULL;
163             }
164           else if ((strcmp ("--gdk-no-debug", (*argv)[i]) == 0) ||
165                    (strncmp ("--gdk-no-debug=", (*argv)[i], 15) == 0))
166             {
167               gchar *equal_pos = strchr ((*argv)[i], '=');
168
169               if (equal_pos != NULL)
170                 {
171                   gdk_debug_flags &= ~g_parse_debug_string (equal_pos+1,
172                                                             (GDebugKey *) gdk_debug_keys,
173                                                             gdk_ndebug_keys);
174                 }
175               else if ((i + 1) < *argc && (*argv)[i + 1])
176                 {
177                   gdk_debug_flags &= ~g_parse_debug_string ((*argv)[i+1],
178                                                             (GDebugKey *) gdk_debug_keys,
179                                                             gdk_ndebug_keys);
180                   (*argv)[i] = NULL;
181                   i += 1;
182                 }
183               (*argv)[i] = NULL;
184             }
185           else 
186 #endif /* G_ENABLE_DEBUG */
187             if (strcmp ("--sync", (*argv)[i]) == 0)
188               {
189                 (*argv)[i] = NULL;
190                 GdiSetBatchLimit (1);
191               }
192             else if (strcmp ("--name", (*argv)[i]) == 0)
193               {
194                 if ((i + 1) < *argc && (*argv)[i + 1])
195                   {
196                     (*argv)[i++] = NULL;
197                     g_set_prgname ((*argv)[i]);
198                     (*argv)[i] = NULL;
199                   }
200               }
201             else if (strcmp ("--gdk-no-wintab", (*argv)[i]) == 0
202                      || strcmp ("--gdk-ignore-wintab", (*argv)[i]) == 0)
203               {
204                 (*argv)[i] = NULL;
205                 gdk_input_ignore_wintab = TRUE;
206               }
207             else if (strcmp ("--gdk-event-func-from-window-proc", (*argv)[i]) == 0)
208               {
209                 (*argv)[i] = NULL;
210                 gdk_event_func_from_window_proc = TRUE;
211               }
212           i += 1;
213         }
214       
215       for (i = 1; i < *argc; i++)
216         {
217           for (k = i; k < *argc; k++)
218             if ((*argv)[k] != NULL)
219               break;
220           
221           if (k > i)
222             {
223               k -= i;
224               for (j = i + k; j < *argc; j++)
225                 (*argv)[j-k] = (*argv)[j];
226               *argc -= k;
227             }
228         }
229     }
230   else
231     {
232       g_set_prgname ("<unknown>");
233     }
234   
235   gdk_ProgInstance = GetModuleHandle (NULL);
236   gdk_DC = CreateDC ("DISPLAY", NULL, NULL, NULL);
237   gdk_root_window = GetDesktopWindow ();
238
239   CoInitialize (NULL);
240
241   gdk_selection_request_msg = RegisterWindowMessage ("gdk-selection-request");
242   gdk_selection_notify_msg = RegisterWindowMessage ("gdk-selection-notify");
243   gdk_selection_clear_msg = RegisterWindowMessage ("gdk-selection-clear");
244
245   gdk_selection_property = gdk_atom_intern ("GDK_SELECTION", FALSE);
246   gdk_clipboard_atom = gdk_atom_intern ("CLIPBOARD", FALSE);
247   gdk_win32_dropfiles_atom = gdk_atom_intern ("DROPFILES_DND", FALSE);
248   gdk_ole2_dnd_atom = gdk_atom_intern ("OLE2_DND", FALSE);
249
250   gdk_progclass = g_basename (g_get_prgname ());
251   gdk_progclass[0] = toupper (gdk_progclass[0]);
252
253   g_atexit (gdk_exit_func);
254   
255   gdk_events_init ();
256   gdk_visual_init ();
257   gdk_window_init ();
258   gdk_image_init ();
259   gdk_input_init ();
260   gdk_selection_init ();
261   gdk_dnd_init ();
262
263   gdk_initialized = 1;
264
265   return TRUE;
266 }
267
268 void
269 gdk_init (int *argc, char ***argv)
270 {
271   if (!gdk_init_check (argc, argv))
272     {
273       g_warning ("cannot initialize GDK");
274       exit(1);
275     }
276 }
277
278 /*
279  *--------------------------------------------------------------
280  * gdk_exit
281  *
282  *   Restores the library to an un-itialized state and exits
283  *   the program using the "exit" system call.
284  *
285  * Arguments:
286  *   "errorcode" is the error value to pass to "exit".
287  *
288  * Results:
289  *   Allocated structures are freed and the program exits
290  *   cleanly.
291  *
292  * Side effects:
293  *
294  *--------------------------------------------------------------
295  */
296
297 void
298 gdk_exit (gint errorcode)
299 {
300   /* de-initialisation is done by the gdk_exit_func(),
301      no need to do this here (Alex J.) */
302   exit (errorcode);
303 }
304
305 void
306 gdk_set_use_xshm (gint use_xshm)
307 {
308   /* Always on */
309 }
310
311 gint
312 gdk_get_use_xshm (void)
313 {
314   return TRUE;
315 }
316
317 /*
318  *--------------------------------------------------------------
319  * gdk_screen_width
320  *
321  *   Return the width of the screen.
322  *
323  * Arguments:
324  *
325  * Results:
326  *
327  * Side effects:
328  *
329  *--------------------------------------------------------------
330  */
331
332 gint
333 gdk_screen_width (void)
334 {
335   gint return_val;
336   
337   return_val = gdk_root_parent->drawable.width;
338
339   return return_val;
340 }
341
342 /*
343  *--------------------------------------------------------------
344  * gdk_screen_height
345  *
346  *   Return the height of the screen.
347  *
348  * Arguments:
349  *
350  * Results:
351  *
352  * Side effects:
353  *
354  *--------------------------------------------------------------
355  */
356
357 gint
358 gdk_screen_height (void)
359 {
360   gint return_val;
361   
362   return_val = gdk_root_parent->drawable.height;
363
364   return return_val;
365 }
366
367 /*
368  *--------------------------------------------------------------
369  * gdk_screen_width_mm
370  *
371  *   Return the width of the screen in millimetres.
372  *
373  * Arguments:
374  *
375  * Results:
376  *
377  * Side effects:
378  *
379  *--------------------------------------------------------------
380  */
381
382 gint
383 gdk_screen_width_mm (void)
384 {
385   HDC hdc;
386   gint return_val;
387
388   hdc = GetDC (NULL);
389   return_val = GetDeviceCaps (hdc, HORZSIZE);
390   ReleaseDC (NULL, hdc);
391
392   return return_val;
393 }
394
395 /*
396  *--------------------------------------------------------------
397  * gdk_screen_height
398  *
399  *   Return the height of the screen in millimetres.
400  *
401  * Arguments:
402  *
403  * Results:
404  *
405  * Side effects:
406  *
407  *--------------------------------------------------------------
408  */
409
410 gint
411 gdk_screen_height_mm (void)
412 {
413   HDC hdc;
414   gint return_val;
415
416   hdc = GetDC (NULL);
417   return_val = GetDeviceCaps (hdc, VERTSIZE);
418   ReleaseDC (NULL, hdc);
419   
420   return return_val;
421 }
422
423 void
424 gdk_key_repeat_disable (void)
425 {
426   /* XXX */
427 }
428
429 void
430 gdk_key_repeat_restore (void)
431 {
432   /* XXX */
433 }
434
435
436 /*
437  *--------------------------------------------------------------
438  * gdk_flush
439  *
440  *   Flushes the Xlib output buffer and then waits
441  *   until all requests have been received and processed
442  *   by the X server. The only real use for this function
443  *   is in dealing with XShm.
444  *
445  * Arguments:
446  *
447  * Results:
448  *
449  * Side effects:
450  *
451  *--------------------------------------------------------------
452  */
453
454 void
455 gdk_flush (void)
456 {
457   GdiFlush ();
458 }
459
460 void
461 gdk_beep (void)
462 {
463   Beep(1000, 50);
464 }
465
466 /*
467  *--------------------------------------------------------------
468  * gdk_exit_func
469  *
470  *   This is the "atexit" function that makes sure the
471  *   library gets a chance to cleanup.
472  *
473  * Arguments:
474  *
475  * Results:
476  *
477  * Side effects:
478  *   The library is un-initialized and the program exits.
479  *
480  *--------------------------------------------------------------
481  */
482
483 static void
484 gdk_exit_func (void)
485 {
486   static gboolean in_gdk_exit_func = FALSE;
487   
488   GDK_NOTE (MISC, g_print ("gdk_exit_func\n"));
489   /* This is to avoid an infinite loop if a program segfaults in
490      an atexit() handler (and yes, it does happen, especially if a program
491      has trounced over memory too badly for even g_message to work) */
492   if (in_gdk_exit_func == TRUE)
493     return;
494   in_gdk_exit_func = TRUE;
495   
496   if (gdk_initialized)
497     {
498       gdk_image_exit ();
499       gdk_input_exit ();
500       gdk_key_repeat_restore ();
501       gdk_dnd_exit ();
502
503       CoUninitialize ();
504
505       DeleteDC (gdk_DC);
506       gdk_DC = NULL;
507       gdk_initialized = 0;
508     }
509 }
510
511 gchar *
512 gdk_get_display(void)
513 {
514   return "local:";
515 }
516
517 /*************************************************************
518  * gdk_error_trap_push:
519  *     Push an error trap. X errors will be trapped until
520  *     the corresponding gdk_error_pop(), which will return
521  *     the error code, if any.
522  *   arguments:
523  *     
524  *   results:
525  *************************************************************/
526
527 void
528 gdk_error_trap_push (void)
529 {
530   /* ??? */
531 }
532
533 /*************************************************************
534  * gdk_error_trap_pop:
535  *     Pop an error trap added with gdk_error_push()
536  *   arguments:
537  *     
538  *   results:
539  *     0, if no error occured, otherwise the error code.
540  *************************************************************/
541
542 gint
543 gdk_error_trap_pop (void)
544 {
545   /* ??? */
546   return 0;
547 }
548
549 static void
550 gdkx_XConvertCase (KeySym symbol,
551                    KeySym *lower,
552                    KeySym *upper)
553 {
554   register KeySym sym = symbol;
555   
556   g_return_if_fail (lower != NULL);
557   g_return_if_fail (upper != NULL);
558   
559   *lower = sym;
560   *upper = sym;
561   
562   switch (sym >> 8)
563     {
564 #if     defined (GDK_A) && defined (GDK_Ooblique)
565     case 0: /* Latin 1 */
566       if ((sym >= GDK_A) && (sym <= GDK_Z))
567         *lower += (GDK_a - GDK_A);
568       else if ((sym >= GDK_a) && (sym <= GDK_z))
569         *upper -= (GDK_a - GDK_A);
570       else if ((sym >= GDK_Agrave) && (sym <= GDK_Odiaeresis))
571         *lower += (GDK_agrave - GDK_Agrave);
572       else if ((sym >= GDK_agrave) && (sym <= GDK_odiaeresis))
573         *upper -= (GDK_agrave - GDK_Agrave);
574       else if ((sym >= GDK_Ooblique) && (sym <= GDK_Thorn))
575         *lower += (GDK_oslash - GDK_Ooblique);
576       else if ((sym >= GDK_oslash) && (sym <= GDK_thorn))
577         *upper -= (GDK_oslash - GDK_Ooblique);
578       break;
579 #endif  /* LATIN1 */
580       
581 #if     defined (GDK_Aogonek) && defined (GDK_tcedilla)
582     case 1: /* Latin 2 */
583       /* Assume the KeySym is a legal value (ignore discontinuities) */
584       if (sym == GDK_Aogonek)
585         *lower = GDK_aogonek;
586       else if (sym >= GDK_Lstroke && sym <= GDK_Sacute)
587         *lower += (GDK_lstroke - GDK_Lstroke);
588       else if (sym >= GDK_Scaron && sym <= GDK_Zacute)
589         *lower += (GDK_scaron - GDK_Scaron);
590       else if (sym >= GDK_Zcaron && sym <= GDK_Zabovedot)
591         *lower += (GDK_zcaron - GDK_Zcaron);
592       else if (sym == GDK_aogonek)
593         *upper = GDK_Aogonek;
594       else if (sym >= GDK_lstroke && sym <= GDK_sacute)
595         *upper -= (GDK_lstroke - GDK_Lstroke);
596       else if (sym >= GDK_scaron && sym <= GDK_zacute)
597         *upper -= (GDK_scaron - GDK_Scaron);
598       else if (sym >= GDK_zcaron && sym <= GDK_zabovedot)
599         *upper -= (GDK_zcaron - GDK_Zcaron);
600       else if (sym >= GDK_Racute && sym <= GDK_Tcedilla)
601         *lower += (GDK_racute - GDK_Racute);
602       else if (sym >= GDK_racute && sym <= GDK_tcedilla)
603         *upper -= (GDK_racute - GDK_Racute);
604       break;
605 #endif  /* LATIN2 */
606       
607 #if     defined (GDK_Hstroke) && defined (GDK_Cabovedot)
608     case 2: /* Latin 3 */
609       /* Assume the KeySym is a legal value (ignore discontinuities) */
610       if (sym >= GDK_Hstroke && sym <= GDK_Hcircumflex)
611         *lower += (GDK_hstroke - GDK_Hstroke);
612       else if (sym >= GDK_Gbreve && sym <= GDK_Jcircumflex)
613         *lower += (GDK_gbreve - GDK_Gbreve);
614       else if (sym >= GDK_hstroke && sym <= GDK_hcircumflex)
615         *upper -= (GDK_hstroke - GDK_Hstroke);
616       else if (sym >= GDK_gbreve && sym <= GDK_jcircumflex)
617         *upper -= (GDK_gbreve - GDK_Gbreve);
618       else if (sym >= GDK_Cabovedot && sym <= GDK_Scircumflex)
619         *lower += (GDK_cabovedot - GDK_Cabovedot);
620       else if (sym >= GDK_cabovedot && sym <= GDK_scircumflex)
621         *upper -= (GDK_cabovedot - GDK_Cabovedot);
622       break;
623 #endif  /* LATIN3 */
624       
625 #if     defined (GDK_Rcedilla) && defined (GDK_Amacron)
626     case 3: /* Latin 4 */
627       /* Assume the KeySym is a legal value (ignore discontinuities) */
628       if (sym >= GDK_Rcedilla && sym <= GDK_Tslash)
629         *lower += (GDK_rcedilla - GDK_Rcedilla);
630       else if (sym >= GDK_rcedilla && sym <= GDK_tslash)
631         *upper -= (GDK_rcedilla - GDK_Rcedilla);
632       else if (sym == GDK_ENG)
633         *lower = GDK_eng;
634       else if (sym == GDK_eng)
635         *upper = GDK_ENG;
636       else if (sym >= GDK_Amacron && sym <= GDK_Umacron)
637         *lower += (GDK_amacron - GDK_Amacron);
638       else if (sym >= GDK_amacron && sym <= GDK_umacron)
639         *upper -= (GDK_amacron - GDK_Amacron);
640       break;
641 #endif  /* LATIN4 */
642       
643 #if     defined (GDK_Serbian_DJE) && defined (GDK_Cyrillic_yu)
644     case 6: /* Cyrillic */
645       /* Assume the KeySym is a legal value (ignore discontinuities) */
646       if (sym >= GDK_Serbian_DJE && sym <= GDK_Serbian_DZE)
647         *lower -= (GDK_Serbian_DJE - GDK_Serbian_dje);
648       else if (sym >= GDK_Serbian_dje && sym <= GDK_Serbian_dze)
649         *upper += (GDK_Serbian_DJE - GDK_Serbian_dje);
650       else if (sym >= GDK_Cyrillic_YU && sym <= GDK_Cyrillic_HARDSIGN)
651         *lower -= (GDK_Cyrillic_YU - GDK_Cyrillic_yu);
652       else if (sym >= GDK_Cyrillic_yu && sym <= GDK_Cyrillic_hardsign)
653         *upper += (GDK_Cyrillic_YU - GDK_Cyrillic_yu);
654       break;
655 #endif  /* CYRILLIC */
656
657 #if     defined (GDK_Greek_ALPHAaccent) && defined (GDK_Greek_finalsmallsigma)
658     case 7: /* Greek */
659       /* Assume the KeySym is a legal value (ignore discontinuities) */
660       if (sym >= GDK_Greek_ALPHAaccent && sym <= GDK_Greek_OMEGAaccent)
661         *lower += (GDK_Greek_alphaaccent - GDK_Greek_ALPHAaccent);
662       else if (sym >= GDK_Greek_alphaaccent && sym <= GDK_Greek_omegaaccent &&
663                sym != GDK_Greek_iotaaccentdieresis &&
664                sym != GDK_Greek_upsilonaccentdieresis)
665         *upper -= (GDK_Greek_alphaaccent - GDK_Greek_ALPHAaccent);
666       else if (sym >= GDK_Greek_ALPHA && sym <= GDK_Greek_OMEGA)
667         *lower += (GDK_Greek_alpha - GDK_Greek_ALPHA);
668       else if (sym >= GDK_Greek_alpha && sym <= GDK_Greek_omega &&
669                sym != GDK_Greek_finalsmallsigma)
670         *upper -= (GDK_Greek_alpha - GDK_Greek_ALPHA);
671       break;
672 #endif  /* GREEK */
673     }
674 }
675
676 static struct gdk_key {
677   guint keyval;
678   const char *name;
679 } gdk_keys_by_keyval[] = {
680   { 0x000020, "space" },
681   { 0x000021, "exclam" },
682   { 0x000022, "quotedbl" },
683   { 0x000023, "numbersign" },
684   { 0x000024, "dollar" },
685   { 0x000025, "percent" },
686   { 0x000026, "ampersand" },
687   { 0x000027, "apostrophe" },
688   { 0x000027, "quoteright" },
689   { 0x000028, "parenleft" },
690   { 0x000029, "parenright" },
691   { 0x00002a, "asterisk" },
692   { 0x00002b, "plus" },
693   { 0x00002c, "comma" },
694   { 0x00002d, "minus" },
695   { 0x00002e, "period" },
696   { 0x00002f, "slash" },
697   { 0x000030, "0" },
698   { 0x000031, "1" },
699   { 0x000032, "2" },
700   { 0x000033, "3" },
701   { 0x000034, "4" },
702   { 0x000035, "5" },
703   { 0x000036, "6" },
704   { 0x000037, "7" },
705   { 0x000038, "8" },
706   { 0x000039, "9" },
707   { 0x00003a, "colon" },
708   { 0x00003b, "semicolon" },
709   { 0x00003c, "less" },
710   { 0x00003d, "equal" },
711   { 0x00003e, "greater" },
712   { 0x00003f, "question" },
713   { 0x000040, "at" },
714   { 0x000041, "A" },
715   { 0x000042, "B" },
716   { 0x000043, "C" },
717   { 0x000044, "D" },
718   { 0x000045, "E" },
719   { 0x000046, "F" },
720   { 0x000047, "G" },
721   { 0x000048, "H" },
722   { 0x000049, "I" },
723   { 0x00004a, "J" },
724   { 0x00004b, "K" },
725   { 0x00004c, "L" },
726   { 0x00004d, "M" },
727   { 0x00004e, "N" },
728   { 0x00004f, "O" },
729   { 0x000050, "P" },
730   { 0x000051, "Q" },
731   { 0x000052, "R" },
732   { 0x000053, "S" },
733   { 0x000054, "T" },
734   { 0x000055, "U" },
735   { 0x000056, "V" },
736   { 0x000057, "W" },
737   { 0x000058, "X" },
738   { 0x000059, "Y" },
739   { 0x00005a, "Z" },
740   { 0x00005b, "bracketleft" },
741   { 0x00005c, "backslash" },
742   { 0x00005d, "bracketright" },
743   { 0x00005e, "asciicircum" },
744   { 0x00005f, "underscore" },
745   { 0x000060, "grave" },
746   { 0x000060, "quoteleft" },
747   { 0x000061, "a" },
748   { 0x000062, "b" },
749   { 0x000063, "c" },
750   { 0x000064, "d" },
751   { 0x000065, "e" },
752   { 0x000066, "f" },
753   { 0x000067, "g" },
754   { 0x000068, "h" },
755   { 0x000069, "i" },
756   { 0x00006a, "j" },
757   { 0x00006b, "k" },
758   { 0x00006c, "l" },
759   { 0x00006d, "m" },
760   { 0x00006e, "n" },
761   { 0x00006f, "o" },
762   { 0x000070, "p" },
763   { 0x000071, "q" },
764   { 0x000072, "r" },
765   { 0x000073, "s" },
766   { 0x000074, "t" },
767   { 0x000075, "u" },
768   { 0x000076, "v" },
769   { 0x000077, "w" },
770   { 0x000078, "x" },
771   { 0x000079, "y" },
772   { 0x00007a, "z" },
773   { 0x00007b, "braceleft" },
774   { 0x00007c, "bar" },
775   { 0x00007d, "braceright" },
776   { 0x00007e, "asciitilde" },
777   { 0x0000a0, "nobreakspace" },
778   { 0x0000a1, "exclamdown" },
779   { 0x0000a2, "cent" },
780   { 0x0000a3, "sterling" },
781   { 0x0000a4, "currency" },
782   { 0x0000a5, "yen" },
783   { 0x0000a6, "brokenbar" },
784   { 0x0000a7, "section" },
785   { 0x0000a8, "diaeresis" },
786   { 0x0000a9, "copyright" },
787   { 0x0000aa, "ordfeminine" },
788   { 0x0000ab, "guillemotleft" },
789   { 0x0000ac, "notsign" },
790   { 0x0000ad, "hyphen" },
791   { 0x0000ae, "registered" },
792   { 0x0000af, "macron" },
793   { 0x0000b0, "degree" },
794   { 0x0000b1, "plusminus" },
795   { 0x0000b2, "twosuperior" },
796   { 0x0000b3, "threesuperior" },
797   { 0x0000b4, "acute" },
798   { 0x0000b5, "mu" },
799   { 0x0000b6, "paragraph" },
800   { 0x0000b7, "periodcentered" },
801   { 0x0000b8, "cedilla" },
802   { 0x0000b9, "onesuperior" },
803   { 0x0000ba, "masculine" },
804   { 0x0000bb, "guillemotright" },
805   { 0x0000bc, "onequarter" },
806   { 0x0000bd, "onehalf" },
807   { 0x0000be, "threequarters" },
808   { 0x0000bf, "questiondown" },
809   { 0x0000c0, "Agrave" },
810   { 0x0000c1, "Aacute" },
811   { 0x0000c2, "Acircumflex" },
812   { 0x0000c3, "Atilde" },
813   { 0x0000c4, "Adiaeresis" },
814   { 0x0000c5, "Aring" },
815   { 0x0000c6, "AE" },
816   { 0x0000c7, "Ccedilla" },
817   { 0x0000c8, "Egrave" },
818   { 0x0000c9, "Eacute" },
819   { 0x0000ca, "Ecircumflex" },
820   { 0x0000cb, "Ediaeresis" },
821   { 0x0000cc, "Igrave" },
822   { 0x0000cd, "Iacute" },
823   { 0x0000ce, "Icircumflex" },
824   { 0x0000cf, "Idiaeresis" },
825   { 0x0000d0, "ETH" },
826   { 0x0000d0, "Eth" },
827   { 0x0000d1, "Ntilde" },
828   { 0x0000d2, "Ograve" },
829   { 0x0000d3, "Oacute" },
830   { 0x0000d4, "Ocircumflex" },
831   { 0x0000d5, "Otilde" },
832   { 0x0000d6, "Odiaeresis" },
833   { 0x0000d7, "multiply" },
834   { 0x0000d8, "Ooblique" },
835   { 0x0000d9, "Ugrave" },
836   { 0x0000da, "Uacute" },
837   { 0x0000db, "Ucircumflex" },
838   { 0x0000dc, "Udiaeresis" },
839   { 0x0000dd, "Yacute" },
840   { 0x0000de, "THORN" },
841   { 0x0000de, "Thorn" },
842   { 0x0000df, "ssharp" },
843   { 0x0000e0, "agrave" },
844   { 0x0000e1, "aacute" },
845   { 0x0000e2, "acircumflex" },
846   { 0x0000e3, "atilde" },
847   { 0x0000e4, "adiaeresis" },
848   { 0x0000e5, "aring" },
849   { 0x0000e6, "ae" },
850   { 0x0000e7, "ccedilla" },
851   { 0x0000e8, "egrave" },
852   { 0x0000e9, "eacute" },
853   { 0x0000ea, "ecircumflex" },
854   { 0x0000eb, "ediaeresis" },
855   { 0x0000ec, "igrave" },
856   { 0x0000ed, "iacute" },
857   { 0x0000ee, "icircumflex" },
858   { 0x0000ef, "idiaeresis" },
859   { 0x0000f0, "eth" },
860   { 0x0000f1, "ntilde" },
861   { 0x0000f2, "ograve" },
862   { 0x0000f3, "oacute" },
863   { 0x0000f4, "ocircumflex" },
864   { 0x0000f5, "otilde" },
865   { 0x0000f6, "odiaeresis" },
866   { 0x0000f7, "division" },
867   { 0x0000f8, "oslash" },
868   { 0x0000f9, "ugrave" },
869   { 0x0000fa, "uacute" },
870   { 0x0000fb, "ucircumflex" },
871   { 0x0000fc, "udiaeresis" },
872   { 0x0000fd, "yacute" },
873   { 0x0000fe, "thorn" },
874   { 0x0000ff, "ydiaeresis" },
875   { 0x0001a1, "Aogonek" },
876   { 0x0001a2, "breve" },
877   { 0x0001a3, "Lstroke" },
878   { 0x0001a5, "Lcaron" },
879   { 0x0001a6, "Sacute" },
880   { 0x0001a9, "Scaron" },
881   { 0x0001aa, "Scedilla" },
882   { 0x0001ab, "Tcaron" },
883   { 0x0001ac, "Zacute" },
884   { 0x0001ae, "Zcaron" },
885   { 0x0001af, "Zabovedot" },
886   { 0x0001b1, "aogonek" },
887   { 0x0001b2, "ogonek" },
888   { 0x0001b3, "lstroke" },
889   { 0x0001b5, "lcaron" },
890   { 0x0001b6, "sacute" },
891   { 0x0001b7, "caron" },
892   { 0x0001b9, "scaron" },
893   { 0x0001ba, "scedilla" },
894   { 0x0001bb, "tcaron" },
895   { 0x0001bc, "zacute" },
896   { 0x0001bd, "doubleacute" },
897   { 0x0001be, "zcaron" },
898   { 0x0001bf, "zabovedot" },
899   { 0x0001c0, "Racute" },
900   { 0x0001c3, "Abreve" },
901   { 0x0001c5, "Lacute" },
902   { 0x0001c6, "Cacute" },
903   { 0x0001c8, "Ccaron" },
904   { 0x0001ca, "Eogonek" },
905   { 0x0001cc, "Ecaron" },
906   { 0x0001cf, "Dcaron" },
907   { 0x0001d0, "Dstroke" },
908   { 0x0001d1, "Nacute" },
909   { 0x0001d2, "Ncaron" },
910   { 0x0001d5, "Odoubleacute" },
911   { 0x0001d8, "Rcaron" },
912   { 0x0001d9, "Uring" },
913   { 0x0001db, "Udoubleacute" },
914   { 0x0001de, "Tcedilla" },
915   { 0x0001e0, "racute" },
916   { 0x0001e3, "abreve" },
917   { 0x0001e5, "lacute" },
918   { 0x0001e6, "cacute" },
919   { 0x0001e8, "ccaron" },
920   { 0x0001ea, "eogonek" },
921   { 0x0001ec, "ecaron" },
922   { 0x0001ef, "dcaron" },
923   { 0x0001f0, "dstroke" },
924   { 0x0001f1, "nacute" },
925   { 0x0001f2, "ncaron" },
926   { 0x0001f5, "odoubleacute" },
927   { 0x0001f8, "rcaron" },
928   { 0x0001f9, "uring" },
929   { 0x0001fb, "udoubleacute" },
930   { 0x0001fe, "tcedilla" },
931   { 0x0001ff, "abovedot" },
932   { 0x0002a1, "Hstroke" },
933   { 0x0002a6, "Hcircumflex" },
934   { 0x0002a9, "Iabovedot" },
935   { 0x0002ab, "Gbreve" },
936   { 0x0002ac, "Jcircumflex" },
937   { 0x0002b1, "hstroke" },
938   { 0x0002b6, "hcircumflex" },
939   { 0x0002b9, "idotless" },
940   { 0x0002bb, "gbreve" },
941   { 0x0002bc, "jcircumflex" },
942   { 0x0002c5, "Cabovedot" },
943   { 0x0002c6, "Ccircumflex" },
944   { 0x0002d5, "Gabovedot" },
945   { 0x0002d8, "Gcircumflex" },
946   { 0x0002dd, "Ubreve" },
947   { 0x0002de, "Scircumflex" },
948   { 0x0002e5, "cabovedot" },
949   { 0x0002e6, "ccircumflex" },
950   { 0x0002f5, "gabovedot" },
951   { 0x0002f8, "gcircumflex" },
952   { 0x0002fd, "ubreve" },
953   { 0x0002fe, "scircumflex" },
954   { 0x0003a2, "kappa" },
955   { 0x0003a2, "kra" },
956   { 0x0003a3, "Rcedilla" },
957   { 0x0003a5, "Itilde" },
958   { 0x0003a6, "Lcedilla" },
959   { 0x0003aa, "Emacron" },
960   { 0x0003ab, "Gcedilla" },
961   { 0x0003ac, "Tslash" },
962   { 0x0003b3, "rcedilla" },
963   { 0x0003b5, "itilde" },
964   { 0x0003b6, "lcedilla" },
965   { 0x0003ba, "emacron" },
966   { 0x0003bb, "gcedilla" },
967   { 0x0003bc, "tslash" },
968   { 0x0003bd, "ENG" },
969   { 0x0003bf, "eng" },
970   { 0x0003c0, "Amacron" },
971   { 0x0003c7, "Iogonek" },
972   { 0x0003cc, "Eabovedot" },
973   { 0x0003cf, "Imacron" },
974   { 0x0003d1, "Ncedilla" },
975   { 0x0003d2, "Omacron" },
976   { 0x0003d3, "Kcedilla" },
977   { 0x0003d9, "Uogonek" },
978   { 0x0003dd, "Utilde" },
979   { 0x0003de, "Umacron" },
980   { 0x0003e0, "amacron" },
981   { 0x0003e7, "iogonek" },
982   { 0x0003ec, "eabovedot" },
983   { 0x0003ef, "imacron" },
984   { 0x0003f1, "ncedilla" },
985   { 0x0003f2, "omacron" },
986   { 0x0003f3, "kcedilla" },
987   { 0x0003f9, "uogonek" },
988   { 0x0003fd, "utilde" },
989   { 0x0003fe, "umacron" },
990   { 0x00047e, "overline" },
991   { 0x0004a1, "kana_fullstop" },
992   { 0x0004a2, "kana_openingbracket" },
993   { 0x0004a3, "kana_closingbracket" },
994   { 0x0004a4, "kana_comma" },
995   { 0x0004a5, "kana_conjunctive" },
996   { 0x0004a5, "kana_middledot" },
997   { 0x0004a6, "kana_WO" },
998   { 0x0004a7, "kana_a" },
999   { 0x0004a8, "kana_i" },
1000   { 0x0004a9, "kana_u" },
1001   { 0x0004aa, "kana_e" },
1002   { 0x0004ab, "kana_o" },
1003   { 0x0004ac, "kana_ya" },
1004   { 0x0004ad, "kana_yu" },
1005   { 0x0004ae, "kana_yo" },
1006   { 0x0004af, "kana_tsu" },
1007   { 0x0004af, "kana_tu" },
1008   { 0x0004b0, "prolongedsound" },
1009   { 0x0004b1, "kana_A" },
1010   { 0x0004b2, "kana_I" },
1011   { 0x0004b3, "kana_U" },
1012   { 0x0004b4, "kana_E" },
1013   { 0x0004b5, "kana_O" },
1014   { 0x0004b6, "kana_KA" },
1015   { 0x0004b7, "kana_KI" },
1016   { 0x0004b8, "kana_KU" },
1017   { 0x0004b9, "kana_KE" },
1018   { 0x0004ba, "kana_KO" },
1019   { 0x0004bb, "kana_SA" },
1020   { 0x0004bc, "kana_SHI" },
1021   { 0x0004bd, "kana_SU" },
1022   { 0x0004be, "kana_SE" },
1023   { 0x0004bf, "kana_SO" },
1024   { 0x0004c0, "kana_TA" },
1025   { 0x0004c1, "kana_CHI" },
1026   { 0x0004c1, "kana_TI" },
1027   { 0x0004c2, "kana_TSU" },
1028   { 0x0004c2, "kana_TU" },
1029   { 0x0004c3, "kana_TE" },
1030   { 0x0004c4, "kana_TO" },
1031   { 0x0004c5, "kana_NA" },
1032   { 0x0004c6, "kana_NI" },
1033   { 0x0004c7, "kana_NU" },
1034   { 0x0004c8, "kana_NE" },
1035   { 0x0004c9, "kana_NO" },
1036   { 0x0004ca, "kana_HA" },
1037   { 0x0004cb, "kana_HI" },
1038   { 0x0004cc, "kana_FU" },
1039   { 0x0004cc, "kana_HU" },
1040   { 0x0004cd, "kana_HE" },
1041   { 0x0004ce, "kana_HO" },
1042   { 0x0004cf, "kana_MA" },
1043   { 0x0004d0, "kana_MI" },
1044   { 0x0004d1, "kana_MU" },
1045   { 0x0004d2, "kana_ME" },
1046   { 0x0004d3, "kana_MO" },
1047   { 0x0004d4, "kana_YA" },
1048   { 0x0004d5, "kana_YU" },
1049   { 0x0004d6, "kana_YO" },
1050   { 0x0004d7, "kana_RA" },
1051   { 0x0004d8, "kana_RI" },
1052   { 0x0004d9, "kana_RU" },
1053   { 0x0004da, "kana_RE" },
1054   { 0x0004db, "kana_RO" },
1055   { 0x0004dc, "kana_WA" },
1056   { 0x0004dd, "kana_N" },
1057   { 0x0004de, "voicedsound" },
1058   { 0x0004df, "semivoicedsound" },
1059   { 0x0005ac, "Arabic_comma" },
1060   { 0x0005bb, "Arabic_semicolon" },
1061   { 0x0005bf, "Arabic_question_mark" },
1062   { 0x0005c1, "Arabic_hamza" },
1063   { 0x0005c2, "Arabic_maddaonalef" },
1064   { 0x0005c3, "Arabic_hamzaonalef" },
1065   { 0x0005c4, "Arabic_hamzaonwaw" },
1066   { 0x0005c5, "Arabic_hamzaunderalef" },
1067   { 0x0005c6, "Arabic_hamzaonyeh" },
1068   { 0x0005c7, "Arabic_alef" },
1069   { 0x0005c8, "Arabic_beh" },
1070   { 0x0005c9, "Arabic_tehmarbuta" },
1071   { 0x0005ca, "Arabic_teh" },
1072   { 0x0005cb, "Arabic_theh" },
1073   { 0x0005cc, "Arabic_jeem" },
1074   { 0x0005cd, "Arabic_hah" },
1075   { 0x0005ce, "Arabic_khah" },
1076   { 0x0005cf, "Arabic_dal" },
1077   { 0x0005d0, "Arabic_thal" },
1078   { 0x0005d1, "Arabic_ra" },
1079   { 0x0005d2, "Arabic_zain" },
1080   { 0x0005d3, "Arabic_seen" },
1081   { 0x0005d4, "Arabic_sheen" },
1082   { 0x0005d5, "Arabic_sad" },
1083   { 0x0005d6, "Arabic_dad" },
1084   { 0x0005d7, "Arabic_tah" },
1085   { 0x0005d8, "Arabic_zah" },
1086   { 0x0005d9, "Arabic_ain" },
1087   { 0x0005da, "Arabic_ghain" },
1088   { 0x0005e0, "Arabic_tatweel" },
1089   { 0x0005e1, "Arabic_feh" },
1090   { 0x0005e2, "Arabic_qaf" },
1091   { 0x0005e3, "Arabic_kaf" },
1092   { 0x0005e4, "Arabic_lam" },
1093   { 0x0005e5, "Arabic_meem" },
1094   { 0x0005e6, "Arabic_noon" },
1095   { 0x0005e7, "Arabic_ha" },
1096   { 0x0005e7, "Arabic_heh" },
1097   { 0x0005e8, "Arabic_waw" },
1098   { 0x0005e9, "Arabic_alefmaksura" },
1099   { 0x0005ea, "Arabic_yeh" },
1100   { 0x0005eb, "Arabic_fathatan" },
1101   { 0x0005ec, "Arabic_dammatan" },
1102   { 0x0005ed, "Arabic_kasratan" },
1103   { 0x0005ee, "Arabic_fatha" },
1104   { 0x0005ef, "Arabic_damma" },
1105   { 0x0005f0, "Arabic_kasra" },
1106   { 0x0005f1, "Arabic_shadda" },
1107   { 0x0005f2, "Arabic_sukun" },
1108   { 0x0006a1, "Serbian_dje" },
1109   { 0x0006a2, "Macedonia_gje" },
1110   { 0x0006a3, "Cyrillic_io" },
1111   { 0x0006a4, "Ukrainian_ie" },
1112   { 0x0006a4, "Ukranian_je" },
1113   { 0x0006a5, "Macedonia_dse" },
1114   { 0x0006a6, "Ukrainian_i" },
1115   { 0x0006a6, "Ukranian_i" },
1116   { 0x0006a7, "Ukrainian_yi" },
1117   { 0x0006a7, "Ukranian_yi" },
1118   { 0x0006a8, "Cyrillic_je" },
1119   { 0x0006a8, "Serbian_je" },
1120   { 0x0006a9, "Cyrillic_lje" },
1121   { 0x0006a9, "Serbian_lje" },
1122   { 0x0006aa, "Cyrillic_nje" },
1123   { 0x0006aa, "Serbian_nje" },
1124   { 0x0006ab, "Serbian_tshe" },
1125   { 0x0006ac, "Macedonia_kje" },
1126   { 0x0006ae, "Byelorussian_shortu" },
1127   { 0x0006af, "Cyrillic_dzhe" },
1128   { 0x0006af, "Serbian_dze" },
1129   { 0x0006b0, "numerosign" },
1130   { 0x0006b1, "Serbian_DJE" },
1131   { 0x0006b2, "Macedonia_GJE" },
1132   { 0x0006b3, "Cyrillic_IO" },
1133   { 0x0006b4, "Ukrainian_IE" },
1134   { 0x0006b4, "Ukranian_JE" },
1135   { 0x0006b5, "Macedonia_DSE" },
1136   { 0x0006b6, "Ukrainian_I" },
1137   { 0x0006b6, "Ukranian_I" },
1138   { 0x0006b7, "Ukrainian_YI" },
1139   { 0x0006b7, "Ukranian_YI" },
1140   { 0x0006b8, "Cyrillic_JE" },
1141   { 0x0006b8, "Serbian_JE" },
1142   { 0x0006b9, "Cyrillic_LJE" },
1143   { 0x0006b9, "Serbian_LJE" },
1144   { 0x0006ba, "Cyrillic_NJE" },
1145   { 0x0006ba, "Serbian_NJE" },
1146   { 0x0006bb, "Serbian_TSHE" },
1147   { 0x0006bc, "Macedonia_KJE" },
1148   { 0x0006be, "Byelorussian_SHORTU" },
1149   { 0x0006bf, "Cyrillic_DZHE" },
1150   { 0x0006bf, "Serbian_DZE" },
1151   { 0x0006c0, "Cyrillic_yu" },
1152   { 0x0006c1, "Cyrillic_a" },
1153   { 0x0006c2, "Cyrillic_be" },
1154   { 0x0006c3, "Cyrillic_tse" },
1155   { 0x0006c4, "Cyrillic_de" },
1156   { 0x0006c5, "Cyrillic_ie" },
1157   { 0x0006c6, "Cyrillic_ef" },
1158   { 0x0006c7, "Cyrillic_ghe" },
1159   { 0x0006c8, "Cyrillic_ha" },
1160   { 0x0006c9, "Cyrillic_i" },
1161   { 0x0006ca, "Cyrillic_shorti" },
1162   { 0x0006cb, "Cyrillic_ka" },
1163   { 0x0006cc, "Cyrillic_el" },
1164   { 0x0006cd, "Cyrillic_em" },
1165   { 0x0006ce, "Cyrillic_en" },
1166   { 0x0006cf, "Cyrillic_o" },
1167   { 0x0006d0, "Cyrillic_pe" },
1168   { 0x0006d1, "Cyrillic_ya" },
1169   { 0x0006d2, "Cyrillic_er" },
1170   { 0x0006d3, "Cyrillic_es" },
1171   { 0x0006d4, "Cyrillic_te" },
1172   { 0x0006d5, "Cyrillic_u" },
1173   { 0x0006d6, "Cyrillic_zhe" },
1174   { 0x0006d7, "Cyrillic_ve" },
1175   { 0x0006d8, "Cyrillic_softsign" },
1176   { 0x0006d9, "Cyrillic_yeru" },
1177   { 0x0006da, "Cyrillic_ze" },
1178   { 0x0006db, "Cyrillic_sha" },
1179   { 0x0006dc, "Cyrillic_e" },
1180   { 0x0006dd, "Cyrillic_shcha" },
1181   { 0x0006de, "Cyrillic_che" },
1182   { 0x0006df, "Cyrillic_hardsign" },
1183   { 0x0006e0, "Cyrillic_YU" },
1184   { 0x0006e1, "Cyrillic_A" },
1185   { 0x0006e2, "Cyrillic_BE" },
1186   { 0x0006e3, "Cyrillic_TSE" },
1187   { 0x0006e4, "Cyrillic_DE" },
1188   { 0x0006e5, "Cyrillic_IE" },
1189   { 0x0006e6, "Cyrillic_EF" },
1190   { 0x0006e7, "Cyrillic_GHE" },
1191   { 0x0006e8, "Cyrillic_HA" },
1192   { 0x0006e9, "Cyrillic_I" },
1193   { 0x0006ea, "Cyrillic_SHORTI" },
1194   { 0x0006eb, "Cyrillic_KA" },
1195   { 0x0006ec, "Cyrillic_EL" },
1196   { 0x0006ed, "Cyrillic_EM" },
1197   { 0x0006ee, "Cyrillic_EN" },
1198   { 0x0006ef, "Cyrillic_O" },
1199   { 0x0006f0, "Cyrillic_PE" },
1200   { 0x0006f1, "Cyrillic_YA" },
1201   { 0x0006f2, "Cyrillic_ER" },
1202   { 0x0006f3, "Cyrillic_ES" },
1203   { 0x0006f4, "Cyrillic_TE" },
1204   { 0x0006f5, "Cyrillic_U" },
1205   { 0x0006f6, "Cyrillic_ZHE" },
1206   { 0x0006f7, "Cyrillic_VE" },
1207   { 0x0006f8, "Cyrillic_SOFTSIGN" },
1208   { 0x0006f9, "Cyrillic_YERU" },
1209   { 0x0006fa, "Cyrillic_ZE" },
1210   { 0x0006fb, "Cyrillic_SHA" },
1211   { 0x0006fc, "Cyrillic_E" },
1212   { 0x0006fd, "Cyrillic_SHCHA" },
1213   { 0x0006fe, "Cyrillic_CHE" },
1214   { 0x0006ff, "Cyrillic_HARDSIGN" },
1215   { 0x0007a1, "Greek_ALPHAaccent" },
1216   { 0x0007a2, "Greek_EPSILONaccent" },
1217   { 0x0007a3, "Greek_ETAaccent" },
1218   { 0x0007a4, "Greek_IOTAaccent" },
1219   { 0x0007a5, "Greek_IOTAdiaeresis" },
1220   { 0x0007a7, "Greek_OMICRONaccent" },
1221   { 0x0007a8, "Greek_UPSILONaccent" },
1222   { 0x0007a9, "Greek_UPSILONdieresis" },
1223   { 0x0007ab, "Greek_OMEGAaccent" },
1224   { 0x0007ae, "Greek_accentdieresis" },
1225   { 0x0007af, "Greek_horizbar" },
1226   { 0x0007b1, "Greek_alphaaccent" },
1227   { 0x0007b2, "Greek_epsilonaccent" },
1228   { 0x0007b3, "Greek_etaaccent" },
1229   { 0x0007b4, "Greek_iotaaccent" },
1230   { 0x0007b5, "Greek_iotadieresis" },
1231   { 0x0007b6, "Greek_iotaaccentdieresis" },
1232   { 0x0007b7, "Greek_omicronaccent" },
1233   { 0x0007b8, "Greek_upsilonaccent" },
1234   { 0x0007b9, "Greek_upsilondieresis" },
1235   { 0x0007ba, "Greek_upsilonaccentdieresis" },
1236   { 0x0007bb, "Greek_omegaaccent" },
1237   { 0x0007c1, "Greek_ALPHA" },
1238   { 0x0007c2, "Greek_BETA" },
1239   { 0x0007c3, "Greek_GAMMA" },
1240   { 0x0007c4, "Greek_DELTA" },
1241   { 0x0007c5, "Greek_EPSILON" },
1242   { 0x0007c6, "Greek_ZETA" },
1243   { 0x0007c7, "Greek_ETA" },
1244   { 0x0007c8, "Greek_THETA" },
1245   { 0x0007c9, "Greek_IOTA" },
1246   { 0x0007ca, "Greek_KAPPA" },
1247   { 0x0007cb, "Greek_LAMBDA" },
1248   { 0x0007cb, "Greek_LAMDA" },
1249   { 0x0007cc, "Greek_MU" },
1250   { 0x0007cd, "Greek_NU" },
1251   { 0x0007ce, "Greek_XI" },
1252   { 0x0007cf, "Greek_OMICRON" },
1253   { 0x0007d0, "Greek_PI" },
1254   { 0x0007d1, "Greek_RHO" },
1255   { 0x0007d2, "Greek_SIGMA" },
1256   { 0x0007d4, "Greek_TAU" },
1257   { 0x0007d5, "Greek_UPSILON" },
1258   { 0x0007d6, "Greek_PHI" },
1259   { 0x0007d7, "Greek_CHI" },
1260   { 0x0007d8, "Greek_PSI" },
1261   { 0x0007d9, "Greek_OMEGA" },
1262   { 0x0007e1, "Greek_alpha" },
1263   { 0x0007e2, "Greek_beta" },
1264   { 0x0007e3, "Greek_gamma" },
1265   { 0x0007e4, "Greek_delta" },
1266   { 0x0007e5, "Greek_epsilon" },
1267   { 0x0007e6, "Greek_zeta" },
1268   { 0x0007e7, "Greek_eta" },
1269   { 0x0007e8, "Greek_theta" },
1270   { 0x0007e9, "Greek_iota" },
1271   { 0x0007ea, "Greek_kappa" },
1272   { 0x0007eb, "Greek_lambda" },
1273   { 0x0007eb, "Greek_lamda" },
1274   { 0x0007ec, "Greek_mu" },
1275   { 0x0007ed, "Greek_nu" },
1276   { 0x0007ee, "Greek_xi" },
1277   { 0x0007ef, "Greek_omicron" },
1278   { 0x0007f0, "Greek_pi" },
1279   { 0x0007f1, "Greek_rho" },
1280   { 0x0007f2, "Greek_sigma" },
1281   { 0x0007f3, "Greek_finalsmallsigma" },
1282   { 0x0007f4, "Greek_tau" },
1283   { 0x0007f5, "Greek_upsilon" },
1284   { 0x0007f6, "Greek_phi" },
1285   { 0x0007f7, "Greek_chi" },
1286   { 0x0007f8, "Greek_psi" },
1287   { 0x0007f9, "Greek_omega" },
1288   { 0x0008a1, "leftradical" },
1289   { 0x0008a2, "topleftradical" },
1290   { 0x0008a3, "horizconnector" },
1291   { 0x0008a4, "topintegral" },
1292   { 0x0008a5, "botintegral" },
1293   { 0x0008a6, "vertconnector" },
1294   { 0x0008a7, "topleftsqbracket" },
1295   { 0x0008a8, "botleftsqbracket" },
1296   { 0x0008a9, "toprightsqbracket" },
1297   { 0x0008aa, "botrightsqbracket" },
1298   { 0x0008ab, "topleftparens" },
1299   { 0x0008ac, "botleftparens" },
1300   { 0x0008ad, "toprightparens" },
1301   { 0x0008ae, "botrightparens" },
1302   { 0x0008af, "leftmiddlecurlybrace" },
1303   { 0x0008b0, "rightmiddlecurlybrace" },
1304   { 0x0008b1, "topleftsummation" },
1305   { 0x0008b2, "botleftsummation" },
1306   { 0x0008b3, "topvertsummationconnector" },
1307   { 0x0008b4, "botvertsummationconnector" },
1308   { 0x0008b5, "toprightsummation" },
1309   { 0x0008b6, "botrightsummation" },
1310   { 0x0008b7, "rightmiddlesummation" },
1311   { 0x0008bc, "lessthanequal" },
1312   { 0x0008bd, "notequal" },
1313   { 0x0008be, "greaterthanequal" },
1314   { 0x0008bf, "integral" },
1315   { 0x0008c0, "therefore" },
1316   { 0x0008c1, "variation" },
1317   { 0x0008c2, "infinity" },
1318   { 0x0008c5, "nabla" },
1319   { 0x0008c8, "approximate" },
1320   { 0x0008c9, "similarequal" },
1321   { 0x0008cd, "ifonlyif" },
1322   { 0x0008ce, "implies" },
1323   { 0x0008cf, "identical" },
1324   { 0x0008d6, "radical" },
1325   { 0x0008da, "includedin" },
1326   { 0x0008db, "includes" },
1327   { 0x0008dc, "intersection" },
1328   { 0x0008dd, "union" },
1329   { 0x0008de, "logicaland" },
1330   { 0x0008df, "logicalor" },
1331   { 0x0008ef, "partialderivative" },
1332   { 0x0008f6, "function" },
1333   { 0x0008fb, "leftarrow" },
1334   { 0x0008fc, "uparrow" },
1335   { 0x0008fd, "rightarrow" },
1336   { 0x0008fe, "downarrow" },
1337   { 0x0009df, "blank" },
1338   { 0x0009e0, "soliddiamond" },
1339   { 0x0009e1, "checkerboard" },
1340   { 0x0009e2, "ht" },
1341   { 0x0009e3, "ff" },
1342   { 0x0009e4, "cr" },
1343   { 0x0009e5, "lf" },
1344   { 0x0009e8, "nl" },
1345   { 0x0009e9, "vt" },
1346   { 0x0009ea, "lowrightcorner" },
1347   { 0x0009eb, "uprightcorner" },
1348   { 0x0009ec, "upleftcorner" },
1349   { 0x0009ed, "lowleftcorner" },
1350   { 0x0009ee, "crossinglines" },
1351   { 0x0009ef, "horizlinescan1" },
1352   { 0x0009f0, "horizlinescan3" },
1353   { 0x0009f1, "horizlinescan5" },
1354   { 0x0009f2, "horizlinescan7" },
1355   { 0x0009f3, "horizlinescan9" },
1356   { 0x0009f4, "leftt" },
1357   { 0x0009f5, "rightt" },
1358   { 0x0009f6, "bott" },
1359   { 0x0009f7, "topt" },
1360   { 0x0009f8, "vertbar" },
1361   { 0x000aa1, "emspace" },
1362   { 0x000aa2, "enspace" },
1363   { 0x000aa3, "em3space" },
1364   { 0x000aa4, "em4space" },
1365   { 0x000aa5, "digitspace" },
1366   { 0x000aa6, "punctspace" },
1367   { 0x000aa7, "thinspace" },
1368   { 0x000aa8, "hairspace" },
1369   { 0x000aa9, "emdash" },
1370   { 0x000aaa, "endash" },
1371   { 0x000aac, "signifblank" },
1372   { 0x000aae, "ellipsis" },
1373   { 0x000aaf, "doubbaselinedot" },
1374   { 0x000ab0, "onethird" },
1375   { 0x000ab1, "twothirds" },
1376   { 0x000ab2, "onefifth" },
1377   { 0x000ab3, "twofifths" },
1378   { 0x000ab4, "threefifths" },
1379   { 0x000ab5, "fourfifths" },
1380   { 0x000ab6, "onesixth" },
1381   { 0x000ab7, "fivesixths" },
1382   { 0x000ab8, "careof" },
1383   { 0x000abb, "figdash" },
1384   { 0x000abc, "leftanglebracket" },
1385   { 0x000abd, "decimalpoint" },
1386   { 0x000abe, "rightanglebracket" },
1387   { 0x000abf, "marker" },
1388   { 0x000ac3, "oneeighth" },
1389   { 0x000ac4, "threeeighths" },
1390   { 0x000ac5, "fiveeighths" },
1391   { 0x000ac6, "seveneighths" },
1392   { 0x000ac9, "trademark" },
1393   { 0x000aca, "signaturemark" },
1394   { 0x000acb, "trademarkincircle" },
1395   { 0x000acc, "leftopentriangle" },
1396   { 0x000acd, "rightopentriangle" },
1397   { 0x000ace, "emopencircle" },
1398   { 0x000acf, "emopenrectangle" },
1399   { 0x000ad0, "leftsinglequotemark" },
1400   { 0x000ad1, "rightsinglequotemark" },
1401   { 0x000ad2, "leftdoublequotemark" },
1402   { 0x000ad3, "rightdoublequotemark" },
1403   { 0x000ad4, "prescription" },
1404   { 0x000ad6, "minutes" },
1405   { 0x000ad7, "seconds" },
1406   { 0x000ad9, "latincross" },
1407   { 0x000ada, "hexagram" },
1408   { 0x000adb, "filledrectbullet" },
1409   { 0x000adc, "filledlefttribullet" },
1410   { 0x000add, "filledrighttribullet" },
1411   { 0x000ade, "emfilledcircle" },
1412   { 0x000adf, "emfilledrect" },
1413   { 0x000ae0, "enopencircbullet" },
1414   { 0x000ae1, "enopensquarebullet" },
1415   { 0x000ae2, "openrectbullet" },
1416   { 0x000ae3, "opentribulletup" },
1417   { 0x000ae4, "opentribulletdown" },
1418   { 0x000ae5, "openstar" },
1419   { 0x000ae6, "enfilledcircbullet" },
1420   { 0x000ae7, "enfilledsqbullet" },
1421   { 0x000ae8, "filledtribulletup" },
1422   { 0x000ae9, "filledtribulletdown" },
1423   { 0x000aea, "leftpointer" },
1424   { 0x000aeb, "rightpointer" },
1425   { 0x000aec, "club" },
1426   { 0x000aed, "diamond" },
1427   { 0x000aee, "heart" },
1428   { 0x000af0, "maltesecross" },
1429   { 0x000af1, "dagger" },
1430   { 0x000af2, "doubledagger" },
1431   { 0x000af3, "checkmark" },
1432   { 0x000af4, "ballotcross" },
1433   { 0x000af5, "musicalsharp" },
1434   { 0x000af6, "musicalflat" },
1435   { 0x000af7, "malesymbol" },
1436   { 0x000af8, "femalesymbol" },
1437   { 0x000af9, "telephone" },
1438   { 0x000afa, "telephonerecorder" },
1439   { 0x000afb, "phonographcopyright" },
1440   { 0x000afc, "caret" },
1441   { 0x000afd, "singlelowquotemark" },
1442   { 0x000afe, "doublelowquotemark" },
1443   { 0x000aff, "cursor" },
1444   { 0x000ba3, "leftcaret" },
1445   { 0x000ba6, "rightcaret" },
1446   { 0x000ba8, "downcaret" },
1447   { 0x000ba9, "upcaret" },
1448   { 0x000bc0, "overbar" },
1449   { 0x000bc2, "downtack" },
1450   { 0x000bc3, "upshoe" },
1451   { 0x000bc4, "downstile" },
1452   { 0x000bc6, "underbar" },
1453   { 0x000bca, "jot" },
1454   { 0x000bcc, "quad" },
1455   { 0x000bce, "uptack" },
1456   { 0x000bcf, "circle" },
1457   { 0x000bd3, "upstile" },
1458   { 0x000bd6, "downshoe" },
1459   { 0x000bd8, "rightshoe" },
1460   { 0x000bda, "leftshoe" },
1461   { 0x000bdc, "lefttack" },
1462   { 0x000bfc, "righttack" },
1463   { 0x000cdf, "hebrew_doublelowline" },
1464   { 0x000ce0, "hebrew_aleph" },
1465   { 0x000ce1, "hebrew_bet" },
1466   { 0x000ce1, "hebrew_beth" },
1467   { 0x000ce2, "hebrew_gimel" },
1468   { 0x000ce2, "hebrew_gimmel" },
1469   { 0x000ce3, "hebrew_dalet" },
1470   { 0x000ce3, "hebrew_daleth" },
1471   { 0x000ce4, "hebrew_he" },
1472   { 0x000ce5, "hebrew_waw" },
1473   { 0x000ce6, "hebrew_zain" },
1474   { 0x000ce6, "hebrew_zayin" },
1475   { 0x000ce7, "hebrew_chet" },
1476   { 0x000ce7, "hebrew_het" },
1477   { 0x000ce8, "hebrew_tet" },
1478   { 0x000ce8, "hebrew_teth" },
1479   { 0x000ce9, "hebrew_yod" },
1480   { 0x000cea, "hebrew_finalkaph" },
1481   { 0x000ceb, "hebrew_kaph" },
1482   { 0x000cec, "hebrew_lamed" },
1483   { 0x000ced, "hebrew_finalmem" },
1484   { 0x000cee, "hebrew_mem" },
1485   { 0x000cef, "hebrew_finalnun" },
1486   { 0x000cf0, "hebrew_nun" },
1487   { 0x000cf1, "hebrew_samech" },
1488   { 0x000cf1, "hebrew_samekh" },
1489   { 0x000cf2, "hebrew_ayin" },
1490   { 0x000cf3, "hebrew_finalpe" },
1491   { 0x000cf4, "hebrew_pe" },
1492   { 0x000cf5, "hebrew_finalzade" },
1493   { 0x000cf5, "hebrew_finalzadi" },
1494   { 0x000cf6, "hebrew_zade" },
1495   { 0x000cf6, "hebrew_zadi" },
1496   { 0x000cf7, "hebrew_kuf" },
1497   { 0x000cf7, "hebrew_qoph" },
1498   { 0x000cf8, "hebrew_resh" },
1499   { 0x000cf9, "hebrew_shin" },
1500   { 0x000cfa, "hebrew_taf" },
1501   { 0x000cfa, "hebrew_taw" },
1502   { 0x000da1, "Thai_kokai" },
1503   { 0x000da2, "Thai_khokhai" },
1504   { 0x000da3, "Thai_khokhuat" },
1505   { 0x000da4, "Thai_khokhwai" },
1506   { 0x000da5, "Thai_khokhon" },
1507   { 0x000da6, "Thai_khorakhang" },
1508   { 0x000da7, "Thai_ngongu" },
1509   { 0x000da8, "Thai_chochan" },
1510   { 0x000da9, "Thai_choching" },
1511   { 0x000daa, "Thai_chochang" },
1512   { 0x000dab, "Thai_soso" },
1513   { 0x000dac, "Thai_chochoe" },
1514   { 0x000dad, "Thai_yoying" },
1515   { 0x000dae, "Thai_dochada" },
1516   { 0x000daf, "Thai_topatak" },
1517   { 0x000db0, "Thai_thothan" },
1518   { 0x000db1, "Thai_thonangmontho" },
1519   { 0x000db2, "Thai_thophuthao" },
1520   { 0x000db3, "Thai_nonen" },
1521   { 0x000db4, "Thai_dodek" },
1522   { 0x000db5, "Thai_totao" },
1523   { 0x000db6, "Thai_thothung" },
1524   { 0x000db7, "Thai_thothahan" },
1525   { 0x000db8, "Thai_thothong" },
1526   { 0x000db9, "Thai_nonu" },
1527   { 0x000dba, "Thai_bobaimai" },
1528   { 0x000dbb, "Thai_popla" },
1529   { 0x000dbc, "Thai_phophung" },
1530   { 0x000dbd, "Thai_fofa" },
1531   { 0x000dbe, "Thai_phophan" },
1532   { 0x000dbf, "Thai_fofan" },
1533   { 0x000dc0, "Thai_phosamphao" },
1534   { 0x000dc1, "Thai_moma" },
1535   { 0x000dc2, "Thai_yoyak" },
1536   { 0x000dc3, "Thai_rorua" },
1537   { 0x000dc4, "Thai_ru" },
1538   { 0x000dc5, "Thai_loling" },
1539   { 0x000dc6, "Thai_lu" },
1540   { 0x000dc7, "Thai_wowaen" },
1541   { 0x000dc8, "Thai_sosala" },
1542   { 0x000dc9, "Thai_sorusi" },
1543   { 0x000dca, "Thai_sosua" },
1544   { 0x000dcb, "Thai_hohip" },
1545   { 0x000dcc, "Thai_lochula" },
1546   { 0x000dcd, "Thai_oang" },
1547   { 0x000dce, "Thai_honokhuk" },
1548   { 0x000dcf, "Thai_paiyannoi" },
1549   { 0x000dd0, "Thai_saraa" },
1550   { 0x000dd1, "Thai_maihanakat" },
1551   { 0x000dd2, "Thai_saraaa" },
1552   { 0x000dd3, "Thai_saraam" },
1553   { 0x000dd4, "Thai_sarai" },
1554   { 0x000dd5, "Thai_saraii" },
1555   { 0x000dd6, "Thai_saraue" },
1556   { 0x000dd7, "Thai_sarauee" },
1557   { 0x000dd8, "Thai_sarau" },
1558   { 0x000dd9, "Thai_sarauu" },
1559   { 0x000dda, "Thai_phinthu" },
1560   { 0x000dde, "Thai_maihanakat_maitho" },
1561   { 0x000ddf, "Thai_baht" },
1562   { 0x000de0, "Thai_sarae" },
1563   { 0x000de1, "Thai_saraae" },
1564   { 0x000de2, "Thai_sarao" },
1565   { 0x000de3, "Thai_saraaimaimuan" },
1566   { 0x000de4, "Thai_saraaimaimalai" },
1567   { 0x000de5, "Thai_lakkhangyao" },
1568   { 0x000de6, "Thai_maiyamok" },
1569   { 0x000de7, "Thai_maitaikhu" },
1570   { 0x000de8, "Thai_maiek" },
1571   { 0x000de9, "Thai_maitho" },
1572   { 0x000dea, "Thai_maitri" },
1573   { 0x000deb, "Thai_maichattawa" },
1574   { 0x000dec, "Thai_thanthakhat" },
1575   { 0x000ded, "Thai_nikhahit" },
1576   { 0x000df0, "Thai_leksun" },
1577   { 0x000df1, "Thai_leknung" },
1578   { 0x000df2, "Thai_leksong" },
1579   { 0x000df3, "Thai_leksam" },
1580   { 0x000df4, "Thai_leksi" },
1581   { 0x000df5, "Thai_lekha" },
1582   { 0x000df6, "Thai_lekhok" },
1583   { 0x000df7, "Thai_lekchet" },
1584   { 0x000df8, "Thai_lekpaet" },
1585   { 0x000df9, "Thai_lekkao" },
1586   { 0x000ea1, "Hangul_Kiyeog" },
1587   { 0x000ea2, "Hangul_SsangKiyeog" },
1588   { 0x000ea3, "Hangul_KiyeogSios" },
1589   { 0x000ea4, "Hangul_Nieun" },
1590   { 0x000ea5, "Hangul_NieunJieuj" },
1591   { 0x000ea6, "Hangul_NieunHieuh" },
1592   { 0x000ea7, "Hangul_Dikeud" },
1593   { 0x000ea8, "Hangul_SsangDikeud" },
1594   { 0x000ea9, "Hangul_Rieul" },
1595   { 0x000eaa, "Hangul_RieulKiyeog" },
1596   { 0x000eab, "Hangul_RieulMieum" },
1597   { 0x000eac, "Hangul_RieulPieub" },
1598   { 0x000ead, "Hangul_RieulSios" },
1599   { 0x000eae, "Hangul_RieulTieut" },
1600   { 0x000eaf, "Hangul_RieulPhieuf" },
1601   { 0x000eb0, "Hangul_RieulHieuh" },
1602   { 0x000eb1, "Hangul_Mieum" },
1603   { 0x000eb2, "Hangul_Pieub" },
1604   { 0x000eb3, "Hangul_SsangPieub" },
1605   { 0x000eb4, "Hangul_PieubSios" },
1606   { 0x000eb5, "Hangul_Sios" },
1607   { 0x000eb6, "Hangul_SsangSios" },
1608   { 0x000eb7, "Hangul_Ieung" },
1609   { 0x000eb8, "Hangul_Jieuj" },
1610   { 0x000eb9, "Hangul_SsangJieuj" },
1611   { 0x000eba, "Hangul_Cieuc" },
1612   { 0x000ebb, "Hangul_Khieuq" },
1613   { 0x000ebc, "Hangul_Tieut" },
1614   { 0x000ebd, "Hangul_Phieuf" },
1615   { 0x000ebe, "Hangul_Hieuh" },
1616   { 0x000ebf, "Hangul_A" },
1617   { 0x000ec0, "Hangul_AE" },
1618   { 0x000ec1, "Hangul_YA" },
1619   { 0x000ec2, "Hangul_YAE" },
1620   { 0x000ec3, "Hangul_EO" },
1621   { 0x000ec4, "Hangul_E" },
1622   { 0x000ec5, "Hangul_YEO" },
1623   { 0x000ec6, "Hangul_YE" },
1624   { 0x000ec7, "Hangul_O" },
1625   { 0x000ec8, "Hangul_WA" },
1626   { 0x000ec9, "Hangul_WAE" },
1627   { 0x000eca, "Hangul_OE" },
1628   { 0x000ecb, "Hangul_YO" },
1629   { 0x000ecc, "Hangul_U" },
1630   { 0x000ecd, "Hangul_WEO" },
1631   { 0x000ece, "Hangul_WE" },
1632   { 0x000ecf, "Hangul_WI" },
1633   { 0x000ed0, "Hangul_YU" },
1634   { 0x000ed1, "Hangul_EU" },
1635   { 0x000ed2, "Hangul_YI" },
1636   { 0x000ed3, "Hangul_I" },
1637   { 0x000ed4, "Hangul_J_Kiyeog" },
1638   { 0x000ed5, "Hangul_J_SsangKiyeog" },
1639   { 0x000ed6, "Hangul_J_KiyeogSios" },
1640   { 0x000ed7, "Hangul_J_Nieun" },
1641   { 0x000ed8, "Hangul_J_NieunJieuj" },
1642   { 0x000ed9, "Hangul_J_NieunHieuh" },
1643   { 0x000eda, "Hangul_J_Dikeud" },
1644   { 0x000edb, "Hangul_J_Rieul" },
1645   { 0x000edc, "Hangul_J_RieulKiyeog" },
1646   { 0x000edd, "Hangul_J_RieulMieum" },
1647   { 0x000ede, "Hangul_J_RieulPieub" },
1648   { 0x000edf, "Hangul_J_RieulSios" },
1649   { 0x000ee0, "Hangul_J_RieulTieut" },
1650   { 0x000ee1, "Hangul_J_RieulPhieuf" },
1651   { 0x000ee2, "Hangul_J_RieulHieuh" },
1652   { 0x000ee3, "Hangul_J_Mieum" },
1653   { 0x000ee4, "Hangul_J_Pieub" },
1654   { 0x000ee5, "Hangul_J_PieubSios" },
1655   { 0x000ee6, "Hangul_J_Sios" },
1656   { 0x000ee7, "Hangul_J_SsangSios" },
1657   { 0x000ee8, "Hangul_J_Ieung" },
1658   { 0x000ee9, "Hangul_J_Jieuj" },
1659   { 0x000eea, "Hangul_J_Cieuc" },
1660   { 0x000eeb, "Hangul_J_Khieuq" },
1661   { 0x000eec, "Hangul_J_Tieut" },
1662   { 0x000eed, "Hangul_J_Phieuf" },
1663   { 0x000eee, "Hangul_J_Hieuh" },
1664   { 0x000eef, "Hangul_RieulYeorinHieuh" },
1665   { 0x000ef0, "Hangul_SunkyeongeumMieum" },
1666   { 0x000ef1, "Hangul_SunkyeongeumPieub" },
1667   { 0x000ef2, "Hangul_PanSios" },
1668   { 0x000ef3, "Hangul_KkogjiDalrinIeung" },
1669   { 0x000ef4, "Hangul_SunkyeongeumPhieuf" },
1670   { 0x000ef5, "Hangul_YeorinHieuh" },
1671   { 0x000ef6, "Hangul_AraeA" },
1672   { 0x000ef7, "Hangul_AraeAE" },
1673   { 0x000ef8, "Hangul_J_PanSios" },
1674   { 0x000ef9, "Hangul_J_KkogjiDalrinIeung" },
1675   { 0x000efa, "Hangul_J_YeorinHieuh" },
1676   { 0x000eff, "Korean_Won" },
1677   { 0x0013bc, "OE" },
1678   { 0x0013bd, "oe" },
1679   { 0x0013be, "Ydiaeresis" },
1680   { 0x0020a0, "EcuSign" },
1681   { 0x0020a1, "ColonSign" },
1682   { 0x0020a2, "CruzeiroSign" },
1683   { 0x0020a3, "FFrancSign" },
1684   { 0x0020a4, "LiraSign" },
1685   { 0x0020a5, "MillSign" },
1686   { 0x0020a6, "NairaSign" },
1687   { 0x0020a7, "PesetaSign" },
1688   { 0x0020a8, "RupeeSign" },
1689   { 0x0020a9, "WonSign" },
1690   { 0x0020aa, "NewSheqelSign" },
1691   { 0x0020ab, "DongSign" },
1692   { 0x0020ac, "EuroSign" },
1693   { 0x00fd01, "3270_Duplicate" },
1694   { 0x00fd02, "3270_FieldMark" },
1695   { 0x00fd03, "3270_Right2" },
1696   { 0x00fd04, "3270_Left2" },
1697   { 0x00fd05, "3270_BackTab" },
1698   { 0x00fd06, "3270_EraseEOF" },
1699   { 0x00fd07, "3270_EraseInput" },
1700   { 0x00fd08, "3270_Reset" },
1701   { 0x00fd09, "3270_Quit" },
1702   { 0x00fd0a, "3270_PA1" },
1703   { 0x00fd0b, "3270_PA2" },
1704   { 0x00fd0c, "3270_PA3" },
1705   { 0x00fd0d, "3270_Test" },
1706   { 0x00fd0e, "3270_Attn" },
1707   { 0x00fd0f, "3270_CursorBlink" },
1708   { 0x00fd10, "3270_AltCursor" },
1709   { 0x00fd11, "3270_KeyClick" },
1710   { 0x00fd12, "3270_Jump" },
1711   { 0x00fd13, "3270_Ident" },
1712   { 0x00fd14, "3270_Rule" },
1713   { 0x00fd15, "3270_Copy" },
1714   { 0x00fd16, "3270_Play" },
1715   { 0x00fd17, "3270_Setup" },
1716   { 0x00fd18, "3270_Record" },
1717   { 0x00fd19, "3270_ChangeScreen" },
1718   { 0x00fd1a, "3270_DeleteWord" },
1719   { 0x00fd1b, "3270_ExSelect" },
1720   { 0x00fd1c, "3270_CursorSelect" },
1721   { 0x00fd1d, "3270_PrintScreen" },
1722   { 0x00fd1e, "3270_Enter" },
1723   { 0x00fe01, "ISO_Lock" },
1724   { 0x00fe02, "ISO_Level2_Latch" },
1725   { 0x00fe03, "ISO_Level3_Shift" },
1726   { 0x00fe04, "ISO_Level3_Latch" },
1727   { 0x00fe05, "ISO_Level3_Lock" },
1728   { 0x00fe06, "ISO_Group_Latch" },
1729   { 0x00fe07, "ISO_Group_Lock" },
1730   { 0x00fe08, "ISO_Next_Group" },
1731   { 0x00fe09, "ISO_Next_Group_Lock" },
1732   { 0x00fe0a, "ISO_Prev_Group" },
1733   { 0x00fe0b, "ISO_Prev_Group_Lock" },
1734   { 0x00fe0c, "ISO_First_Group" },
1735   { 0x00fe0d, "ISO_First_Group_Lock" },
1736   { 0x00fe0e, "ISO_Last_Group" },
1737   { 0x00fe0f, "ISO_Last_Group_Lock" },
1738   { 0x00fe20, "ISO_Left_Tab" },
1739   { 0x00fe21, "ISO_Move_Line_Up" },
1740   { 0x00fe22, "ISO_Move_Line_Down" },
1741   { 0x00fe23, "ISO_Partial_Line_Up" },
1742   { 0x00fe24, "ISO_Partial_Line_Down" },
1743   { 0x00fe25, "ISO_Partial_Space_Left" },
1744   { 0x00fe26, "ISO_Partial_Space_Right" },
1745   { 0x00fe27, "ISO_Set_Margin_Left" },
1746   { 0x00fe28, "ISO_Set_Margin_Right" },
1747   { 0x00fe29, "ISO_Release_Margin_Left" },
1748   { 0x00fe2a, "ISO_Release_Margin_Right" },
1749   { 0x00fe2b, "ISO_Release_Both_Margins" },
1750   { 0x00fe2c, "ISO_Fast_Cursor_Left" },
1751   { 0x00fe2d, "ISO_Fast_Cursor_Right" },
1752   { 0x00fe2e, "ISO_Fast_Cursor_Up" },
1753   { 0x00fe2f, "ISO_Fast_Cursor_Down" },
1754   { 0x00fe30, "ISO_Continuous_Underline" },
1755   { 0x00fe31, "ISO_Discontinuous_Underline" },
1756   { 0x00fe32, "ISO_Emphasize" },
1757   { 0x00fe33, "ISO_Center_Object" },
1758   { 0x00fe34, "ISO_Enter" },
1759   { 0x00fe50, "dead_grave" },
1760   { 0x00fe51, "dead_acute" },
1761   { 0x00fe52, "dead_circumflex" },
1762   { 0x00fe53, "dead_tilde" },
1763   { 0x00fe54, "dead_macron" },
1764   { 0x00fe55, "dead_breve" },
1765   { 0x00fe56, "dead_abovedot" },
1766   { 0x00fe57, "dead_diaeresis" },
1767   { 0x00fe58, "dead_abovering" },
1768   { 0x00fe59, "dead_doubleacute" },
1769   { 0x00fe5a, "dead_caron" },
1770   { 0x00fe5b, "dead_cedilla" },
1771   { 0x00fe5c, "dead_ogonek" },
1772   { 0x00fe5d, "dead_iota" },
1773   { 0x00fe5e, "dead_voiced_sound" },
1774   { 0x00fe5f, "dead_semivoiced_sound" },
1775   { 0x00fe60, "dead_belowdot" },
1776   { 0x00fe70, "AccessX_Enable" },
1777   { 0x00fe71, "AccessX_Feedback_Enable" },
1778   { 0x00fe72, "RepeatKeys_Enable" },
1779   { 0x00fe73, "SlowKeys_Enable" },
1780   { 0x00fe74, "BounceKeys_Enable" },
1781   { 0x00fe75, "StickyKeys_Enable" },
1782   { 0x00fe76, "MouseKeys_Enable" },
1783   { 0x00fe77, "MouseKeys_Accel_Enable" },
1784   { 0x00fe78, "Overlay1_Enable" },
1785   { 0x00fe79, "Overlay2_Enable" },
1786   { 0x00fe7a, "AudibleBell_Enable" },
1787   { 0x00fed0, "First_Virtual_Screen" },
1788   { 0x00fed1, "Prev_Virtual_Screen" },
1789   { 0x00fed2, "Next_Virtual_Screen" },
1790   { 0x00fed4, "Last_Virtual_Screen" },
1791   { 0x00fed5, "Terminate_Server" },
1792   { 0x00fee0, "Pointer_Left" },
1793   { 0x00fee1, "Pointer_Right" },
1794   { 0x00fee2, "Pointer_Up" },
1795   { 0x00fee3, "Pointer_Down" },
1796   { 0x00fee4, "Pointer_UpLeft" },
1797   { 0x00fee5, "Pointer_UpRight" },
1798   { 0x00fee6, "Pointer_DownLeft" },
1799   { 0x00fee7, "Pointer_DownRight" },
1800   { 0x00fee8, "Pointer_Button_Dflt" },
1801   { 0x00fee9, "Pointer_Button1" },
1802   { 0x00feea, "Pointer_Button2" },
1803   { 0x00feeb, "Pointer_Button3" },
1804   { 0x00feec, "Pointer_Button4" },
1805   { 0x00feed, "Pointer_Button5" },
1806   { 0x00feee, "Pointer_DblClick_Dflt" },
1807   { 0x00feef, "Pointer_DblClick1" },
1808   { 0x00fef0, "Pointer_DblClick2" },
1809   { 0x00fef1, "Pointer_DblClick3" },
1810   { 0x00fef2, "Pointer_DblClick4" },
1811   { 0x00fef3, "Pointer_DblClick5" },
1812   { 0x00fef4, "Pointer_Drag_Dflt" },
1813   { 0x00fef5, "Pointer_Drag1" },
1814   { 0x00fef6, "Pointer_Drag2" },
1815   { 0x00fef7, "Pointer_Drag3" },
1816   { 0x00fef8, "Pointer_Drag4" },
1817   { 0x00fef9, "Pointer_EnableKeys" },
1818   { 0x00fefa, "Pointer_Accelerate" },
1819   { 0x00fefb, "Pointer_DfltBtnNext" },
1820   { 0x00fefc, "Pointer_DfltBtnPrev" },
1821   { 0x00fefd, "Pointer_Drag5" },
1822   { 0x00ff08, "BackSpace" },
1823   { 0x00ff09, "Tab" },
1824   { 0x00ff0a, "Linefeed" },
1825   { 0x00ff0b, "Clear" },
1826   { 0x00ff0d, "Return" },
1827   { 0x00ff13, "Pause" },
1828   { 0x00ff14, "Scroll_Lock" },
1829   { 0x00ff15, "Sys_Req" },
1830   { 0x00ff1b, "Escape" },
1831   { 0x00ff20, "Multi_key" },
1832   { 0x00ff21, "Kanji" },
1833   { 0x00ff22, "Muhenkan" },
1834   { 0x00ff23, "Henkan" },
1835   { 0x00ff23, "Henkan_Mode" },
1836   { 0x00ff24, "Romaji" },
1837   { 0x00ff25, "Hiragana" },
1838   { 0x00ff26, "Katakana" },
1839   { 0x00ff27, "Hiragana_Katakana" },
1840   { 0x00ff28, "Zenkaku" },
1841   { 0x00ff29, "Hankaku" },
1842   { 0x00ff2a, "Zenkaku_Hankaku" },
1843   { 0x00ff2b, "Touroku" },
1844   { 0x00ff2c, "Massyo" },
1845   { 0x00ff2d, "Kana_Lock" },
1846   { 0x00ff2e, "Kana_Shift" },
1847   { 0x00ff2f, "Eisu_Shift" },
1848   { 0x00ff30, "Eisu_toggle" },
1849   { 0x00ff31, "Hangul" },
1850   { 0x00ff32, "Hangul_Start" },
1851   { 0x00ff33, "Hangul_End" },
1852   { 0x00ff34, "Hangul_Hanja" },
1853   { 0x00ff35, "Hangul_Jamo" },
1854   { 0x00ff36, "Hangul_Romaja" },
1855   { 0x00ff37, "Codeinput" },
1856   { 0x00ff38, "Hangul_Jeonja" },
1857   { 0x00ff39, "Hangul_Banja" },
1858   { 0x00ff3a, "Hangul_PreHanja" },
1859   { 0x00ff3b, "Hangul_PostHanja" },
1860   { 0x00ff3c, "SingleCandidate" },
1861   { 0x00ff3d, "MultipleCandidate" },
1862   { 0x00ff3e, "PreviousCandidate" },
1863   { 0x00ff3f, "Hangul_Special" },
1864   { 0x00ff50, "Home" },
1865   { 0x00ff51, "Left" },
1866   { 0x00ff52, "Up" },
1867   { 0x00ff53, "Right" },
1868   { 0x00ff54, "Down" },
1869   { 0x00ff55, "Page_Up" },
1870   { 0x00ff55, "Prior" },
1871   { 0x00ff56, "Next" },
1872   { 0x00ff56, "Page_Down" },
1873   { 0x00ff57, "End" },
1874   { 0x00ff58, "Begin" },
1875   { 0x00ff60, "Select" },
1876   { 0x00ff61, "Print" },
1877   { 0x00ff62, "Execute" },
1878   { 0x00ff63, "Insert" },
1879   { 0x00ff65, "Undo" },
1880   { 0x00ff66, "Redo" },
1881   { 0x00ff67, "Menu" },
1882   { 0x00ff68, "Find" },
1883   { 0x00ff69, "Cancel" },
1884   { 0x00ff6a, "Help" },
1885   { 0x00ff6b, "Break" },
1886   { 0x00ff7e, "Arabic_switch" },
1887   { 0x00ff7e, "Greek_switch" },
1888   { 0x00ff7e, "Hangul_switch" },
1889   { 0x00ff7e, "Hebrew_switch" },
1890   { 0x00ff7e, "ISO_Group_Shift" },
1891   { 0x00ff7e, "Mode_switch" },
1892   { 0x00ff7e, "kana_switch" },
1893   { 0x00ff7e, "script_switch" },
1894   { 0x00ff7f, "Num_Lock" },
1895   { 0x00ff80, "KP_Space" },
1896   { 0x00ff89, "KP_Tab" },
1897   { 0x00ff8d, "KP_Enter" },
1898   { 0x00ff91, "KP_F1" },
1899   { 0x00ff92, "KP_F2" },
1900   { 0x00ff93, "KP_F3" },
1901   { 0x00ff94, "KP_F4" },
1902   { 0x00ff95, "KP_Home" },
1903   { 0x00ff96, "KP_Left" },
1904   { 0x00ff97, "KP_Up" },
1905   { 0x00ff98, "KP_Right" },
1906   { 0x00ff99, "KP_Down" },
1907   { 0x00ff9a, "KP_Page_Up" },
1908   { 0x00ff9a, "KP_Prior" },
1909   { 0x00ff9b, "KP_Next" },
1910   { 0x00ff9b, "KP_Page_Down" },
1911   { 0x00ff9c, "KP_End" },
1912   { 0x00ff9d, "KP_Begin" },
1913   { 0x00ff9e, "KP_Insert" },
1914   { 0x00ff9f, "KP_Delete" },
1915   { 0x00ffaa, "KP_Multiply" },
1916   { 0x00ffab, "KP_Add" },
1917   { 0x00ffac, "KP_Separator" },
1918   { 0x00ffad, "KP_Subtract" },
1919   { 0x00ffae, "KP_Decimal" },
1920   { 0x00ffaf, "KP_Divide" },
1921   { 0x00ffb0, "KP_0" },
1922   { 0x00ffb1, "KP_1" },
1923   { 0x00ffb2, "KP_2" },
1924   { 0x00ffb3, "KP_3" },
1925   { 0x00ffb4, "KP_4" },
1926   { 0x00ffb5, "KP_5" },
1927   { 0x00ffb6, "KP_6" },
1928   { 0x00ffb7, "KP_7" },
1929   { 0x00ffb8, "KP_8" },
1930   { 0x00ffb9, "KP_9" },
1931   { 0x00ffbd, "KP_Equal" },
1932   { 0x00ffbe, "F1" },
1933   { 0x00ffbf, "F2" },
1934   { 0x00ffc0, "F3" },
1935   { 0x00ffc1, "F4" },
1936   { 0x00ffc2, "F5" },
1937   { 0x00ffc3, "F6" },
1938   { 0x00ffc4, "F7" },
1939   { 0x00ffc5, "F8" },
1940   { 0x00ffc6, "F9" },
1941   { 0x00ffc7, "F10" },
1942   { 0x00ffc8, "F11" },
1943   { 0x00ffc9, "F12" },
1944   { 0x00ffca, "F13" },
1945   { 0x00ffcb, "F14" },
1946   { 0x00ffcc, "F15" },
1947   { 0x00ffcd, "F16" },
1948   { 0x00ffce, "F17" },
1949   { 0x00ffcf, "F18" },
1950   { 0x00ffd0, "F19" },
1951   { 0x00ffd1, "F20" },
1952   { 0x00ffd2, "F21" },
1953   { 0x00ffd3, "F22" },
1954   { 0x00ffd4, "F23" },
1955   { 0x00ffd5, "F24" },
1956   { 0x00ffd6, "F25" },
1957   { 0x00ffd7, "F26" },
1958   { 0x00ffd8, "F27" },
1959   { 0x00ffd9, "F28" },
1960   { 0x00ffda, "F29" },
1961   { 0x00ffdb, "F30" },
1962   { 0x00ffdc, "F31" },
1963   { 0x00ffdd, "F32" },
1964   { 0x00ffde, "F33" },
1965   { 0x00ffdf, "F34" },
1966   { 0x00ffe0, "F35" },
1967   { 0x00ffe1, "Shift_L" },
1968   { 0x00ffe2, "Shift_R" },
1969   { 0x00ffe3, "Control_L" },
1970   { 0x00ffe4, "Control_R" },
1971   { 0x00ffe5, "Caps_Lock" },
1972   { 0x00ffe6, "Shift_Lock" },
1973   { 0x00ffe7, "Meta_L" },
1974   { 0x00ffe8, "Meta_R" },
1975   { 0x00ffe9, "Alt_L" },
1976   { 0x00ffea, "Alt_R" },
1977   { 0x00ffeb, "Super_L" },
1978   { 0x00ffec, "Super_R" },
1979   { 0x00ffed, "Hyper_L" },
1980   { 0x00ffee, "Hyper_R" },
1981   { 0x00ffff, "Delete" },
1982   { 0xffffff, "VoidSymbol" },
1983 };
1984
1985 #define GDK_NUM_KEYS (sizeof (gdk_keys_by_keyval) / sizeof (gdk_keys_by_keyval[0]))
1986
1987 static struct gdk_key *gdk_keys_by_name = NULL;
1988
1989 static int
1990 gdk_keys_keyval_compare (const void *pkey, const void *pbase)
1991 {
1992   return (*(int *) pkey) - ((struct gdk_key *) pbase)->keyval;
1993 }
1994
1995 gchar*
1996 gdk_keyval_name (guint        keyval)
1997 {
1998   struct gdk_key *found =
1999     bsearch (&keyval, gdk_keys_by_keyval,
2000              GDK_NUM_KEYS, sizeof (struct gdk_key),
2001              gdk_keys_keyval_compare);
2002   if (found != NULL)
2003     return (gchar *) found->name;
2004   else
2005     return NULL;
2006 }
2007
2008 static int 
2009 gdk_key_compare_by_name (const void *a, const void *b)
2010 {
2011   return strcmp (((const struct gdk_key *) a)->name, ((const struct gdk_key *) b)->name);
2012 }
2013
2014 static int
2015 gdk_keys_name_compare (const void *pkey, const void *pbase)
2016 {
2017   return strcmp ((const char *) pkey, ((const struct gdk_key *) pbase)->name);
2018 }
2019
2020 guint
2021 gdk_keyval_from_name (const gchar *keyval_name)
2022 {
2023   struct gdk_key *found;
2024
2025   g_return_val_if_fail (keyval_name != NULL, 0);
2026   
2027   if (gdk_keys_by_name == NULL)
2028     {
2029       gdk_keys_by_name = g_new (struct gdk_key, GDK_NUM_KEYS);
2030
2031       memcpy (gdk_keys_by_name, gdk_keys_by_keyval,
2032               GDK_NUM_KEYS * sizeof (struct gdk_key));
2033
2034       qsort (gdk_keys_by_name, GDK_NUM_KEYS, sizeof (struct gdk_key),
2035              gdk_key_compare_by_name);
2036     }
2037
2038   found = bsearch (keyval_name, gdk_keys_by_name,
2039                    GDK_NUM_KEYS, sizeof (struct gdk_key),
2040                    gdk_keys_name_compare);
2041   if (found != NULL)
2042     return found->keyval;
2043   else
2044     return GDK_VoidSymbol;
2045 }
2046
2047 guint
2048 gdk_keyval_to_upper (guint        keyval)
2049 {
2050   if (keyval)
2051     {
2052       KeySym lower_val = 0;
2053       KeySym upper_val = 0;
2054       
2055       gdkx_XConvertCase (keyval, &lower_val, &upper_val);
2056       return upper_val;
2057     }
2058   return 0;
2059 }
2060
2061 guint
2062 gdk_keyval_to_lower (guint        keyval)
2063 {
2064   if (keyval)
2065     {
2066       KeySym lower_val = 0;
2067       KeySym upper_val = 0;
2068       
2069       gdkx_XConvertCase (keyval, &lower_val, &upper_val);
2070       return lower_val;
2071     }
2072   return 0;
2073 }
2074
2075 gboolean
2076 gdk_keyval_is_upper (guint        keyval)
2077 {
2078   if (keyval)
2079     {
2080       KeySym lower_val = 0;
2081       KeySym upper_val = 0;
2082       
2083       gdkx_XConvertCase (keyval, &lower_val, &upper_val);
2084       return upper_val == keyval;
2085     }
2086   return TRUE;
2087 }
2088
2089 gboolean
2090 gdk_keyval_is_lower (guint        keyval)
2091 {
2092   if (keyval)
2093     {
2094       KeySym lower_val = 0;
2095       KeySym upper_val = 0;
2096       
2097       gdkx_XConvertCase (keyval, &lower_val, &upper_val);
2098       return lower_val == keyval;
2099     }
2100   return TRUE;
2101 }
2102
2103
2104 void
2105 gdk_threads_enter ()
2106 {
2107   GDK_THREADS_ENTER ();
2108 }
2109
2110 void
2111 gdk_threads_leave ()
2112 {
2113   GDK_THREADS_LEAVE ();
2114 }