home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / FLTK-1.0.6 / src / dump_compose.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-06  |  756 b   |  27 lines

  1. /* write out the documentation for the compose key */
  2.  
  3. /* copy the string from Fl_Input.C */
  4. static const char* const compose_pairs =
  5. "  ! @ # $ y=| & : c a <<~ - r _ * +-2 3 ' u p . , 1 o >>141234? "
  6. "A`A'A^A~A:A*AEC,E`E'E^E:I`I'I^I:D-N~O`O'O^O~O:x O/U`U'U^U:Y'DDss"
  7. "a`a'a^a~a:a*aec,e`e'e^e:i`i'i^i:d-n~o`o'o^o~o:-:o/u`u'u^u:y'ddy:";
  8.  
  9. #include <stdio.h>
  10.  
  11. int main() {
  12.   int x,y;
  13.   for (x = 0; x<16; x++) {
  14.     for (y = 0; y<6; y++) {
  15.       const char *p = compose_pairs + (16*y+x)*2;
  16.       if (p[1] == ' ')
  17.     printf("<td><code>%c </code>   %c\n",
  18.            p[0],(p-compose_pairs)/2+0xA0);
  19.       else
  20.     printf("<td><code>%c%c</code>   %c\n",
  21.            p[0],p[1],(p-compose_pairs)/2+0xA0);
  22.     }
  23.     printf("<tr>");
  24.   }
  25.   return 0;
  26. }
  27.