X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/28151a28db84c6d6018232f36c0003ecd562b3f0..c14ff34df0f6e80b747b2f0eef7b30a2deab636d:/unicode.plp?ds=sidebyside
diff --git a/unicode.plp b/unicode.plp
index ac63170..4a6856e 100644
--- a/unicode.plp
+++ b/unicode.plp
@@ -1,20 +1,22 @@
<(common.inc.plp)><:
- our $VERSION = 'v1.0';
-:>
-
-
-
-
-digraph cheat sheet
-<:= stylesheet(qw'light dark') :>
-
-
-
-Common uncommon Unicode
-
-i^k in Vim.
+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'],
+});
+
+:>
+
Common Unicode
+
+i^k in Vim.
Also see the complete digraphs table.
@@ -24,14 +26,6 @@ my $diinfo = do 'digraphs.inc.pl';
my %di = map { $diinfo->{$_}->[0] => $_ } grep { ref $diinfo->{$_} }
sort { length $a <=> length $b } keys %$diinfo;
-sub quote {
- local $_ = shift;
- s/"/"/g;
- s/</g;
- s/>/>/g;
- return $_;
-}
-
sub glyph_table {
my ($digraphs) = @_;
@@ -109,8 +103,8 @@ sub glyph_table {
defined $name ? qq{ title="$name"} : '',
@class ? sprintf(' class="%s"', join ' ', @class) : '',
$colspan > 1 && qq{ colspan="$colspan"},
- $cell eq '' ? ' ' : quote($cell),
- defined $code ? sprintf(' %s', quote($code))
+ $cell eq '' ? ' ' : EscapeHTML($cell),
+ defined $code ? sprintf(' %s', EscapeHTML($code))
: length($cell) == 1 && $cell !~ /[a-z]/
? sprintf(' %04X', 'value', ord $cell)
: '',
@@ -282,14 +276,3 @@ $verbose ? (
-
-
-