countries: reserve cq and describe user-assigned codes
[sheet.git] / unicode.plp
index 0ba7c3f46cdc8975bea9ec67006ea751062f42c4..1f7414446c1d44a14f49048b1aa07c3d67491002 100644 (file)
@@ -2,7 +2,7 @@
 
 Html({
        title => 'unicode glyph cheat sheet',
-       version => '1.3',
+       version => '1.4',
        description => [
                "Common Unicode characters with digraph or code point, layed out for quick location.",
                "Includes general symbols, arrows, drawing characters, and IPA letters.",
@@ -10,7 +10,6 @@ Html({
        keywords => [qw'
                unicode glyph char character reference common ipa symbol sign mark table digraph
        '],
-       stylesheet => [qw'light dark mono circus red'],
        data => [qw( unicode-table.inc.pl data/unicode-char.inc.pl )],
 });
 
@@ -149,10 +148,11 @@ $glyphs->print(map {
 
                if (@select) {
                        my $rowlen;
-                       for ($rowlen = 1; $rowlen++; $rowlen <= $#$table) {
+                       for ($rowlen = 1; $rowlen <= $#$table; $rowlen++) {
                                last if $table->[$rowlen] =~ /\./;
                        }
                        my @cells = map {
+                               s/^(?=-)/0/;
                                my $end = (s/-(.+)?// ? ($1 // @$table / $rowlen - 1) : $_) + 1;
                                $_ * $rowlen .. $end * $rowlen - 1;
                        } @select;