-$_ 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>';
- printf '<caption>%s</caption>', "$tablegroup: $tablename";
- say '';
- 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;
- }
+
+for my $group ($ENV{PATH_INFO} || ()) {
+ $group =~ s{^/}{};
+ my $grouprows = $cover->{$group}
+ or die "Unknown character category $_\n";
+ @rows = map { "$group/$_" } sort keys %{$grouprows};
+}
+
+# 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;