mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-14 05:25:07 -05:00
7964c34dbd
Cannot show the emoji icon on Android 1.6 at least. Replaced all "< img" to "<img".
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
use warnings;
|
|
use strict;
|
|
my $emoji = do 'Emoticon.pl';
|
|
use YAML;
|
|
|
|
my %codepoints;
|
|
|
|
for my $carrier qw(docomo softbank kddi) {
|
|
|
|
|
|
print " // These emoji codepoints are generated by tools/make_emoji in the K-9 source tree\n";
|
|
print "\n";
|
|
for my $codepoint (keys %{$emoji->{$carrier}}) {
|
|
|
|
if (defined $codepoints{$codepoint}) {
|
|
print " // Skipping $carrier codepoint $codepoint ".$emoji->{$carrier}->{$codepoint}."\n";
|
|
print " // It conflicts with an earlier definition from another carrier:\n";
|
|
print " // ".$codepoints{$codepoint}."\n\n";
|
|
next;
|
|
} else {
|
|
$codepoints{$codepoint} = "$carrier ".$emoji->{$carrier}->{$codepoint};
|
|
}
|
|
|
|
print " case 0x$codepoint: //$carrier ".$emoji->{$carrier}->{$codepoint}."\n";
|
|
print " ".'buff.append("<img src=\"file:///android_asset/emoticons/'.$emoji->{$carrier}->{$codepoint}.'.gif\" alt=\"'.$emoji->{$carrier}->{$codepoint}.'\" />'."\");\n";
|
|
print " break;\n";
|
|
|
|
|
|
}
|
|
}
|