X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/9b02fb487135a31bcf0ed3e637ea910fa0f177f8..61672b1912da0a1b1669259718e04b268367f98e:/charset.plp
diff --git a/charset.plp b/charset.plp
index bc2a1ea..73f9377 100644
--- a/charset.plp
+++ b/charset.plp
@@ -18,7 +18,7 @@ $header{content_type} = 'text/html; charset=utf-8';
-
+
Character encoding
<:
@@ -109,11 +109,9 @@ sub quote {
return $_;
}
-print "\n";
-
my @nibble = (0..9, 'A'..'F');
for my $row (@request) {
- printf '', !$row->{cell} && ' charmap';
+ printf '', !$row->{cell} && ' charmap';
printf '%s', $row->{set};
print '' x 17;
for my $section (qw{thead}) {
@@ -140,6 +138,11 @@ for my $row (@request) {
if (defined (my $mnem = $di{ord $glyph})) {
$info = $diinfo->{$mnem};
}
+ else {
+ require Unicode::UCD;
+ my $fullinfo = Unicode::UCD::charinfo(ord $glyph);
+ $info = [@$fullinfo{qw/code name category script string/}] if $fullinfo;
+ }
my ($codepoint, $name, $prop, $script, $string) = @$info;
$glyph = quote($string || $glyph);
@@ -153,11 +156,9 @@ for my $row (@request) {
}
print "\n";
}
- print "
\n";
+ print "
\n";
}
-print "
\n";
-
:>
@@ -203,11 +204,13 @@ print "\n";