X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/2d5b9e1f36bd86e3e7b862f40a9ed3e78325f45a..9cb1b773b16baa0a13c8c27b36b30e8509fd248c:/charset.plp
diff --git a/charset.plp b/charset.plp
index e9f097d..ccbf145 100644
--- a/charset.plp
+++ b/charset.plp
@@ -5,7 +5,7 @@ my @tablist = split m{/+}, $Request || 'default';
Html({
title => 'charset cheat sheet',
- version => '1.1',
+ version => '1.2',
description => [
"Reference sheet with all glyphs in common character encoding tables,",
"and an overview of Unicode ranges and UTF-8 bytes.",
@@ -14,7 +14,7 @@ Html({
charset codepage unicode ascii utf8 latin glyph character encoding
reference common overview table
'],
- stylesheet => [qw'light'],
+ (stylesheet => [qw'light']) x !$mode,
data => [qw(
charset-encoding.inc.pl
charset-unicode.inc.pl charset-ucplanes.inc.pl charset-utf8.inc.pl
@@ -55,6 +55,7 @@ print join " â¢\n", (
dos => 'DOS',
mac => 'Apple',
ebcdic => 'EBCDIC',
+ legacy => 'legacy',
$tablist[0] eq 'default' ? () : ('' => 'common'),
],
[
@@ -153,7 +154,7 @@ sub tabinput {
if (defined $row{table} or defined $row{cell}) {
$row{set} //= $input;
}
- elsif ($row{set} = Encode::resolve_alias($input)) {
+ elsif ($row{set} = Encode::resolve_alias($charset->{set} // $input)) {
$row{offset} = delete $row{startpoint};
if ($charset->{varchar}) {
# array of possibly multiple characters per code point
@@ -169,6 +170,7 @@ sub tabinput {
$row{endpoint} -= $row{offset};
$visible->{ascii}++; # assume common base
+ $row{set} = $input if $charset->{set}; # base override
}
else {
Alert("Encoding $input
unknown");
@@ -347,8 +349,8 @@ for my $row (@request) {
$visible->{$glyph}++;
}
- say sprintf $class ? '