X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/858c3feb08252d681532cd3991ca6990a12d0868..7178c19ec55db35dc1d073aef9a20138b15b19d7:/writing.plp diff --git a/writing.plp b/writing.plp index 82049fe..2c67ae0 100644 --- a/writing.plp +++ b/writing.plp @@ -43,16 +43,20 @@ for ( [brah => 'Brahmi'], ) { my ($source, $title) = @$_; - my @table = eval { Data("writing-$source") } or do { + my $info = eval { Data("writing-$source") } or do { say "

$title

"; printf "

%s: %s.

\n", @{$@}; next; }; + my $rows = $info->{list} or next; $glyphs->print($title => [map { + my $ref = $_; my $lead = s/^(-)// && $1; - ref $_ eq 'ARRAY' ? @$_ : map { ".>$lead$_" } + (map { ".>$lead$_" } $scriptname->{$source.'_'.$_} || $scriptname->{$_} || $_ - } @table]); + ), + @{ $info->{table}->{$ref} || [] } + } @{$rows}]); } say "\n";