X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/28151a28db84c6d6018232f36c0003ecd562b3f0..05b96f1d0e64293580fd10484092d339b14b56a2:/unicode.plp 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; - 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 ? (
- - -