X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/c3c17661b6ac0d3e7484fcf47316d29f6a0f81b1..466e0b0bee6b61530b0be73a394df19828bf24f9:/charset.plp diff --git a/charset.plp b/charset.plp index 4e25ef1..be31655 100644 --- a/charset.plp +++ b/charset.plp @@ -12,7 +12,7 @@ Html({ reference common overview table '], stylesheet => [qw'light'], - data => [qw'charset-unicode.inc.pl charset-utf8.inc.pl'], + data => [qw'charset-unicode.inc.pl charset-ucplanes.inc.pl charset-utf8.inc.pl'], }); my @tablist = split m{/+}, $Request || 'default'; @@ -105,7 +105,7 @@ sub tabinput { hebrew => [qw( iso-8859-8 cp1255 MacHebrew cp862 U59-5F )], thai => [qw( iso-8859-11 cp874 MacThai )], vietnamese => [qw( viscii cp1258 MacVietnamese )], - symbols => [qw( symbol dingbats MacDingbats )], + symbols => [qw( symbol dingbats MacDingbats wingdings webdings )], # iso-code shorthand 1 => 'westeur', @@ -138,6 +138,8 @@ sub tabinput { 'AdobeZdingbat'=> ['MacDingbats' => '128-159'], # should be identical but maps to private use 'symbol' => ['' => '32-127+160'], 'AdobeSymbol' => ['symbol' => '32-127+160', '' => '32-127+160'], # minor differences, irrelevant except for different '€' + 'wingdings' => ['' => '32'], + 'webdings' => ['' => '32'], 'iso-8859-2' => ['iso-8859-1' => '160'], 'iso-8859-3' => ['iso-8859-1' => '160'], #TODO: also apply to iso-8859-9 @@ -252,6 +254,10 @@ sub tabinput { } } + if ($input =~ m{ \A (?:wing|web)dings \z }ix) { + require "Encode/\u$input.pm"; + } + if ($input =~ m{ \A u ([0-9a-f]+) (?:-([0-9a-f]+))? \z }ix) { my $start = hex($1) << ($2 ? 4 : 8); my $end = $2 ? (hex($2) << 4) + $row{cols} - 1 : $start + 255; @@ -419,7 +425,7 @@ for my $row (@request) { printf '
', !$row->{cell} && ' charmap'; my $title = $row->{set}; $title .= " " - for grep { $_ ne 'iso-8859-1' } $row->{parent} // (); + for $row->{parent} || (); printf '', $title; print '' x ($cols + 1); for my $section (qw{thead}) {
%s