X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/28151a28db84c6d6018232f36c0003ecd562b3f0..f63a57e71a3aed6fe5e80ca979186e3bd6c7eb6b:/charset.plp diff --git a/charset.plp b/charset.plp index 29e7e23..5931b5c 100644 --- a/charset.plp +++ b/charset.plp @@ -3,11 +3,13 @@ :> - + charset cheat sheet + + <:= stylesheet(qw'light') :> @@ -94,14 +96,6 @@ for my $cp437 (grep {$request[$_]->{set} eq 'cp437'} 0 .. $#request) { ); } -sub quote { - local $_ = shift; - s/"/"/g; - s//>/g; - return $_; -} - my @nibble = (0..9, 'A'..'F'); for my $row (@request) { printf '
', !$row->{cell} && ' charmap'; @@ -138,14 +132,14 @@ for my $row (@request) { } my ($codepoint, $name, $prop, $script, $string) = @$info; - $glyph = quote($string || $glyph); + $glyph = EscapeHTML($string || $glyph); my $desc = sprintf 'U+%04X%s', $codepoint, $name && " ($name)"; my @class = ('X', grep {$_} $prop, $script); $glyph = "$glyph" if $prop eq 'Zs'; printf "\n".'
%s', - join(' ', @class), quote($desc), $glyph; + join(' ', @class), EscapeHTML($desc), $glyph; } print "\n"; }