From 9871f1be530caa35437f3919f58d156f44ec68b2 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 12 Aug 2010 02:22:15 +0000 Subject: [PATCH] First pass at a tool to build our emoji mapping tables from code --- tools/Emoticon.pl | 676 ++++++++++++++++++++++++++++++++++++++++++++++ tools/make_emoji | 15 + 2 files changed, 691 insertions(+) create mode 100644 tools/Emoticon.pl create mode 100644 tools/make_emoji diff --git a/tools/Emoticon.pl b/tools/Emoticon.pl new file mode 100644 index 000000000..3e4f92fbd --- /dev/null +++ b/tools/Emoticon.pl @@ -0,0 +1,676 @@ +# From http://emoji4unicode-ll.googlecode.com/svn/trunk/lang/perl/Encode-JP-Emoji-FB_EMOJI_TYPECAST/trunk/lib/Encode/JP/Emoji/FB_EMOJI_TYPECAST/Emoticon.pl + +{ + "softbank" => { + "E415" => "coldsweats01", + "E223" => "eight", + "E21F" => "four", + "E125" => "ticket", + "E31C" => "rouge", + "E242" => "cancer", + "E148" => "book", + "E252" => "danger", + "E342" => "riceball", + "E04B" => "rain", + "E011" => "scissors", + "E43C" => "sprinkle", + "E03E" => "note", + "E42A" => "basketball", + "E20A" => "wheelchair", + "E03D" => "movie", + "E30E" => "smoking", + "E407" => "sad", + "E237" => "upwardleft", + "E21C" => "one", + "E003" => "kissmark", + "E40E" => "gawk", + "E03B" => "fuji", + "E443" => "typhoon", + "E24A" => "pisces", + "E245" => "libra", + "E052" => "dog", + "E523" => "chick", + "E244" => "virgo", + "E023" => "heart03", + "E325" => "bell", + "E239" => "downwardleft", + "E20C" => "heart", + "E211" => "freedial", + "E11F" => "chair", + "E108" => "coldsweats02", + "E404" => "smile", + "E330" => "dash", + "E419" => "eye", + "E304" => "tulip", + "E13D" => "thunder", + "E013" => "ski", + "E136" => "bicycle", + "E059" => "angry", + "E01D" => "airplane", + "E048" => "snow", + "E435" => "bullettrain", + "E20E" => "spade", + "E247" => "sagittarius", + "E157" => "school", + "E502" => "art", + "E10F" => "flair", + "E338" => "japanesetea", + "E34B" => "birthday", + "E22B" => "empty", + "E311" => "bomb", + "E012" => "paper", + "E151" => "toilet", + "E01A" => "horse", + "E03A" => "gasstation", + "E03F" => "key", + "E00D" => "punch", + "E24D" => "ok", + "E105" => "bleah", + "E00E" => "good", + "E405" => "wink", + "E154" => "atm", + "E030" => "cherryblossom", + "E057" => "happy01", + "E229" => "id", + "E016" => "baseball", + "E044" => "wine", + "E14F" => "parking", + "E115" => "run", + "E327" => "heart04", + "E014" => "golf", + "E021" => "sign01", + "E30A" => "music", + "E536" => "foot", + "E411" => "crying", + "E047" => "beer", + "E43E" => "wave", + "E022" => "heart01", + "E007" => "shoe", + "E010" => "rock", + "E32E" => "shine", + "E055" => "penguin", + "E018" => "soccer", + "E03C" => "karaoke", + "E159" => "bus", + "E04A" => "sun", + "E107" => "shock", + "E156" => "24hours", + "E110" => "clover", + "E034" => "ring", + "E24F" => "r-mark", + "E42E" => "rvcar", + "E14D" => "bank", + "E112" => "present", + "E13E" => "boutique", + "E413" => "weep", + "E241" => "gemini", + "E212" => "new", + "E324" => "slate", + "E220" => "five", + "E503" => "drama", + "E248" => "capricornus", + "E049" => "cloud", + "E243" => "leo", + "E326" => "notes", + "E00B" => "faxto", + "E221" => "six", + "E240" => "taurus", + "E24E" => "copyright", + "E224" => "nine", + "E008" => "camera", + "E01E" => "train", + "E20D" => "diamond", + "E009" => "telephone", + "E019" => "fish", + "E01C" => "yacht", + "E40A" => "confident", + "E246" => "scorpius", + "E120" => "fastfood", + "E323" => "bag", + "E345" => "apple", + "E339" => "bread", + "E13C" => "sleepy", + "E106" => "lovely", + "E340" => "noodle", + "E20F" => "club", + "E10E" => "crown", + "E114" => "search", + "E406" => "wobbly", + "E331" => "sweat02", + "E301" => "memo", + "E04F" => "cat", + "E315" => "secret", + "E314" => "ribbon", + "E01B" => "car", + "E208" => "nosmoking", + "E236" => "up", + "E006" => "t-shirt", + "E12A" => "tv", + "E238" => "downwardright", + "E10B" => "pig", + "E126" => "cd", + "E416" => "pout", + "E402" => "catface", + "E41B" => "ear", + "E045" => "cafe", + "E23F" => "aries", + "E056" => "delicious", + "E21E" => "three", + "E14E" => "signaler", + "E155" => "hospital", + "E033" => "xmas", + "E22A" => "full", + "E123" => "spa", + "E434" => "subway", + "E132" => "motorsports", + "E403" => "think", + "E537" => "tm", + "E043" => "restaurant", + "E058" => "despair", + "E04C" => "moon3", + "E21D" => "two", + "E30B" => "bottle", + "E202" => "ship", + "E118" => "maple", + "E103" => "loveletter", + "E00C" => "pc", + "E225" => "zero", + "E038" => "building", + "E015" => "tennis", + "E210" => "sharp", + "E02D" => "clock", + "E334" => "annoy", + "E153" => "postoffice", + "E00A" => "mobilephone", + "E12F" => "dollar", + "E222" => "seven", + "E249" => "aquarius", + "E158" => "hotel", + "E036" => "house", + "E104" => "phoneto", + "E046" => "cake", + "E44B" => "night", + "E313" => "hairsalon" + }, + "docomo" => { + "E729" => "wink", + "E6F9" => "kissmark", + "E753" => "smile", + "E6D2" => "info02", + "E6A5" => "downwardleft", + "E68D" => "heart", + "E6D4" => "by-d", + "E6AD" => "pouch", + "E6D7" => "free", + "E6E8" => "seven", + "E74E" => "snail", + "E74A" => "cake", + "E6E3" => "two", + "E65A" => "pocketbell", + "E658" => "basketball", + "E6D0" => "faxto", + "E661" => "ship", + "E6D6" => "yen", + "E67E" => "ticket", + "E64B" => "virgo", + "E6E0" => "sharp", + "E6FE" => "bomb", + "E70A" => "sign05", + "E6E1" => "mobaq", + "E667" => "bank", + "E731" => "copyright", + "E694" => "scissors", + "E678" => "upwardright", + "E682" => "bag", + "E6D9" => "key", + "E64D" => "scorpius", + "E74F" => "chick", + "E734" => "secret", + "E691" => "eye", + "E714" => "door", + "E70B" => "ok", + "E674" => "boutique", + "E64F" => "capricornus", + "E726" => "lovely", + "E747" => "maple", + "E69B" => "wheelchair", + "E68F" => "diamond", + "E64C" => "libra", + "E6FC" => "annoy", + "E645" => "sprinkle", + "E647" => "taurus", + "E6E6" => "five", + "E676" => "karaoke", + "E72A" => "happy02", + "E709" => "sign04", + "E69D" => "moon1", + "E669" => "hotel", + "E71B" => "ring", + "E73B" => "full", + "E644" => "mist", + "E683" => "book", + "E707" => "sweat02", + "E716" => "pc", + "E671" => "bar", + "E72B" => "bearing", + "E745" => "apple", + "E725" => "gawk", + "E65C" => "subway", + "E65F" => "rvcar", + "E664" => "building", + "E737" => "danger", + "E702" => "sign01", + "E6EC" => "heart01", + "E72D" => "crying", + "E660" => "bus", + "E73C" => "leftright", + "E6B8" => "on", + "E652" => "sports", + "E6BA" => "clock", + "E6F0" => "happy01", + "E701" => "sleepy", + "E63E" => "sun", + "E67D" => "event", + "E718" => "wrench", + "E68B" => "game", + "E689" => "memo", + "E741" => "clover", + "E693" => "rock", + "E6F6" => "note", + "E743" => "tulip", + "E67A" => "music", + "E656" => "soccer", + "E73E" => "school", + "E69C" => "newmoon", + "E750" => "penguin", + "E696" => "downwardright", + "E728" => "bleah", + "E6CE" => "phoneto", + "E662" => "airplane", + "E74C" => "noodle", + "E704" => "sign03", + "E712" => "snowboard", + "E698" => "foot", + "E68E" => "spade", + "E684" => "ribbon", + "E6DA" => "enter", + "E722" => "coldsweats01", + "E6EA" => "nine", + "E6F7" => "spa", + "E73F" => "wave", + "E710" => "rouge", + "E721" => "confident", + "E686" => "birthday", + "E724" => "pout", + "E6FF" => "notes", + "E71D" => "bicycle", + "E6FB" => "flair", + "E6A4" => "xmas", + "E757" => "shock", + "E6DC" => "search", + "E680" => "nosmoking", + "E6F4" => "wobbly", + "E66A" => "24hours", + "E66D" => "signaler", + "E641" => "snow", + "E6AE" => "pen", + "E755" => "pig", + "E732" => "tm", + "E70D" => "appli02", + "E6DE" => "flag", + "E648" => "gemini", + "E6A1" => "dog", + "E6EF" => "heart04", + "E746" => "bud", + "E65B" => "train", + "E643" => "typhoon", + "E653" => "baseball", + "E6B2" => "chair", + "E64A" => "leo", + "E6E7" => "six", + "E6E4" => "three", + "E6DF" => "freedial", + "E744" => "banana", + "E6DB" => "clear", + "E663" => "house", + "E666" => "hospital", + "E6AC" => "slate", + "E695" => "paper", + "E65D" => "bullettrain", + "E67F" => "smoking", + "E6B1" => "shadow", + "E654" => "golf", + "E670" => "cafe", + "E708" => "dash", + "E748" => "cherryblossom", + "E736" => "r-mark", + "E6F1" => "angry", + "E6A2" => "cat", + "E687" => "telephone", + "E6D1" => "info01", + "E68C" => "cd", + "E70E" => "t-shirt", + "E733" => "run", + "E679" => "carouselpony", + "E646" => "aries", + "E690" => "club", + "E720" => "think", + "E6F5" => "up", + "E64E" => "sagittarius", + "E6E2" => "one", + "E675" => "hairsalon", + "E6D8" => "id", + "E717" => "loveletter", + "E6B7" => "soon", + "E719" => "pencil", + "E673" => "fastfood", + "E697" => "upwardleft", + "E730" => "clip", + "E6ED" => "heart02", + "E742" => "cherry", + "E65E" => "car", + "E69A" => "eyeglass", + "E71C" => "sandclock", + "E752" => "delicious", + "E735" => "recycle", + "E69E" => "moon2", + "E706" => "sweat01", + "E68A" => "tv", + "E738" => "ban", + "E640" => "rain", + "E672" => "beer", + "E70C" => "appli01", + "E657" => "ski", + "E69F" => "moon3", + "E6E5" => "four", + "E72F" => "ng", + "E63F" => "cloud", + "E699" => "shoe", + "E73A" => "pass", + "E6A3" => "yacht", + "E67C" => "drama", + "E727" => "good", + "E6EB" => "zero", + "E72C" => "catface", + "E6D5" => "d-point", + "E6F2" => "despair", + "E700" => "down", + "E703" => "sign02", + "E655" => "tennis", + "E711" => "denim", + "E705" => "impact", + "E642" => "thunder", + "E71E" => "japanesetea", + "E6F3" => "sad", + "E66C" => "parking", + "E73D" => "updown", + "E6FD" => "punch", + "E66F" => "restaurant", + "E739" => "empty", + "E66E" => "toilet", + "E723" => "coldsweats02", + "E72E" => "weep", + "E67B" => "art", + "E6B9" => "end", + "E715" => "dollar", + "E6F8" => "cute", + "E6CF" => "mailto", + "E6DD" => "new", + "E756" => "wine", + "E651" => "pisces", + "E649" => "cancer", + "E740" => "fuji", + "E650" => "aquarius", + "E71F" => "watch", + "E681" => "camera", + "E6EE" => "heart03", + "E71A" => "crown", + "E6B3" => "night", + "E66B" => "gasstation", + "E6E9" => "eight", + "E685" => "present", + "E692" => "ear", + "E70F" => "moneybag", + "E749" => "riceball", + "E74D" => "bread", + "E6A0" => "fullmoon", + "E665" => "postoffice", + "E677" => "movie", + "E668" => "atm", + "E6FA" => "shine", + "E688" => "mobilephone", + "E713" => "bell", + "E74B" => "bottle", + "E754" => "horse", + "E751" => "fish", + "E659" => "motorsports", + "E6D3" => "mail" + }, + "kddi" => { + "EA88" => "id", + "E488" => "sun", + "E4BA" => "baseball", + "E578" => "free", + "E525" => "four", + "E4C1" => "wine", + "E512" => "bell", + "EB83" => "rock", + "E4D0" => "cake", + "E473" => "crying", + "E48C" => "rain", + "EAC2" => "bearing", + "EAC0" => "despair", + "E47E" => "nosmoking", + "E559" => "r-mark", + "EB2D" => "up", + "EA89" => "full", + "EAC9" => "gawk", + "EB79" => "recycle", + "EB30" => "sign03", + "EAAE" => "japanesetea", + "E5AC" => "zero", + "E4B6" => "soccer", + "E556" => "downwardleft", + "E4BE" => "slate", + "E4A5" => "toilet", + "E523" => "two", + "E5B8" => "pc", + "E5A0" => "birthday", + "E4C6" => "game", + "E496" => "scorpius", + "E516" => "hairsalon", + "E475" => "sleepy", + "E59A" => "basketball", + "E4A3" => "atm", + "E497" => "sagittarius", + "EACD" => "delicious", + "E5A8" => "newmoon", + "E5AE" => "wobbly", + "E49E" => "ticket", + "E4E6" => "sweat02", + "E59E" => "event", + "E4AB" => "house", + "E491" => "gemini", + "E5BE" => "note", + "E4C9" => "xmas", + "EB2F" => "sign02", + "E5DF" => "hospital", + "E508" => "music", + "E5C9" => "crown", + "E5BC" => "subway", + "E4BC" => "spa", + "E514" => "ring", + "E502" => "tv", + "E4AC" => "restaurant", + "E529" => "eight", + "E518" => "search", + "E505" => "notes", + "E498" => "capricornus", + "EB7E" => "snail", + "EA97" => "bottle", + "EB08" => "phoneto", + "E4D2" => "cherry", + "E5C3" => "wink", + "E54D" => "downwardright", + "EAAC" => "ski", + "E5C4" => "lovely", + "E5B6" => "t-shirt", + "E515" => "camera", + "E4AD" => "building", + "E4CE" => "maple", + "E5AA" => "moon2", + "E5B4" => "noodle", + "E5A6" => "scissors", + "E4AA" => "bank", + "E597" => "cafe", + "E481" => "danger", + "E477" => "heart03", + "E4B5" => "train", + "EB7C" => "wave", + "EB2B" => "shoe", + "E4D5" => "riceball", + "E4CA" => "cherryblossom", + "E471" => "happy01", + "E587" => "wrench", + "EB2A" => "foot", + "E4DC" => "penguin", + "E47D" => "smoking", + "E4B3" => "airplane", + "E59B" => "pocketbell", + "E4DE" => "pig", + "E486" => "moon3", + "E4A6" => "parking", + "E4AF" => "bus", + "E5A4" => "eye", + "E50C" => "cd", + "EA82" => "ship", + "E54C" => "upwardleft", + "EB80" => "smile", + "E4B1" => "car", + "E5B0" => "impact", + "E504" => "moneybag", + "E4B9" => "motorsports", + "E494" => "virgo", + "EB03" => "pen", + "E595" => "heart01", + "E57D" => "yen", + "E598" => "mist", + "E5A2" => "diamond", + "E4A4" => "24hours", + "E524" => "three", + "EB7B" => "updown", + "E5A1" => "spade", + "E495" => "libra", + "E588" => "mobilephone", + "E599" => "golf", + "E520" => "faxto", + "E503" => "karaoke", + "E4D6" => "fastfood", + "E4A1" => "pencil", + "E522" => "one", + "EB84" => "sharp", + "E476" => "flair", + "E46B" => "run", + "EAF5" => "drama", + "EAB9" => "apple", + "E4EB" => "kissmark", + "E59F" => "ribbon", + "E55D" => "enter", + "E526" => "five", + "E4B8" => "snowboard", + "E517" => "movie", + "E571" => "gasstation", + "EAE8" => "sprinkle", + "EA80" => "school", + "EB31" => "sign05", + "E47C" => "sandclock", + "E5DE" => "postoffice", + "E5AB" => "clear", + "EB62" => "mailto", + "E4C2" => "bar", + "E528" => "seven", + "E487" => "thunder", + "EB7A" => "leftright", + "E5A9" => "moon1", + "EB78" => "loveletter", + "E492" => "cancer", + "E513" => "clover", + "E4E0" => "chick", + "E478" => "heart04", + "E4CF" => "present", + "EAC3" => "sad", + "E52A" => "nine", + "EABF" => "catface", + "E482" => "sign01", + "E527" => "six", + "E52C" => "mobaq", + "E485" => "snow", + "E4B7" => "tennis", + "E5BD" => "fuji", + "E558" => "copyright", + "E4B0" => "bullettrain", + "E4D8" => "horse", + "E596" => "telephone", + "E48F" => "aries", + "E46A" => "signaler", + "E472" => "angry", + "E51A" => "boutique", + "E54E" => "tm", + "E5A3" => "club", + "E493" => "leo", + "E4AE" => "bicycle", + "E499" => "aquarius", + "E4E7" => "bleah", + "E5AD" => "ok", + "E49F" => "book", + "E5A7" => "paper", + "E4A0" => "clip", + "E4E5" => "annoy", + "EAAF" => "bread", + "E509" => "rouge", + "EB7D" => "bud", + "E594" => "clock", + "E519" => "key", + "EA8A" => "empty", + "E5B5" => "new", + "E47A" => "bomb", + "E5C6" => "coldsweats02", + "E49A" => "pisces", + "EB5D" => "pout", + "E4F3" => "punch", + "E5B1" => "sweat01", + "E469" => "typhoon", + "E4C7" => "dollar", + "E5C5" => "shock", + "E4F9" => "good", + "EA81" => "hotel", + "E4E4" => "tulip", + "E4F1" => "secret", + "EAF1" => "night", + "E4FE" => "eyeglass", + "EB2E" => "down", + "E555" => "upwardright", + "E4DB" => "cat", + "EB69" => "weep", + "E59C" => "art", + "E4F4" => "dash", + "E490" => "taurus", + "E57A" => "watch", + "EB77" => "denim", + "EB2C" => "flag", + "EAC5" => "confident", + "E4B4" => "yacht", + "E5A5" => "ear", + "E49C" => "bag", + "E4E1" => "dog", + "EB35" => "banana", + "E521" => "mail", + "EAA5" => "heart", + "EB75" => "heart02", + "E47F" => "wheelchair", + "E48D" => "cloud", + "E4C3" => "beer", + "EAAB" => "shine", + "EA92" => "memo" + } +} diff --git a/tools/make_emoji b/tools/make_emoji new file mode 100644 index 000000000..ef5061ca7 --- /dev/null +++ b/tools/make_emoji @@ -0,0 +1,15 @@ +my $emoji = do 'Emoticon.pl'; +use YAML; + + +for my $carrier qw(docomo softbank kddi) { + +print "\t\t// Emoji for $carrier\n"; + +for $codepoint (keys %{$emoji->{$carrier}}) { + print "\t\tcase 0x$codepoint: \n"; + print "\t\t\t".'buf.append("{$carrier}->{$codepoint}.'.gif\" alt=\"'.$emoji->{$carrier}->{$codepoint}.'\">'.");\n\t\t\tbreak;\n"; + + +} +}