charset: inline prebuilt characters table
[sheet.git] / charset.plp
index eb23d7ebe7b3a73b97e161ed25774e5efc3c900a..d1e8d4dade12ec1ac9f83f6616338ea1538ebb3d 100644 (file)
@@ -79,8 +79,7 @@ use Shiar_Sheet::FormatChar;
 my $glyphs = Shiar_Sheet::FormatChar->new;
 my @request;
 
-my $charsets = do 'charset-encoding.inc.pl'
-       or Alert('Encoding metadata could not be read', $@ || $!);
+my $charsets = Data('charset-encoding');
 
 sub tabinput {
        # generate character table(s)
@@ -98,7 +97,7 @@ sub tabinput {
 
        state $visible = {'' => 1};  # all present tables
        my %row = (offset => 0, cols => 16);
-       $row{$_} = $charset->{$_} for qw( note );  # copy metadata
+       $row{$_} = $charset->{$_} for qw( note table );  # copy metadata
 
        if (not defined $params) {
                my @parents = @{ $charset->{inherit} || [] };