X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/7e61bf43e629fb11d22bebfd4b31226fdea31651..dcb941a70df08f8bb8a18cf0a4c85ce47aaf5cbd:/emoji.plp diff --git a/emoji.plp b/emoji.plp index 2bb0b9a..c090388 100644 --- a/emoji.plp +++ b/emoji.plp @@ -4,31 +4,47 @@ Html({ title => 'emoji cheat sheet', version => 'v1.0', description => [ - "MSN emoticons", + "Emoticons overview and Unicode equivalents" + . " of MSN, Y!M, and Gmail icons.", ], keywords => [qw' - sheet cheat emoticon smiley emoji msn + sheet cheat emoticon smiley emoji unicode + chat im messenger msn yahoo ym gmail google '], - stylesheet => [qw'light dark red'], + stylesheet => [qw'light'], }); :> -

MSN emoticons

+

IM emoticons

<: -my @info = do 'emoji.inc.pl' or die $@; -my $MSNURL = ''; +my %ICONURL = ( + msn => 'http://messenger.msn.com/Resource/emoticons/%s.gif', +# yahoo => 'http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons6/%s.gif', + yahoo => 'http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/%s.gif', +# yahoo-web => 'http://l.yimg.com/a/i/us/msg/emoticons/%s.gif', + gmail => 'http://mail.google.com/mail/help/images/screenshots/chat/%s.gif', +); -print ''."\n"; -for (my $i = 0; $i <= $#info; $i++) { - my $name = $info[$i++]; - my ($input, $char, $desc) = @{ $info[$i] }; - if ($char < 0) { - # inexact - $char = -$char; +print "
'."\n"; + for (my $i = 0; $i <= $#info; $i++) { + my $name = $info[$i]; + unless (ref $info[$i+1] eq 'ARRAY') { + printf '
'."\n", $name; + next; + } + my ($input, $attr, $char, $desc) = @{ $info[++$i] }; + printf('
%s%s%s'."\n", + $name, EscapeHTML($input), $desc // $name, $char ? ''.chr($char) : '', + ); } - printf "
%s%s$MSNURL%s\n", - $name, EscapeHTML($input), $desc, chr($char); + print "
\n\n"; } -print "\n"; + +print "
\n\n";