X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/90f76caa2008d1a07484ee43f141718fdadbf1a7..29b407ddf91b653e6e8380f73e221628a392376f:/emoji.plp diff --git a/emoji.plp b/emoji.plp index 68c1ec2..ac3be58 100644 --- a/emoji.plp +++ b/emoji.plp @@ -2,7 +2,7 @@ Html({ title => 'emoji cheat sheet', - version => 'v1.0', + version => '1.0', description => [ "Emoticons overview and Unicode equivalents" . " of MSN, Y!M, and Gmail icons.", @@ -18,7 +18,7 @@ Html({

IM emoticons

<: -print '
'."\n"; +say '
'; for my $system (qw'gmail msn yahoo') { my @info = do "emoji-$system.inc.pl"; @@ -27,24 +27,25 @@ for my $system (qw'gmail msn yahoo') { my $title = $meta->{name} // $system; $title = qq{$title} for $meta->{source} || (); - printf '

%s

'."\n\n", $meta->{name} // $system; - print ''."\n"; + say sprintf '

%s

', $meta->{name} // $system; + say '
'; for (my $i = 0; $i <= $#info; $i++) { my $name = $info[$i]; unless (ref $info[$i+1] eq 'ARRAY') { - printf '
'."\n", $name; + say sprintf '
', $name; next; } my ($input, $flags, $char, $desc) = @{ $info[++$i] }; - printf('
%s%s%s%s'."\n", - sprintf($meta->{icon} // '%s', $name), EscapeHTML($name), + say sprintf('
%s%s%s%s', + sprintf($meta->{ $flags =~ /\bext\b/ ? 'iconext' : 'icon' } // '%s', $name), + EscapeHTML($name), EscapeHTML($input), $desc // $name, $char ? ''.chr($char) : '', ); } - print "
\n\n"; + say "
\n"; } -print "

\n\n"; +say "
\n";