… | |
… | |
8 | print TABLE <<EOF; |
8 | print TABLE <<EOF; |
9 | // |
9 | // |
10 | // AUTOMATICALLLY GENERATED by gencompose |
10 | // AUTOMATICALLLY GENERATED by gencompose |
11 | // |
11 | // |
12 | |
12 | |
13 | struct rxvt_compose { |
13 | struct rxvt_compose_entry { |
14 | uint32_t c1, c2, r; |
14 | uint32_t c1, c2, r; |
15 | } rxvt_compose_table = { |
15 | } rxvt_compose_table[] = { |
16 | #ifdef ENCODING_COMPOSE |
16 | #ifdef ENCODING_COMPOSE |
17 | EOF |
17 | EOF |
18 | |
18 | |
19 | my %docom = qw(initial | medial | final | isolated | compat | none |); |
19 | my %docom = qw(initial | medial | final | isolated | compat | none |); |
20 | |
20 | |
… | |
… | |
30 | } |
30 | } |
31 | |
31 | |
32 | for (sort { $a->[0] cmp $b->[0] } @compose) { |
32 | for (sort { $a->[0] cmp $b->[0] } @compose) { |
33 | next if $seen{$_->[1],$_->[2]}++; |
33 | next if $seen{$_->[1],$_->[2]}++; |
34 | printf TABLE " { 0x%05x, 0x%05x, 0x%05x },\n", $_->[1], $_->[2], $_->[3]; |
34 | printf TABLE " { 0x%05x, 0x%05x, 0x%05x },\n", $_->[1], $_->[2], $_->[3]; |
35 | $count++; |
|
|
36 | } |
35 | } |
37 | |
36 | |
38 | |
37 | |
39 | print TABLE <<EOF; |
38 | print TABLE <<EOF; |
40 | #define ENCODING_COMPOSE_COUNT $count |
|
|
41 | #else |
|
|
42 | #define ENCODING_COMPOSE_COUNT 0 |
|
|
43 | #endif |
39 | #endif |
44 | }; |
40 | }; |
45 | EOF |
41 | EOF |