use html5 elements (section, footer)
[sheet.git] / unicode.plp
index 959b121780cc9e31a3c21b9098a4a7b569cb8551..a2e834a2fb24fbe3c543f9ba24f767b4f59c068b 100644 (file)
@@ -1,20 +1,22 @@
 <(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>
+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 signs, arrows, drawing characters, and IPA letters.",
+       ],
+       keywords => [qw'
+               unicode glyph char character reference common ipa sign mark table digraph
+       '],
+       stylesheet => [qw'light dark red'],
+});
 
-<head>
-<meta http-equiv="content-type" content="utf-8">
-<title>digraph cheat sheet</title>
-<:= stylesheet(qw'light dark') :>
-</head>
+:>
+<h1>Common Unicode</h1>
 
-<body id="unicode">
-<h1>Common uncommon Unicode</h1>
-
-<p>i^k in <a href="/">Vim</a>.
+<p>i^k in <a href="/vi">Vim</a>.
 Also see the <a href="/digraphs">complete digraphs table</a>.</p>
 
 <div class="diinfo">
@@ -117,11 +119,11 @@ sub glyph_table {
 
 sub print_glyph_tables {
        while (@_) {
-               printf '<div class="section"><h2>%s</h2>'."\n\n", shift;
+               printf '<section><h2>%s</h2>'."\n\n", shift;
                while (ref $_[0] and $_ = shift) {
                        print glyph_table($_);
                }
-               print '</div>';
+               print '</section>';
        }
 }
 
@@ -274,14 +276,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>