X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/902eb27b5902755d9ab891d85fa5febfd6fd69e9..cd726ba1120253b6387e1a558f36ba78f3cd8cbd:/charset.plp?ds=sidebyside
diff --git a/charset.plp b/charset.plp
index 8e67c67..0dd1537 100644
--- a/charset.plp
+++ b/charset.plp
@@ -5,7 +5,7 @@ my @tablist = split m{/+}, $Request || 'default';
Html({
title => 'charset cheat sheet',
- version => '1.0',
+ version => '1.1',
description => [
"Reference sheet with all glyphs in common character encoding tables,",
"and an overview of Unicode ranges and UTF-8 bytes.",
@@ -36,18 +36,10 @@ else {
say "Charset comparison:";
}
-sub optionlink {
- my ($title, $href, $selected) = @_;
- return sprintf(
- $selected ? '%s' : '%s',
- EscapeHTML($title), $href
- );
-}
-
print join " â¢\n", (
map {
join " ·\n", pairmap {
- optionlink($b || ucfirst $a, '/charset'.($a && "/$a?compare"), $a eq $Request);
+ showlink($b || ucfirst $a, '/charset'.($a && "/$a?compare"), $a eq $Request);
} @{$_}
}
[