-my @config = qw(
- punctuation/common punctuation/marks
- latin/sample
- symbols/signs1
- math/logic
-);
-$_ and m{/*+(.+)} and @config = split /[ ]/, $1 for $ENV{PATH_INFO}, $get{q};
-@config = qw(ipa/cons ipa/vowels) if 0;
-
-for (@config) {
- my ($tablegroup, $tablename) = split m{/}, $_, 2;
-
- print '<table class=mapped>';
- printf '<caption>%s</caption>', "$tablegroup: $tablename";
- say '';
- print '<col>' x 3;
- print "<colgroup span=$_>" for 2, map { scalar @{$oslist{$_}} } @ossel;
- print '<thead><tr>';
- print '<td colspan=2>char';
- print '<td>name';
- print '<td>di<td>html';
- printf('<td colspan=%d title="%s">%s',
- (map {
- scalar @{$_},
- join(', ', map { $_->{-name} } @font{ @{$_} }),
- } $oslist{$_}),
- $_,
- ) for @ossel;
- say '</thead>';
- my $table = $tables->{$tablegroup}->{$tablename};
-
- for my $chr (@$table) {
- $chr =~ m/^\./ .. 1 or next;
- given ($chr) {
- when (/^[.]/) {
- print "<tbody style=\"border-bottom:3px double #AAA\">\n";
- next;
- }
- when ([qw(> - =)]) {
- next;
- }
+# output character list
+
+print '<table class=mapped>';
+print '<col><col>';
+print "<colgroup span=$_>" for map { scalar @{$oslist{$_}} } @ossel;
+
+print '<thead><tr>';
+print '<th colspan=2>';
+printf '<th colspan=%d>%s fonts', scalar @{ $oslist{$_} }, $_ for @ossel;
+
+print '<tr>';
+print '<th colspan=2>';
+printf '<td>%s', $_ for @fontlist;
+say '</thead>';
+
+for (@rows) {
+ my ($group, $name) = split m{/}, $_, 2;
+ my $row = $cover->{$group}->{$name};
+
+ print '<tr>';
+ $name = sprintf '<a href="%s">%s</a>', EncodeURI("/chars/$group/$name"), EscapeHTML($name)
+ if $row->{-count} and $row->{-count} < 1280;
+ print '<th>', $name;
+ print '<td class=right>', $row->{-count};
+ for (@fontlist) {
+ my $count = $row->{$_};
+ if (not defined $count) {
+ print '<td class="l0">?';
+ next;
+ }
+ if (not $count) {
+ print '<td class="l1">✘';
+ next;
+ }
+ if ($count == $row->{-count}) {
+ print '<td class="l5">✔';
+ next;