X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/b22f63ba31441200ca915c64445d5a87d146c327..7178c19ec55db35dc1d073aef9a20138b15b19d7:/writing.plp diff --git a/writing.plp b/writing.plp index a718c88..2c67ae0 100644 --- a/writing.plp +++ b/writing.plp @@ -2,7 +2,7 @@ Html({ title => 'writing system inheritance sheet', - version => '1.2', + version => '1.3', description => [ "Character comparison,", "tracking letters as they evolve from Phoenician to modern scripts.", @@ -35,39 +35,31 @@ unless (exists $get{v}) { $glyphs->{style} = 'univer'; } -my $scriptname = do 'writing-script.inc.pl'; -$_ = qq{$_} for $scriptname->{latn} || (); +my $scriptname = eval { Data('writing-script') }; # optional translations +$_ = showlink($_, "/latin") for $scriptname->{latn} || (); for ( [phnx => 'Phoenician'], [brah => 'Brahmi'], ) { my ($source, $title) = @$_; - my @table = do "writing-$source.inc.pl"; - if ($! or $@) { + my $info = eval { Data("writing-$source") } or do { say "

$title

"; - printf "

Table data not found: %s.

\n", $@ || $!; + 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"; -
- -
- -
unicode 1.1 - 20th century - in 6.0 (2010) - recent assignments - proposed - irregular -
-
+say for '
', $glyphs->legend;