- printf('<td class="l%d">%s',
- (map { $_ && $BOOLSCORE{$_} || $_ || 0 } $featinfo->{score}->{$_}),
- $featinfo->{data}->{$_} // (map {
- $BOOLSCORE{$_} ? ($_ eq 'y' ? '✔' : '✘') : '•' x ($_ - 1)
- } $featinfo->{score}->{$_}),
- ) for @codecs;
+ for (@codecs) {
+ my ($score, $data, $title) = map { ref ? @$_ : $_ } $featinfo->{score}->{$_};
+ if (not defined $data) {
+ if (my $override = $BOOLSCORE{$score}) {
+ ($score, $data) = @{$override};
+ }
+ else {
+ $data = '•' x ($score - 1);
+ }
+ }
+ printf '<td class="l%d"', $score;
+ printf ' title="%s"', EscapeHTML($_) for $title // ();
+ print '>', $data;
+ }