Html({
title => 'charset cheat sheet',
- version => '1.0',
+ version => '1.2',
description => [
"Reference sheet with all glyphs in common character encoding tables,",
"and an overview of Unicode ranges and UTF-8 bytes.",
<p>
<:
+if ($tablist[0] eq 'unicode') {
+ say "Detailed allocation of Unicode blocks.";
+ print "See ", showlink("charsets", '/charset'), " to compare specific encodings";
+}
+else {
+
if ($tablist[0] eq 'default') {
- say "Overview of Unicode allocation and common latin code pages.";
+ say "Overview of Unicode ", showlink("allocation", '/charset/unicode');
+ say "and common latin code pages.";
say "Compare alternate charsets:";
}
else {
say "Charset comparison:";
}
-sub optionlink {
- my ($title, $href, $selected) = @_;
- return sprintf(
- $selected ? '<strong>%s</strong>' : '<a href="%2$s">%s</a>',
- 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);
} @{$_}
}
[
hebrew => 0,
],
);
+
+}
:>.
</p>
</table>
<table class="glyphs"><tr>
- <td class="X">unicode 7.0
+ <td class="X">unicode 10.0
<td class="X Xr">proposed
<td class="X Xd">deprecated
<td class="">unassigned