unicode: misc symbols (useful dingbats)
[sheet.git] / unicode.plp
index e2c3c11ac5814315e57a9b2d0744f754b1d3b56b..6d9ea2c6d022c41a615760617c7f32e3f2e3acba 100644 (file)
@@ -1,21 +1,20 @@
 <(common.inc.plp)><:
-       our $VERSION = 'v1.0';
 
-:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
+Html({
+       title => 'unicode glyph cheat sheet',
+       version => 'v1.0',
+       description => [
+               "Common Unicode characters with digraph or code point, layed out for quick location.",
+               "Includes general symbols, arrows, drawing characters, and IPA letters.",
+       ],
+       keywords => [qw'
+               unicode glyph char character reference common ipa symbol sign mark table digraph
+       '],
+       stylesheet => [qw'light dark red'],
+});
 
-<head>
-<meta http-equiv="content-type" content="utf-8">
-<title>digraph cheat sheet</title>
-<meta name="description" content="Common Unicode characters with digraph or code point, layed out for quick location. Includes general signs, arrows, drawing characters, and IPA letters.">
-<meta name="keywords" content="unicode, glyph, char, character, reference, common, ipa, sign, mark, table, digraph">
-<:= stylesheet(qw'light dark red') :>
-<link rel="icon" type="image/png" href="/clip.png">
-</head>
-
-<body id="unicode">
-<h1>Common uncommon Unicode</h1>
+:>
+<h1>Common Unicode</h1>
 
 <p>i^k in <a href="/vi">Vim</a>.
 Also see the <a href="/digraphs">complete digraphs table</a>.</p>
@@ -74,6 +73,8 @@ sub glyph_table {
                        $cell = '';
                }
                else {
+                       push @class, 'X';
+
                        if ($cell =~ s/^-//) {
                                push @class, 'di-rare'; # discouraged
                        }
@@ -87,9 +88,6 @@ sub glyph_table {
                                push @class, 'di-prop' # unofficial
                                        if $diinfo->{$code}->[2] =~ /\bXz\b/;
                        }
-                       elsif (defined $name) {
-                               push @class, 'X';
-                       }
 
                        if ($cell =~ /[ -~]/) {
                                push @class, 'di-a'; # ascii
@@ -134,17 +132,27 @@ print_glyph_tables(
        'Popular',
        [qw{. « » . ‹ › . ‘ ’ . “ ” . „ ‚ . ‟ ‛}],
        [qw{. † ‡ • . § ¶ # . © ® ™ . ° ′ ″ . − × ÷ . ± ² √}],
-       [qw{. ⚋ ⚊ . ⚐ ⚑ . ☺ ☹ . ✓ ✗ . ✔ ✘ . ◄ ► }],
+       [qw{. ⚋ ⚊ . ⚐ ⚑ . ☺ ☹ . ✓ ✗ . ✔ ✘ }],
        [qw{. å ä ö ü ß . ā æ ø ű ſ}],
        [qw{. ¿ ç ñ é ê è}],
        [qw{. α β}], [qw{. א}],
 
-       'Signs',
+       'Symbols',
        [qw{. ¤ ¢ ₥ € £ ₨ $ ¥ . ₫ ₭ ₦ ₱ ₧ ₮ ₩ ₪}],
        [qw{. ♠ ♡ ♢ ♣ . ♤ ♥ ♦ ♧}],
+       [qw{. ☮ ☯ ☻ ♪ ♲ ♿ }],
+       [qw{. ✂ ✉ ☎ }], [qw{. ⚠ ☡ ☠}],
+       'Signs',
        [qw{. ☉ ☿ ♀ ♁ ♂ ♃ ♄ ♅ ♆ ♇}],  # solar
        [qw{. ♈ ♉ ♊ ♋ ♌ ♍ ♎ ♏ ♐ ♑ ♒ ♓}],  # zodiac
 
+       'Key commands',
+       [qw{. ⇥ ⇤ . ␣ ⌫ }], # common spacing
+       [qw{. ⎀ ⇱ ⇞ . ⌦ ⇲ ⇟ }], # edit block
+       [qw{. ⇪ ⇯ ⇭ . ⇧ ⇮ № }], # modifier
+       [qw{. ⎈ ⌥ ⌘ ⎄ }], [qw{. ↵ ⎋ ⎉ ⎊ }], # command
+       [qw{. ► ⏩ ⏭ ◼ ⚫ . ◄ ⏪ ⏮ ⏏ -❚❚ }], # player ui
+
        'Arrows',
        [qw{. ↖ ↑ ↗ ↔ . ← - → ↕ . ↙ ↓ ↘ -}],
        [qw{. ⇖ ⇑ ⇗ ⇔ . ⇐ - ⇒ ⇕ . ⇙ ⇓ ⇘ -}],
@@ -277,14 +285,3 @@ $verbose ? (
        </table>
 </div>
 
-<p class="footer">
-       <a href="/" rel="home">sheet.shiar.nl</a>/unicode.<a href="/source/unicode.plp"
-        rel="code" title="Written in Perl">plp</a>
-       <a href="http://git.shiar.nl/sheet.git/history/HEAD:/unicode.plp"
-        rel="vcs-git" title="Git repository"><:= $VERSION :></a>
-       created by <a href="http://shiar.nl/" rel="author">Shiar</a> •
-       <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html" rel="copyright"
-        title="Licensed under the GNU Affero General Public License, version 3">AGPLv3</a>
-</p>
-
-</html>