X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/efc30e581f90743618f1bbf44fe0bfae075549ef..8e8998a5c2e51159db372eed7e4e293df83ccc91:/charset.plp diff --git a/charset.plp b/charset.plp index 7ff3f42..1b672e9 100644 --- a/charset.plp +++ b/charset.plp @@ -76,7 +76,7 @@ use Shiar_Sheet::FormatChar; my $glyphs = Shiar_Sheet::FormatChar->new; my @request; -my $INHERIT = do 'charset-encoding.inc.pl' +my $charsets = do 'charset-encoding.inc.pl' or Alert('Encoding metadata could not be read', $@ || $!); sub tabinput { @@ -136,7 +136,8 @@ sub tabinput { my $params = $input =~ s/[+](.*)\z// ? $1 : undef; if (not defined $params) { - my @parents = @{ $INHERIT->{$input} || [] }; + my $charset = $charsets->{$input} || {}; + my @parents = @{ $charset->{inherit} || [] }; if (my ($parent, $part) = pairfirst { defined $visible->{$a} } @parents) { $row{parent} = $parent;