forked from rjbs/sunglazer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sunglaze
43 lines (36 loc) · 879 Bytes
/
sunglaze
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!perl
use v5.36.0;
use Text::SlackEmoji;
use utf8;
binmode *STDOUT, ':encoding(UTF-8)';
say <<'END';
<style type='text/css'>
div#main {
max-width: 50em;
margin-left: auto;
margin-right: auto;
whitespace: nowrap;
}
span { font-size: 200% }
</style>
END
# use App::Uni;
# my @chars = (
# @{ App::Uni::chars_by_name(['FACE']) },
# @{ App::Uni::chars_by_name(['MAN']) },
# @{ App::Uni::chars_by_name(['PERSON']) },
# @{ App::Uni::chars_by_name(['WOMAN']) },
# @{ App::Uni::chars_by_name(['SOUP']) },
# );
my %emoji = Text::SlackEmoji->emoji_map->%*;
say '<div id="main">';
for my $name (sort keys %emoji) {
# next unless $char =~ /\p{Emoji}/;
say <<~"END"
<div style='display:inline' title='$name'>
<span>$emoji{$name}</span>
<span style='position:relative; left:-1.125em; top: -0.1em'>🕶</span>
</div>
END
}
say '</div>';