blob: fe41991cf98530bf042f3c3f9cd488aceda97dcc [file] [log] [blame]
DRC2ff39b82011-07-28 08:38:59 +00001/* write out the documentation for the compose key */
2
3/* copy the string from Fl_Input.C */
4static 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
11int 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&nbsp</code>&nbsp&nbsp&nbsp%c\n",
18 p[0],(p-compose_pairs)/2+0xA0);
19 else
20 printf("<td><code>%c%c</code>&nbsp&nbsp&nbsp%c\n",
21 p[0],p[1],(p-compose_pairs)/2+0xA0);
22 }
23 printf("<tr>");
24 }
25 return 0;
26}