dump_compose.c 782 B

1234567891011121314151617181920212223242526
  1. /* write out the documentation for the compose key */
  2. /* copy the string from Fl_Input.C */
  3. static const char* const compose_pairs =
  4. " ! @ # $ y=| & : c a <<~ - r _ * +-2 3 ' u p . , 1 o >>141234? "
  5. "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"
  6. "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:";
  7. #include <stdio.h>
  8. int main() {
  9. int x,y;
  10. for (x = 0; x<16; x++) {
  11. for (y = 0; y<6; y++) {
  12. const char *p = compose_pairs + (16*y+x)*2;
  13. if (p[1] == ' ')
  14. printf("<td><code>%c&nbsp</code>&nbsp&nbsp&nbsp%c\n",
  15. p[0],(p-compose_pairs)/2+0xA0);
  16. else
  17. printf("<td><code>%c%c</code>&nbsp&nbsp&nbsp%c\n",
  18. p[0],p[1],(p-compose_pairs)/2+0xA0);
  19. }
  20. printf("<tr>");
  21. }
  22. return 0;
  23. }