diff --git a/lib/emoji.py b/lib/emoji.py new file mode 100755 index 0000000..d7a4e25 --- /dev/null +++ b/lib/emoji.py @@ -0,0 +1,65 @@ +#!/usr/bin/env python2 +# -*- coding: UTF-8 -*- +# File: emoji.py +# Date: Sun Dec 14 01:56:45 2014 +0800 +# Author: Yuxin Wu + +import os +import re +LIB_PATH = os.path.dirname(os.path.abspath(__file__)) + +from emojiname import gQQFaceMap as gBracketFace +from emojiname import gUnicodeFaceMap as gUnicodeFace +from emojiname import gEmojiCodeMap as gUnicodeCodeMap + +class EmojiProvider(object): + def __init__(self): + # [微笑] -> 0 + self.bracket_face = dict([(('[' + k + ']').decode('utf-8'), v) + for k, v in gBracketFace.iteritems()]) + + # 1f35c -> "\ue340" + #self.unicode_face_code = gUnicodeCodeMap + + # u'\U0001f35c' -> "e340" + self.unicode_face = dict([(unichr(int(k, 16)), v[2:]) + for k, v in gUnicodeCodeMap.iteritems()]) + self.unicode_re = re.compile(u'[\U00010000-\U0010ffff]|[\u2600-\u2764]|\u2122|\u00a9|\u00ae') + self.used_emoji_id = set() + + @staticmethod + def gen_html_elem(emoji_id): + return ''.format(emoji_id) + + def _replace_unicode(self, msg): + # didn't find the code + if not self.unicode_re.findall(msg): + return msg + for k, v in self.unicode_face.iteritems(): + if k in msg: + self.used_emoji_id.add(v) + msg = msg.replace(k, EmojiProvider.gen_html_elem(v)) + return msg + + def _replace_bracket(self, msg): + if not '[' in msg or not ']' in msg: + return msg + for k, v in self.bracket_face.iteritems(): + if k in msg: + self.used_emoji_id.add(v) + msg = msg.replace(k, EmojiProvider.gen_html_elem(v)) + return msg + + def replace_emojicode(self, msg): + """ replace the emoji code in msg + return a html + """ + msg = self._replace_unicode(msg) + msg = self._replace_bracket(msg) + return msg + +if __name__ == '__main__': + emoji = EmojiProvider() + msg = u"[挥手]哈哈呵呵hihi\U0001f684\u2728\u0001" + msg = emoji.replace_emojicode(msg) + print msg diff --git a/lib/emojiname.py b/lib/emojiname.py new file mode 100644 index 0000000..cb9cd2a --- /dev/null +++ b/lib/emojiname.py @@ -0,0 +1,1036 @@ +# -*- coding: UTF-8 -*- +# this file is copied and modified +# from a javascript file in wx.qq.com + +gQQFaceMap = { +"微笑" : "0", +"撇嘴" :"1", +"色" : "2", +"发呆" : "3", +"得意" : "4", +"流泪" : "5", +"害羞" : "6", +"闭嘴" : "7", +"睡" : "8", +"大哭" : "9", +"尴尬" : "10", +"发怒" : "11", +"调皮" : "12", +"呲牙" : "13", +"惊讶" : "14", +"难过" : "15", +"酷" : "16", +"冷汗" : "17", +"抓狂" : "18", +"吐" : "19", +"偷笑" : "20", +"可爱" : "21", +"愉快" : "21", +"白眼" : "22", +"傲慢" : "23", +"饥饿" : "24", +"困" : "25", +"惊恐" : "26", +"流汗" : "27", +"憨笑" : "28", +"悠闲" : "29", +"大兵" : "29", +"奋斗" : "30", +"咒骂" : "31", +"疑问" : "32", +"嘘" : "33", +"晕" : "34", +"疯了" : "35", +"折磨" : "35", +"衰" : "36", +"骷髅" : "37", +"敲打" : "38", +"再见" : "39", +"擦汗" : "40", +"抠鼻" : "41", +"鼓掌" : "42", +"糗大了" : "43", +"坏笑" : "44", +"左哼哼" : "45", +"右哼哼" : "46", +"哈欠" : "47", +"鄙视" : "48", +"委屈" : "49", +"快哭了" : "50", +"阴险" : "51", +"亲亲" : "52", +"吓" : "53", +"可怜" : "54", +"菜刀" : "55", +"西瓜" : "56", +"啤酒" : "57", +"篮球" : "58", +"乒乓" : "59", +"咖啡" : "60", +"饭" : "61", +"猪头" : "62", +"玫瑰" : "63", +"凋谢" : "64", +"嘴唇" : "65", +"示爱" : "65", +"爱心" : "66", +"心碎" : "67", +"蛋糕" : "68", +"闪电" : "69", +"炸弹" : "70", +"刀" : "71", +"足球" : "72", +"瓢虫" : "73", +"便便" : "74", +"月亮" : "75", +"太阳" : "76", +"礼物" : "77", +"拥抱" : "78", +"强" : "79", +"弱" : "80", +"握手" : "81", +"胜利" : "82", +"抱拳" : "83", +"勾引" : "84", +"拳头" : "85", +"差劲" : "86", +"爱你" : "87", +"NO" : "88", +"OK" : "89", +"爱情" : "90", +"飞吻" : "91", +"跳跳" : "92", +"发抖" : "93", +"怄火" : "94", +"转圈" : "95", +"磕头" : "96", +"回头" : "97", +"跳绳" : "98", +"挥手" : "99", +"激动" : "100", +"街舞" : "101", +"献吻" : "102", +"左太极" : "103", +"右太极" : "104", + +"Smile" : "0", +"Grimace" :"1", +"Drool" : "2", +"Scowl" : "3", +"Chill" : "4", +"Sob" : "5", +"Shy" : "6", +"Shutup" : "7", +"Silent" : "7", +"Sleep" : "8", +"Cry" : "9", +"Awkward" : "10", +"Pout" : "11", +"Angry" : "11", +"Wink" : "12", +"Tongue" : "12", +"Grin" : "13", +"Surprised" : "14", +"Surprise" : "14", +"Frown" : "15", +"Cool" : "16", +"Ruthless" : "16", +"Tension" : "17", +"Blush" : "17", +"Scream" : "18", +"Crazy" : "18", +"Puke" : "19", +"Chuckle" : "20", +"Joyful" : "21", +"Slight" : "22", +"Smug" : "23", +"Hungry" : "24", +"Drowsy" : "25", +"Panic" : "26", +"Sweat" : "27", +"Laugh" : "28", +"Loafer" : "29", +"Commando" : "29", +"Strive" : "30", +"Determined" : "30", +"Scold" : "31", +"Doubt" : "32", +"Shocked" : "32", +"Shhh" : "33", +"Dizzy" : "34", +"Crazy" : "35", +"Tormented" : "35", +"BadLuck" : "36", +"Toasted" : "36", +"Skull" : "37", +"Hammer" : "38", +"Wave" : "39", +"Relief" : "40", +"Speechless" : "40", +"DigNose" : "41", +"NosePick" : "41", +"Clap" : "42", +"Shame" : "43", +"Trick" : "44", +"Bah!L" : "45", +"Bah!R" : "46", +"Yawn" : "47", +"Lookdown" : "48", +"Pooh-pooh" : "48", +"Wronged" : "49", +"Shrunken" : "49", +"Puling" : "50", +"TearingUp" : "50", +"Sly" : "51", +"Kiss" : "52", +"Uh-oh" : "53", +"Wrath" : "53", +"Whimper" : "54", +"Cleaver" : "55", +"Melon" : "56", +"Watermelon" : "56", +"Beer" : "57", +"Basketball" : "58", +"PingPong" : "59", +"Coffee" : "60", +"Rice" : "61", +"Pig" : "62", +"Rose" : "63", +"Wilt" : "64", +"Lip" : "65", +"Heart" : "66", +"BrokenHeart" : "67", +"Cake" : "68", +"Lightning" : "69", +"Bomb" : "70", +"Dagger" : "71", +"Soccer" : "72", +"Ladybug" : "73", +"Poop" : "74", +"Moon" : "75", +"Sun" : "76", +"Gift" : "77", +"Hug" : "78", +"Strong" : "79", +"ThumbsUp" : "79", +"Weak" : "80", +"ThumbsDown" : "80", +"Shake" : "81", +"Victory" : "82", +"Peace" : "82", +"Admire" : "83", +"Fight" : "83", +"Beckon" : "84", +"Fist" : "85", +"Pinky" : "86", +"Love" : "87", +"RockOn" : "87", +"No" : "88", +"Nuh-uh" : "88", +"OK" : "89", +"InLove" : "90", +"Blowkiss" : "91", +"Waddle" : "92", +"Tremble" : "93", +"Aaagh!" : "94", +"Twirl" : "95", +"Kotow" : "96", +"Lookback" : "97", +"Dramatic" : "97", +"Jump" : "98", +"JumpRope" : "98", +"Give-in" : "99", +"Surrender" : "99", +"Hooray" : "100", +"HeyHey" : "101", +"Meditate" : "101", +"Smooch" : "102", +"TaiJi L" : "103", +"TaiChi L" : "103", +"TaiJi R" : "104", +"TaiChi R" : "104", + +"微笑" : "0", +"撇嘴" :"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", +"壞笑" : "44", +"左哼哼" : "45", +"右哼哼" : "46", +"哈欠" : "47", +"鄙視" : "48", +"委屈" : "49", +"快哭了" : "50", +"陰險" : "51", +"親親" : "52", +"嚇" : "53", +"可憐" : "54", +"菜刀" : "55", +"西瓜" : "56", +"啤酒" : "57", +"籃球" : "58", +"乒乓" : "59", +"咖啡" : "60", +"飯" : "61", +"豬頭" : "62", +"玫瑰" : "63", +"枯萎" : "64", +"嘴唇" : "65", +"愛心" : "66", +"心碎" : "67", +"蛋糕" : "68", +"閃電" : "69", +"炸彈" : "70", +"刀" : "71", +"足球" : "72", +"甲蟲" : "73", +"便便" : "74", +"月亮" : "75", +"太陽" : "76", +"禮物" : "77", +"擁抱" : "78", +"強" : "79", +"弱" : "80", +"握手" : "81", +"勝利" : "82", +"抱拳" : "83", +"勾引" : "84", +"拳頭" : "85", +"差勁" : "86", +"愛你" : "87", +"愛你" : "88", +"OK" : "89", +"愛情" : "90", +"飛吻" : "91", +"跳跳" : "92", +"發抖" : "93", +"噴火" : "94", +"轉圈" : "95", +"磕頭" : "96", +"回頭" : "97", +"跳繩" : "98", +"投降" : "99", +"激動" : "100", +"亂舞" : "101", +"獻吻" : "102", +"左太極" : "103", +"右太極" : "104" +} + +gUnicodeFaceMap = { + "<笑脸>" : "1f604", + "<笑臉>" : "1f604", + "" : "1f604", + "<开心>" : "1f60a", + "<開心>" : "1f60a", + "" : "1f60a", + "<大笑>" : "1f603", + "<大笑>" : "1f603", + "" : "1f603", + "<热情>" : "263a", + "<熱情>" : "263a", + "" : "263a", + "<眨眼>" : "1f609", + "<眨眼>" : "1f609", + "" : "1f609", + "<色>" : "1f60d", + "<色>" : "1f60d", + "" : "1f60d", + "<接吻>" : "1f618", + "<接吻>" : "1f618", + "" : "1f618", + "<亲吻>" : "1f61a", + "<親吻>" : "1f61a", + "" : "1f61a", + "<脸红>" : "1f633", + "<臉紅>" : "1f633", + "" : "1f633", + "<露齿笑>" : "1f63c", + "<露齒笑>" : "1f63c", + "" : "1f63c", + "<满意>" : "1f60c", + "<滿意>" : "1f60c", + "" : "1f60c", + "<戏弄>" : "1f61c", + "<戲弄>" : "1f61c", + "" : "1f61c", + "<吐舌>" : "1f445", + "<吐舌>" : "1f445", + "" : "1f445", + "<无语>" : "1f612", + "<無語>" : "1f612", + "" : "1f612", + "<得意>" : "1f60f", + "<得意>" : "1f60f", + "" : "1f60f", + "<汗>" : "1f613", + "<汗>" : "1f613", + "" : "1f613", + "<失望>" : "1f640", + "<失望>" : "1f640", +"" : "1f640", +"<低落>" : "1f61e", +"<低落>" : "1f61e", +"" : "1f61e", +"<呸>" : "1f616", +"<呸>" : "1f616", +"" : "1f616", +"<焦虑>" : "1f625", +"<焦慮>" : "1f625", +"" : "1f625", +"<担心>" : "1f630", +"<擔心>" : "1f630", +"" : "1f630", +"<震惊>" : "1f628", +"<震驚>" : "1f628", +"" : "1f628", +"<悔恨>" : "1f62b", +"<悔恨>" : "1f62b", +"" : "1f62b", +"<眼泪>" : "1f622", +"<眼淚>" : "1f622", +"" : "1f622", +"<哭>" : "1f62d", +"<哭>" : "1f62d", +"" : "1f62d", +"<破涕为笑>" : "1f602", +"<破涕為笑>" : "1f602", +"" : "1f602", +"<晕>" : "1f632", +"<晕>" : "1f632", +"" : "1f632", +"<恐惧>" : "1f631", +"<恐懼>" : "1f631", +"" : "1f631", +"<心烦>" : "1f620", +"<心煩>" : "1f620", +"" : "1f620", +"<生气>" : "1f63e", +"<生氣>" : "1f63e", +"" : "1f63e", +"<睡觉>" : "1f62a", +"<睡覺>" : "1f62a", +"" : "1f62a", +"<生病>" : "1f637", +"<生病>" : "1f637", +"" : "1f637", +"<恶魔>" : "1f47f", +"<惡魔>" : "1f47f", +"" : "1f47f", +"<外星人>" : "1f47d", +"<外星人>" : "1f47d", +"" : "1f47d", +"<心>" : "2764", +"<心>" : "2764", +"" : "2764", +"<心碎>" : "1f494", +"<心碎>" : "1f494", +"" : "1f494", +"<丘比特>" : "1f498", +"<丘比特>" : "1f498", +"" : "1f498", +"<闪烁>" : "2728", +"<閃爍>" : "2728", +"" : "2728", +"<星星>" : "1f31f", +"<星星>" : "1f31f", +"" : "1f31f", +"<叹号>" : "2755", +"<嘆號>" : "2755", +"" : "2755", +"<问号>" : "2754", +"<問號>" : "2754", +"" : "2754", +"<睡着>" : "1f4a4", +"<睡著>" : "1f4a4", +"" : "1f4a4", +"<水滴>" : "1f4a6", +"<水滴>" : "1f4a6", +"" : "1f4a6", +"<音乐>" : "1f3b5", +"<音樂>" : "1f3b5", +"" : "1f3b5", +"<火>" : "1f525", +"<火>" : "1f525", +"" : "1f525", +"<便便>" : "1f4a9", +"<便便>" : "1f4a9", +"" : "1f4a9", +"<强>" : "1f44d", +"<強>" : "1f44d", +"" : "1f44d", +"<弱>" : "1f44e", +"<弱>" : "1f44e", +"" : "1f44e", +"<拳头>" : "1f44a", +"<拳頭>" : "1f44a", +"" : "1f44a", +"<胜利>" : "270c", +"<勝利>" : "270c", +"" : "270c", +"<上>" : "1f446", +"<上>" : "1f446", +"" : "1f446", +"<下>" : "1f447", +"<下>" : "1f447", +"" : "1f447", +"<右>" : "1f449", +"<右>" : "1f449", +"" : "1f449", +"<左>" : "1f448", +"<左>" : "1f448", +"" : "1f448", +"<第一>" : "261d", +"<第一>" : "261d", +"<#1>" : "261d", +"<强壮>" : "1f4aa", +"<強壯>" : "1f4aa", +"" : "1f4aa", +"<吻>" : "1f48f", +"<吻>" : "1f48f", +"" : "1f48f", +"<热恋>" : "1f491", +"<熱戀>" : "1f491", +"" : "1f491", +"<男孩>" : "1f466", +"<男孩>" : "1f466", +"" : "1f466", +"<女孩>" : "1f467", +"<女孩>" : "1f467", +"" : "1f467", +"<女士>" : "1f469", +"<女士>" : "1f469", +"" : "1f469", +"<男士>" : "1f468", +"<男士>" : "1f468", +"" : "1f468", +"<天使>" : "1f47c", +"<天使>" : "1f47c", +"" : "1f47c", +"<骷髅>" : "1f480", +"<骷髏>" : "1f480", +"" : "1f480", +"<红唇>" : "1f48b", +"<紅唇>" : "1f48b", +"" : "1f48b", +"<太阳>" : "2600", +"<太陽>" : "2600", +"" : "2600", +"<下雨>" : "2614", +"<下雨>" : "2614", +"" : "2614", +"<多云>" : "2601", +"<多雲>" : "2601", +"" : "2601", +"<雪人>" : "26c4", +"<雪人>" : "26c4", +"" : "26c4", +"<月亮>" : "1f319", +"<月亮>" : "1f319", +"" : "1f319", +"<闪电>" : "26a1", +"<閃電>" : "26a1", +"" : "26a1", +"<海浪>" : "1f30a", +"<海浪>" : "1f30a", +"" : "1f30a", +"<猫>" : "1f431", +"<貓>" : "1f431", +"" : "1f431", +"<小狗>" : "1f429", +"<小狗>" : "1f429", +"" : "1f429", +"<老鼠>" : "1f42d", +"<老鼠>" : "1f42d", +"" : "1f42d", +"<仓鼠>" : "1f439", +"<倉鼠>" : "1f439", +"" : "1f439", +"<兔子>" : "1f430", +"<兔子>" : "1f430", +"" : "1f430", +"<狗>" : "1f43a", +"<狗>" : "1f43a", +"" : "1f43a", +"<青蛙>" : "1f438", +"<青蛙>" : "1f438", +"" : "1f438", +"<老虎>" : "1f42f", +"<老虎>" : "1f42f", +"" : "1f42f", +"<考拉>" : "1f428", +"<考拉>" : "1f428", +"" : "1f428", +"<熊>" : "1f43b", +"<熊>" : "1f43b", +"" : "1f43b", +"<猪>" : "1f437", +"<豬>" : "1f437", +"" : "1f437", +"<牛>" : "1f42e", +"<牛>": "1f42e", +"" : "1f42e", +"<野猪>" : "1f417", +"<野豬>" : "1f417", +"" : "1f417", +"<猴子>" : "1f435", +"<猴子>" : "1f435", +"" : "1f435", +"<马>" : "1f434", +"<馬>" : "1f434", +"" : "1f434", +"<蛇>" : "1f40d", +"<蛇>" : "1f40d", +"" : "1f40d", +"<鸽子>" : "1f426", +"<鴿子>" : "1f426", +"" : "1f426", +"<鸡>" : "1f414", +"<雞>" : "1f414", +"" : "1f414", +"<企鹅>" : "1f427", +"<企鵝>" : "1f427", +"" : "1f427", +"<毛虫>" : "1f41b", +"<毛蟲>" : "1f41b", +"" : "1f41b", +"<章鱼>" : "1f419", +"<八爪魚>" : "1f419", +"" : "1f419", +"<鱼>" : "1f420", +"<魚>" : "1f420", +"" : "1f420", +"<鲸鱼>" : "1f433", +"<鯨魚>" : "1f433", +"" : "1f433", +"<海豚>" : "1f42c", +"<海豚>" : "1f42c", +"" : "1f42c", +"<玫瑰>" : "1f339", +"<玫瑰>" : "1f339", +"" : "1f339", +"<花>" : "1f33a", +"<花>" : "1f33a", +"" : "1f33a", +"<棕榈树>" : "1f334", +"<棕櫚樹>" : "1f334", +"" : "1f334", +"<仙人掌>" : "1f335", +"<仙人掌>" : "1f335", +"" : "1f335", +"<礼盒>" : "1f49d", +"<禮盒>" : "1f49d", +"" : "1f49d", +"<南瓜灯>" : "1f383", +"<南瓜燈>" : "1f383", +"" : "1f383", +"<鬼魂>" : "1f47b", +"<鬼魂>" : "1f47b", +"" : "1f47b", +"<圣诞老人>" : "1f385", +"<聖誕老人>" : "1f385", +"" : "1f385", +"<圣诞树>" : "1f384", +"<聖誕樹>" : "1f384", +"" : "1f384", +"<礼物>" : "1f381", +"<禮物>" : "1f381", +"" : "1f381", +"<铃>" : "1f514", +"<鈴鐺>" : "1f514", +"" : "1f514", +"<庆祝>" : "1f389", +"<慶祝>" : "1f389", +"" : "1f389", +"<气球>" : "1f388", +"<氣球>" : "1f388", +"" : "1f388", +"" : "1f4bf", +"" : "1f4bf", +"" : "1f4bf", +"<相机>" : "1f4f7", +"<相機>" : "1f4f7", +"" : "1f4f7", +"<录像机>" : "1f3a5", +"<錄影機>" : "1f3a5", +"" : "1f3a5", +"<电脑>" : "1f4bb", +"<電腦>" : "1f4bb", +"" : "1f4bb", +"<电视>" : "1f4fa", +"<電視>" : "1f4fa", +"" : "1f4fa", +"<电话>" : "1f4de", +"<電話>" : "1f4de", +"" : "1f4de", +"<解锁>" : "1f513", +"<解鎖>" : "1f513", +"" : "1f513", +"<锁>" : "1f512", +"<鎖>": "1f512", +"" : "1f512", +"<钥匙>" : "1f511", +"<鑰匙>" : "1f511", +"" : "1f511", +"<成交>" : "1f528", +"<成交>" : "1f528", +"" : "1f528", +"<灯泡>" : "1f4a1", +"<燈泡>" : "1f4a1", +"" : "1f4a1", +"<邮箱>" : "1f4eb", +"<郵箱>" : "1f4eb", +"" : "1f4eb", +"<浴缸>" : "1f6c0", +"<浴缸>" : "1f6c0", +"" : "1f6c0", +"<钱>" : "1f4b2", +"<錢>" : "1f4b2", +"" : "1f4b2", +"<炸弹>" : "1f4a3", +"<炸彈>" : "1f4a3", +"" : "1f4a3", +"<手枪>" : "1f52b", +"<手槍>" : "1f52b", +"" : "1f52b", +"<药丸>" : "1f48a", +"<藥丸>" : "1f48a", +"" : "1f48a", +"<橄榄球>" : "1f3c8", +"<橄欖球>" : "1f3c8", +"" : "1f3c8", +"<篮球>" : "1f3c0", +"<籃球>" : "1f3c0", +"" : "1f3c0", +"<足球>" : "26bd", +"<足球>" : "26bd", +"" : "26bd", +"<棒球>" : "26be", +"<棒球>" : "26be", +"" : "26be", +"<高尔夫>" : "26f3", +"<高爾夫>" : "26f3", +"" : "26f3", +"<奖杯>" : "1f3c6", +"<獎盃>" : "1f3c6", +"" : "1f3c6", +"<入侵者>" : "1f47e", +"<入侵者>" : "1f47e", +"" : "1f47e", +"<唱歌>" : "1f3a4", +"<唱歌>" : "1f3a4", +"" : "1f3a4", +"<吉他>" : "1f3b8", +"<吉他>" : "1f3b8", +"" : "1f3b8", +"<比基尼>" : "1f459", +"<比基尼>" : "1f459", +"" : "1f459", +"<皇冠>" : "1f451", +"<皇冠>" : "1f451", +"" : "1f451", +"<雨伞>" : "1f302", +"<雨傘>" : "1f302", +"" : "1f302", +"<手提包>" : "1f45c", +"<手提包>" : "1f45c", +"" : "1f45c", +"<口红>" : "1f484", +"<口红>" : "1f484", +"" : "1f484", +"<戒指>" : "1f48d", +"<戒指>" : "1f48d", +"" : "1f48d", +"<钻石>" : "1f48e", +"<鑽石>" : "1f48e", +"" : "1f48e", +"<咖啡>" : "2615", +"<咖啡>" : "2615", +"" : "2615", +"<啤酒>" : "1f37a", +"<啤酒>" : "1f37a", +"" : "1f37a", +"<干杯>" : "1f37b", +"<乾杯>" : "1f37b", +"" : "1f37b", +"<鸡尾酒>" : "1f377", +"<雞尾酒>" : "1f377", +"" : "1f377", +"<汉堡>" : "1f354", +"<漢堡>" : "1f354", +"" : "1f354", +"<薯条>" : "1f35f", +"<薯條>" : "1f35f", +"" : "1f35f", +"<意面>" : "1f35d", +"<意粉>" : "1f35d", +"" : "1f35d", +"<寿司>" : "1f363", +"<壽司>" : "1f363", +"" : "1f363", +"<面条>" : "1f35c", +"<麵條>" : "1f35c", +"" : "1f35c", +"<煎蛋>" : "1f373", +"<煎蛋>" : "1f373", +"" : "1f373", +"<冰激凌>" : "1f366", +"<雪糕>" : "1f366", +"" : "1f366", +"<蛋糕>" : "1f382", +"<蛋糕>" : "1f382", +"" : "1f382", +"<苹果>" : "1f34f", +"<蘋果>" : "1f34f", +"" : "1f34f", +"<飞机>" : "2708", +"<飛機>" : "2708", +"" : "2708", +"<火箭>" : "1f680", +"<火箭>" : "1f680", +"" : "1f680", +"<自行车>" : "1f6b2", +"<單車>" : "1f6b2", +"" : "1f6b2", +"<高铁>" : "1f684", +"<高鐵>" : "1f684", +"" : "1f684", +"<警告>" : "26a0", +"<警告>" : "26a0", +"" : "26a0", +"<旗>" : "1f3c1", +"<旗>" : "1f3c1", +"" : "1f3c1", +"<男人>" : "1f6b9", +"<男>" : "1f6b9", +"" : "1f6b9", +"<女人>" : "1f6ba", +"<女>" : "1f6ba", +"" : "1f6ba", +"" : "2b55", +"" : "2b55", +"" : "2b55", +"" : "274e", +"" : "274e", +"" : "274e", +"<版权>" : "a9", +"<版權>" : "a9", +"" : "a9", +"<注册商标>" : "ae", +"<注冊商標>" : "ae", +"" : "ae", +"<商标>" : "2122", +"<商標>" : "2122", +"" : "2122" +} + +gEmojiCodeMap = { +"1f302" : "\ue43c", +"1f30a" : "\ue43e", +"1f319" : "\ue04c", +"1f31f" : "\ue335", +"1f334" : "\ue307", +"1f335" : "\ue308", +"1f339" : "\ue032", +"1f33a" : "\ue303", +"1f34f" : "\ue345", +"1f354" : "\ue120", +"1f35c" : "\ue340", +"1f35d" : "\ue33f", +"1f35f" : "\ue33b", +"1f363" : "\ue344", +"1f366" : "\ue33a", +"1f373" : "\ue147", +"1f377" : "\ue044", +"1f37a" : "\ue047", +"1f37b" : "\ue30c", +"1f381" : "\ue112", +"1f382" : "\ue34b", +"1f383" : "\ue445", +"1f384" : "\ue033", +"1f385" : "\ue448", +"1f388" : "\ue310", +"1f389" : "\ue312", +"1f3a4" : "\ue03c", +"1f3a5" : "\ue03d", +"1f3b5" : "\ue03e", +"1f3b8" : "\ue041", +"1f3c0" : "\ue42a", +"1f3c1" : "\ue132", +"1f3c6" : "\ue131", +"1f3c8" : "\ue42b", +"1f40d" : "\ue52d", +"1f414" : "\ue52e", +"1f417" : "\ue52f", +"1f419" : "\ue10a", +"1f41b" : "\ue525", +"1f420" : "\ue522", +"1f426" : "\ue521", +"1f427" : "\ue055", +"1f428" : "\ue527", +"1f429" : "\ue052", +"1f42c" : "\ue520", +"1f42d" : "\ue053", +"1f42e" : "\ue52b", +"1f42f" : "\ue050", +"1f430" : "\ue52c", +"1f431" : "\ue04f", +"1f433" : "\ue054", +"1f434" : "\ue01a", +"1f435" : "\ue109", +"1f437" : "\ue10b", +"1f438" : "\ue531", +"1f439" : "\ue524", +"1f43a" : "\ue52a", +"1f43b" : "\ue051", +"1f445" : "\ue409", +"1f446" : "\ue22e", +"1f447" : "\ue22f", +"1f448" : "\ue230", +"1f449" : "\ue231", +"1f44a" : "\ue00d", +"1f44d" : "\ue00e", +"1f44e" : "\ue421", +"1f451" : "\ue10e", +"1f459" : "\ue322", +"1f45c" : "\ue323", +"1f466" : "\ue001", +"1f467" : "\ue002", +"1f468" : "\ue004", +"1f469" : "\ue005", +"1f47b" : "\ue11b", +"1f47c" : "\ue04e", +"1f47d" : "\ue10c", +"1f47e" : "\ue12b", +"1f47f" : "\ue11a", +"1f480" : "\ue11c", +"1f484" : "\ue31c", +"1f48a" : "\ue30f", +"1f48b" : "\ue003", +"1f48d" : "\ue034", +"1f48e" : "\ue035", +"1f48f" : "\ue111", +"1f491" : "\ue425", +"1f494" : "\ue023", +"1f498" : "\ue329", +"1f49d" : "\ue437", +"1f4a1" : "\ue10f", +"1f4a3" : "\ue311", +"1f4a4" : "\ue13c", +"1f4a6" : "\ue331", +"1f4a9" : "\ue05a", +"1f4aa" : "\ue14c", +"1f4b2" : "\ue12f", +"1f4bb" : "\ue00c", +"1f4bf" : "\ue126", +"1f4de" : "\ue009", +"1f4eb" : "\ue101", +"1f4f7" : "\ue008", +"1f4fa" : "\ue12a", +"1f511" : "\ue03f", +"1f512" : "\ue144", +"1f513" : "\ue145", +"1f514" : "\ue325", +"1f525" : "\ue11d", +"1f528" : "\ue116", +"1f52b" : "\ue113", +"1f602" : "\ue412", +"1f603" : "\ue057", +"1f604" : "\ue415", +"1f609" : "\ue405", +"1f60a" : "\ue056", +"1f60c" : "\ue40a", +"1f60d" : "\ue106", +"1f60f" : "\ue402", +"1f612" : "\ue40e", +"1f613" : "\ue108", +"1f616" : "\ue407", +"1f618" : "\ue418", +"1f61a" : "\ue417", +"1f61c" : "\ue105", +"1f61e" : "\ue058", +"1f620" : "\ue059", +"1f622" : "\ue413", +"1f625" : "\ue401", +"1f628" : "\ue40b", +"1f62a" : "\ue408", +"1f62b" : "\ue406", +"1f62d" : "\ue411", +"1f630" : "\ue40f", +"1f631" : "\ue107", +"1f632" : "\ue410", +"1f633" : "\ue40d", +"1f637" : "\ue40c", +"1f63c" : "\ue404", +"1f63e" : "\ue416", +"1f640" : "\ue403", +"1f680" : "\ue10d", +"1f684" : "\ue435", +"1f6b2" : "\ue136", +"1f6b9" : "\ue138", +"1f6ba" : "\ue139", +"1f6c0" : "\ue13f", +"2122" : "\ue537", +"2600" : "\ue04a", +"2601" : "\ue049", +"2614" : "\ue04b", +"2615" : "\ue045", +"261d" : "\ue00f", +"263a" : "\ue414", +"26a0" : "\ue252", +"26a1" : "\ue13d", +"26bd" : "\ue018", +"26be" : "\ue016", +"26c4" : "\ue048", +"26f3" : "\ue014", +"2708" : "\ue01d", +"270c" : "\ue011", +"2728" : "\ue32e", +"274e" : "\ue333", +"2754" : "\ue336", +"2755" : "\ue337", +"2764" : "\ue022", +"2b55" : "\ue332", +"a9" : "\ue24e", +"ae" : "\ue24f", +} diff --git a/lib/render.py b/lib/render.py index 3be4878..977e9d8 100755 --- a/lib/render.py +++ b/lib/render.py @@ -1,7 +1,7 @@ #!/usr/bin/env python2 # -*- coding: UTF-8 -*- # File: render.py -# Date: Sat Dec 13 00:29:29 2014 +0800 +# Date: Sun Dec 14 00:12:43 2014 +0800 # Author: Yuxin Wu import os @@ -23,8 +23,8 @@ from .msg import * from .utils import ensure_unicode TEMPLATES_FILES = {TYPE_MSG: "TP_MSG", - TYPE_SPEAK: "TP_SPEAK", - TYPE_IMG: "TP_IMG"} + TYPE_IMG: "TP_IMG", + TYPE_SPEAK: "TP_SPEAK"} TEMPLATES = dict([(k, open(os.path.join( LIB_PATH, 'static/{}.html'.format(v))).read()) for k, v in TEMPLATES_FILES.iteritems()]) @@ -83,6 +83,9 @@ class HTMLRender(object): sender = 'you' if not msg.isSend else 'me' # TODO try: + if msg.type == TYPE_VIDEO: + # send a video file + raise template = ensure_unicode(TEMPLATES[msg.type]) if msg.type == TYPE_SPEAK: audio_str, duration = self.get_voice_mp3(msg.imgPath) @@ -102,8 +105,9 @@ class HTMLRender(object): raise except: template = ensure_unicode(TEMPLATES[1]) + content = msg.msg_str() return template.format(sender_label=sender, - content=msg.msg_str()) + content=content) def render_msgs(self, msgs): """ render msgs of the same friend""" diff --git a/lib/static/emojis/0.png b/lib/static/emojis/0.png new file mode 100644 index 0000000..fecdf64 Binary files /dev/null and b/lib/static/emojis/0.png differ diff --git a/lib/static/emojis/1.png b/lib/static/emojis/1.png new file mode 100644 index 0000000..4a8f6d8 Binary files /dev/null and b/lib/static/emojis/1.png differ diff --git a/lib/static/emojis/10.png b/lib/static/emojis/10.png new file mode 100644 index 0000000..643d588 Binary files /dev/null and b/lib/static/emojis/10.png differ diff --git a/lib/static/emojis/100.png b/lib/static/emojis/100.png new file mode 100644 index 0000000..defd90b Binary files /dev/null and b/lib/static/emojis/100.png differ diff --git a/lib/static/emojis/101.png b/lib/static/emojis/101.png new file mode 100644 index 0000000..e50e0ed Binary files /dev/null and b/lib/static/emojis/101.png differ diff --git a/lib/static/emojis/102.png b/lib/static/emojis/102.png new file mode 100644 index 0000000..4234cf8 Binary files /dev/null and b/lib/static/emojis/102.png differ diff --git a/lib/static/emojis/103.png b/lib/static/emojis/103.png new file mode 100644 index 0000000..c88c86e Binary files /dev/null and b/lib/static/emojis/103.png differ diff --git a/lib/static/emojis/104.png b/lib/static/emojis/104.png new file mode 100644 index 0000000..c0f733c Binary files /dev/null and b/lib/static/emojis/104.png differ diff --git a/lib/static/emojis/11.png b/lib/static/emojis/11.png new file mode 100644 index 0000000..abb63ac Binary files /dev/null and b/lib/static/emojis/11.png differ diff --git a/lib/static/emojis/12.png b/lib/static/emojis/12.png new file mode 100644 index 0000000..71ebde1 Binary files /dev/null and b/lib/static/emojis/12.png differ diff --git a/lib/static/emojis/13.png b/lib/static/emojis/13.png new file mode 100644 index 0000000..cdef874 Binary files /dev/null and b/lib/static/emojis/13.png differ diff --git a/lib/static/emojis/14.png b/lib/static/emojis/14.png new file mode 100644 index 0000000..b04e5ef Binary files /dev/null and b/lib/static/emojis/14.png differ diff --git a/lib/static/emojis/15.png b/lib/static/emojis/15.png new file mode 100644 index 0000000..e95ed36 Binary files /dev/null and b/lib/static/emojis/15.png differ diff --git a/lib/static/emojis/16.png b/lib/static/emojis/16.png new file mode 100644 index 0000000..7f25731 Binary files /dev/null and b/lib/static/emojis/16.png differ diff --git a/lib/static/emojis/17.png b/lib/static/emojis/17.png new file mode 100644 index 0000000..e70da61 Binary files /dev/null and b/lib/static/emojis/17.png differ diff --git a/lib/static/emojis/18.png b/lib/static/emojis/18.png new file mode 100644 index 0000000..9cd4c5e Binary files /dev/null and b/lib/static/emojis/18.png differ diff --git a/lib/static/emojis/19.png b/lib/static/emojis/19.png new file mode 100644 index 0000000..4c08233 Binary files /dev/null and b/lib/static/emojis/19.png differ diff --git a/lib/static/emojis/2.png b/lib/static/emojis/2.png new file mode 100644 index 0000000..7fc1c81 Binary files /dev/null and b/lib/static/emojis/2.png differ diff --git a/lib/static/emojis/20.png b/lib/static/emojis/20.png new file mode 100644 index 0000000..ba9bfef Binary files /dev/null and b/lib/static/emojis/20.png differ diff --git a/lib/static/emojis/21.png b/lib/static/emojis/21.png new file mode 100644 index 0000000..d37961c Binary files /dev/null and b/lib/static/emojis/21.png differ diff --git a/lib/static/emojis/22.png b/lib/static/emojis/22.png new file mode 100644 index 0000000..3e11992 Binary files /dev/null and b/lib/static/emojis/22.png differ diff --git a/lib/static/emojis/23.png b/lib/static/emojis/23.png new file mode 100644 index 0000000..2333dc9 Binary files /dev/null and b/lib/static/emojis/23.png differ diff --git a/lib/static/emojis/24.png b/lib/static/emojis/24.png new file mode 100644 index 0000000..8f29551 Binary files /dev/null and b/lib/static/emojis/24.png differ diff --git a/lib/static/emojis/25.png b/lib/static/emojis/25.png new file mode 100644 index 0000000..5aab19c Binary files /dev/null and b/lib/static/emojis/25.png differ diff --git a/lib/static/emojis/26.png b/lib/static/emojis/26.png new file mode 100644 index 0000000..07e6610 Binary files /dev/null and b/lib/static/emojis/26.png differ diff --git a/lib/static/emojis/27.png b/lib/static/emojis/27.png new file mode 100644 index 0000000..88caffc Binary files /dev/null and b/lib/static/emojis/27.png differ diff --git a/lib/static/emojis/28.png b/lib/static/emojis/28.png new file mode 100644 index 0000000..14c2298 Binary files /dev/null and b/lib/static/emojis/28.png differ diff --git a/lib/static/emojis/29.png b/lib/static/emojis/29.png new file mode 100644 index 0000000..0d17495 Binary files /dev/null and b/lib/static/emojis/29.png differ diff --git a/lib/static/emojis/3.png b/lib/static/emojis/3.png new file mode 100644 index 0000000..ca0f093 Binary files /dev/null and b/lib/static/emojis/3.png differ diff --git a/lib/static/emojis/30.png b/lib/static/emojis/30.png new file mode 100644 index 0000000..dcd92df Binary files /dev/null and b/lib/static/emojis/30.png differ diff --git a/lib/static/emojis/31.png b/lib/static/emojis/31.png new file mode 100644 index 0000000..446aae6 Binary files /dev/null and b/lib/static/emojis/31.png differ diff --git a/lib/static/emojis/32.png b/lib/static/emojis/32.png new file mode 100644 index 0000000..e093080 Binary files /dev/null and b/lib/static/emojis/32.png differ diff --git a/lib/static/emojis/33.png b/lib/static/emojis/33.png new file mode 100644 index 0000000..43f3358 Binary files /dev/null and b/lib/static/emojis/33.png differ diff --git a/lib/static/emojis/34.png b/lib/static/emojis/34.png new file mode 100644 index 0000000..2cf2a5d Binary files /dev/null and b/lib/static/emojis/34.png differ diff --git a/lib/static/emojis/35.png b/lib/static/emojis/35.png new file mode 100644 index 0000000..9cead1d Binary files /dev/null and b/lib/static/emojis/35.png differ diff --git a/lib/static/emojis/36.png b/lib/static/emojis/36.png new file mode 100644 index 0000000..c6955f6 Binary files /dev/null and b/lib/static/emojis/36.png differ diff --git a/lib/static/emojis/37.png b/lib/static/emojis/37.png new file mode 100644 index 0000000..18a7815 Binary files /dev/null and b/lib/static/emojis/37.png differ diff --git a/lib/static/emojis/38.png b/lib/static/emojis/38.png new file mode 100644 index 0000000..bc536fd Binary files /dev/null and b/lib/static/emojis/38.png differ diff --git a/lib/static/emojis/39.png b/lib/static/emojis/39.png new file mode 100644 index 0000000..2030033 Binary files /dev/null and b/lib/static/emojis/39.png differ diff --git a/lib/static/emojis/4.png b/lib/static/emojis/4.png new file mode 100644 index 0000000..520bdd2 Binary files /dev/null and b/lib/static/emojis/4.png differ diff --git a/lib/static/emojis/40.png b/lib/static/emojis/40.png new file mode 100644 index 0000000..1237777 Binary files /dev/null and b/lib/static/emojis/40.png differ diff --git a/lib/static/emojis/41.png b/lib/static/emojis/41.png new file mode 100644 index 0000000..f3ba4f9 Binary files /dev/null and b/lib/static/emojis/41.png differ diff --git a/lib/static/emojis/42.png b/lib/static/emojis/42.png new file mode 100644 index 0000000..90f36e5 Binary files /dev/null and b/lib/static/emojis/42.png differ diff --git a/lib/static/emojis/43.png b/lib/static/emojis/43.png new file mode 100644 index 0000000..0c9c60c Binary files /dev/null and b/lib/static/emojis/43.png differ diff --git a/lib/static/emojis/44.png b/lib/static/emojis/44.png new file mode 100644 index 0000000..0dbde48 Binary files /dev/null and b/lib/static/emojis/44.png differ diff --git a/lib/static/emojis/45.png b/lib/static/emojis/45.png new file mode 100644 index 0000000..60e5c89 Binary files /dev/null and b/lib/static/emojis/45.png differ diff --git a/lib/static/emojis/46.png b/lib/static/emojis/46.png new file mode 100644 index 0000000..a7febe8 Binary files /dev/null and b/lib/static/emojis/46.png differ diff --git a/lib/static/emojis/47.png b/lib/static/emojis/47.png new file mode 100644 index 0000000..2c9a890 Binary files /dev/null and b/lib/static/emojis/47.png differ diff --git a/lib/static/emojis/48.png b/lib/static/emojis/48.png new file mode 100644 index 0000000..450570c Binary files /dev/null and b/lib/static/emojis/48.png differ diff --git a/lib/static/emojis/49.png b/lib/static/emojis/49.png new file mode 100644 index 0000000..38f29ef Binary files /dev/null and b/lib/static/emojis/49.png differ diff --git a/lib/static/emojis/5.png b/lib/static/emojis/5.png new file mode 100644 index 0000000..77c1d7f Binary files /dev/null and b/lib/static/emojis/5.png differ diff --git a/lib/static/emojis/50.png b/lib/static/emojis/50.png new file mode 100644 index 0000000..9f79969 Binary files /dev/null and b/lib/static/emojis/50.png differ diff --git a/lib/static/emojis/51.png b/lib/static/emojis/51.png new file mode 100644 index 0000000..62fa28a Binary files /dev/null and b/lib/static/emojis/51.png differ diff --git a/lib/static/emojis/52.png b/lib/static/emojis/52.png new file mode 100644 index 0000000..c5ddba2 Binary files /dev/null and b/lib/static/emojis/52.png differ diff --git a/lib/static/emojis/53.png b/lib/static/emojis/53.png new file mode 100644 index 0000000..52d45f1 Binary files /dev/null and b/lib/static/emojis/53.png differ diff --git a/lib/static/emojis/54.png b/lib/static/emojis/54.png new file mode 100644 index 0000000..84dcddd Binary files /dev/null and b/lib/static/emojis/54.png differ diff --git a/lib/static/emojis/55.png b/lib/static/emojis/55.png new file mode 100644 index 0000000..d608a46 Binary files /dev/null and b/lib/static/emojis/55.png differ diff --git a/lib/static/emojis/56.png b/lib/static/emojis/56.png new file mode 100644 index 0000000..861d8d8 Binary files /dev/null and b/lib/static/emojis/56.png differ diff --git a/lib/static/emojis/57.png b/lib/static/emojis/57.png new file mode 100644 index 0000000..8b860da Binary files /dev/null and b/lib/static/emojis/57.png differ diff --git a/lib/static/emojis/58.png b/lib/static/emojis/58.png new file mode 100644 index 0000000..b14aafa Binary files /dev/null and b/lib/static/emojis/58.png differ diff --git a/lib/static/emojis/59.png b/lib/static/emojis/59.png new file mode 100644 index 0000000..694114e Binary files /dev/null and b/lib/static/emojis/59.png differ diff --git a/lib/static/emojis/6.png b/lib/static/emojis/6.png new file mode 100644 index 0000000..f34bc57 Binary files /dev/null and b/lib/static/emojis/6.png differ diff --git a/lib/static/emojis/60.png b/lib/static/emojis/60.png new file mode 100644 index 0000000..ab53a5e Binary files /dev/null and b/lib/static/emojis/60.png differ diff --git a/lib/static/emojis/61.png b/lib/static/emojis/61.png new file mode 100644 index 0000000..e582a6a Binary files /dev/null and b/lib/static/emojis/61.png differ diff --git a/lib/static/emojis/62.png b/lib/static/emojis/62.png new file mode 100644 index 0000000..23db0d8 Binary files /dev/null and b/lib/static/emojis/62.png differ diff --git a/lib/static/emojis/63.png b/lib/static/emojis/63.png new file mode 100644 index 0000000..dcac0ec Binary files /dev/null and b/lib/static/emojis/63.png differ diff --git a/lib/static/emojis/64.png b/lib/static/emojis/64.png new file mode 100644 index 0000000..7a0816b Binary files /dev/null and b/lib/static/emojis/64.png differ diff --git a/lib/static/emojis/65.png b/lib/static/emojis/65.png new file mode 100644 index 0000000..89d4480 Binary files /dev/null and b/lib/static/emojis/65.png differ diff --git a/lib/static/emojis/66.png b/lib/static/emojis/66.png new file mode 100644 index 0000000..9cf8d39 Binary files /dev/null and b/lib/static/emojis/66.png differ diff --git a/lib/static/emojis/67.png b/lib/static/emojis/67.png new file mode 100644 index 0000000..ba4a264 Binary files /dev/null and b/lib/static/emojis/67.png differ diff --git a/lib/static/emojis/68.png b/lib/static/emojis/68.png new file mode 100644 index 0000000..4991d75 Binary files /dev/null and b/lib/static/emojis/68.png differ diff --git a/lib/static/emojis/69.png b/lib/static/emojis/69.png new file mode 100644 index 0000000..ba97424 Binary files /dev/null and b/lib/static/emojis/69.png differ diff --git a/lib/static/emojis/7.png b/lib/static/emojis/7.png new file mode 100644 index 0000000..fa5dace Binary files /dev/null and b/lib/static/emojis/7.png differ diff --git a/lib/static/emojis/70.png b/lib/static/emojis/70.png new file mode 100644 index 0000000..0811fe8 Binary files /dev/null and b/lib/static/emojis/70.png differ diff --git a/lib/static/emojis/71.png b/lib/static/emojis/71.png new file mode 100644 index 0000000..71fea47 Binary files /dev/null and b/lib/static/emojis/71.png differ diff --git a/lib/static/emojis/72.png b/lib/static/emojis/72.png new file mode 100644 index 0000000..792e23d Binary files /dev/null and b/lib/static/emojis/72.png differ diff --git a/lib/static/emojis/73.png b/lib/static/emojis/73.png new file mode 100644 index 0000000..6499155 Binary files /dev/null and b/lib/static/emojis/73.png differ diff --git a/lib/static/emojis/74.png b/lib/static/emojis/74.png new file mode 100644 index 0000000..023e14c Binary files /dev/null and b/lib/static/emojis/74.png differ diff --git a/lib/static/emojis/75.png b/lib/static/emojis/75.png new file mode 100644 index 0000000..13b1d6c Binary files /dev/null and b/lib/static/emojis/75.png differ diff --git a/lib/static/emojis/76.png b/lib/static/emojis/76.png new file mode 100644 index 0000000..9282158 Binary files /dev/null and b/lib/static/emojis/76.png differ diff --git a/lib/static/emojis/77.png b/lib/static/emojis/77.png new file mode 100644 index 0000000..4d7d4a6 Binary files /dev/null and b/lib/static/emojis/77.png differ diff --git a/lib/static/emojis/78.png b/lib/static/emojis/78.png new file mode 100644 index 0000000..4b9d25f Binary files /dev/null and b/lib/static/emojis/78.png differ diff --git a/lib/static/emojis/79.png b/lib/static/emojis/79.png new file mode 100644 index 0000000..fd841dd Binary files /dev/null and b/lib/static/emojis/79.png differ diff --git a/lib/static/emojis/8.png b/lib/static/emojis/8.png new file mode 100644 index 0000000..7997dfa Binary files /dev/null and b/lib/static/emojis/8.png differ diff --git a/lib/static/emojis/80.png b/lib/static/emojis/80.png new file mode 100644 index 0000000..0939470 Binary files /dev/null and b/lib/static/emojis/80.png differ diff --git a/lib/static/emojis/81.png b/lib/static/emojis/81.png new file mode 100644 index 0000000..2193e19 Binary files /dev/null and b/lib/static/emojis/81.png differ diff --git a/lib/static/emojis/82.png b/lib/static/emojis/82.png new file mode 100644 index 0000000..ddf540a Binary files /dev/null and b/lib/static/emojis/82.png differ diff --git a/lib/static/emojis/83.png b/lib/static/emojis/83.png new file mode 100644 index 0000000..c77d413 Binary files /dev/null and b/lib/static/emojis/83.png differ diff --git a/lib/static/emojis/84.png b/lib/static/emojis/84.png new file mode 100644 index 0000000..2a66307 Binary files /dev/null and b/lib/static/emojis/84.png differ diff --git a/lib/static/emojis/85.png b/lib/static/emojis/85.png new file mode 100644 index 0000000..dd15561 Binary files /dev/null and b/lib/static/emojis/85.png differ diff --git a/lib/static/emojis/86.png b/lib/static/emojis/86.png new file mode 100644 index 0000000..99b629d Binary files /dev/null and b/lib/static/emojis/86.png differ diff --git a/lib/static/emojis/87.png b/lib/static/emojis/87.png new file mode 100644 index 0000000..1256b12 Binary files /dev/null and b/lib/static/emojis/87.png differ diff --git a/lib/static/emojis/88.png b/lib/static/emojis/88.png new file mode 100644 index 0000000..8ef0dfa Binary files /dev/null and b/lib/static/emojis/88.png differ diff --git a/lib/static/emojis/89.png b/lib/static/emojis/89.png new file mode 100644 index 0000000..5565a3f Binary files /dev/null and b/lib/static/emojis/89.png differ diff --git a/lib/static/emojis/9.png b/lib/static/emojis/9.png new file mode 100644 index 0000000..654e0e3 Binary files /dev/null and b/lib/static/emojis/9.png differ diff --git a/lib/static/emojis/90.png b/lib/static/emojis/90.png new file mode 100644 index 0000000..1e7625e Binary files /dev/null and b/lib/static/emojis/90.png differ diff --git a/lib/static/emojis/91.png b/lib/static/emojis/91.png new file mode 100644 index 0000000..f0471bf Binary files /dev/null and b/lib/static/emojis/91.png differ diff --git a/lib/static/emojis/92.png b/lib/static/emojis/92.png new file mode 100644 index 0000000..ebd6e0e Binary files /dev/null and b/lib/static/emojis/92.png differ diff --git a/lib/static/emojis/93.png b/lib/static/emojis/93.png new file mode 100644 index 0000000..e47b113 Binary files /dev/null and b/lib/static/emojis/93.png differ diff --git a/lib/static/emojis/94.png b/lib/static/emojis/94.png new file mode 100644 index 0000000..b5c019f Binary files /dev/null and b/lib/static/emojis/94.png differ diff --git a/lib/static/emojis/95.png b/lib/static/emojis/95.png new file mode 100644 index 0000000..276d78c Binary files /dev/null and b/lib/static/emojis/95.png differ diff --git a/lib/static/emojis/96.png b/lib/static/emojis/96.png new file mode 100644 index 0000000..102a529 Binary files /dev/null and b/lib/static/emojis/96.png differ diff --git a/lib/static/emojis/97.png b/lib/static/emojis/97.png new file mode 100644 index 0000000..ef978ca Binary files /dev/null and b/lib/static/emojis/97.png differ diff --git a/lib/static/emojis/98.png b/lib/static/emojis/98.png new file mode 100644 index 0000000..36d975a Binary files /dev/null and b/lib/static/emojis/98.png differ diff --git a/lib/static/emojis/99.png b/lib/static/emojis/99.png new file mode 100644 index 0000000..99206ee Binary files /dev/null and b/lib/static/emojis/99.png differ diff --git a/lib/static/emojis/down1.sh b/lib/static/emojis/down1.sh new file mode 100755 index 0000000..fc215ef --- /dev/null +++ b/lib/static/emojis/down1.sh @@ -0,0 +1,15 @@ +#!/bin/zsh +# File: down1.sh +# Date: Sun Dec 14 01:19:46 2014 +0800 +# Author: Yuxin Wu + +# Download 105 tencent emoji + +for i in {0..104}; do + size=$(wc -c "$i.png" 2>/dev/null | cut -f 1 -d ' ') + if [[ -n "$size" && $size -ge 0 ]]; then + echo "File $i Already There!" + else + wget https://wx.qq.com/en_US/htmledition/images/qqface/$i.png & + fi +done diff --git a/lib/static/emojis/down2.sh b/lib/static/emojis/down2.sh new file mode 100755 index 0000000..a3996c0 --- /dev/null +++ b/lib/static/emojis/down2.sh @@ -0,0 +1,16 @@ +#!/bin/bash -e +# File: down2.sh +# Date: Sun Dec 14 01:18:45 2014 +0800 +# Author: Yuxin Wu + +# This script is used to download unicode emoji + +emojis=$(cat ../../emojiname.py | grep -o '\\ue[^"]*' | cut -c 3-) +for i in $emojis; do + size=$(wc -c "$i.png" 2>/dev/null | cut -f 1 -d ' ') + if [[ -n "$size" && $size -ge 0 ]]; then + echo "File $i Already There!" + else + wget http://www.easyapns.com/emoji/$i.png + fi +done diff --git a/lib/static/emojis/e001.png b/lib/static/emojis/e001.png new file mode 100644 index 0000000..28ed310 Binary files /dev/null and b/lib/static/emojis/e001.png differ diff --git a/lib/static/emojis/e002.png b/lib/static/emojis/e002.png new file mode 100644 index 0000000..63dd967 Binary files /dev/null and b/lib/static/emojis/e002.png differ diff --git a/lib/static/emojis/e003.png b/lib/static/emojis/e003.png new file mode 100644 index 0000000..43af927 Binary files /dev/null and b/lib/static/emojis/e003.png differ diff --git a/lib/static/emojis/e004.png b/lib/static/emojis/e004.png new file mode 100644 index 0000000..18f9c55 Binary files /dev/null and b/lib/static/emojis/e004.png differ diff --git a/lib/static/emojis/e005.png b/lib/static/emojis/e005.png new file mode 100644 index 0000000..1e60e82 Binary files /dev/null and b/lib/static/emojis/e005.png differ diff --git a/lib/static/emojis/e008.png b/lib/static/emojis/e008.png new file mode 100644 index 0000000..98fa5c9 Binary files /dev/null and b/lib/static/emojis/e008.png differ diff --git a/lib/static/emojis/e009.png b/lib/static/emojis/e009.png new file mode 100644 index 0000000..506e72c Binary files /dev/null and b/lib/static/emojis/e009.png differ diff --git a/lib/static/emojis/e00c.png b/lib/static/emojis/e00c.png new file mode 100644 index 0000000..d8a5c4a Binary files /dev/null and b/lib/static/emojis/e00c.png differ diff --git a/lib/static/emojis/e00d.png b/lib/static/emojis/e00d.png new file mode 100644 index 0000000..40c79fa Binary files /dev/null and b/lib/static/emojis/e00d.png differ diff --git a/lib/static/emojis/e00e.png b/lib/static/emojis/e00e.png new file mode 100644 index 0000000..296a27e Binary files /dev/null and b/lib/static/emojis/e00e.png differ diff --git a/lib/static/emojis/e00f.png b/lib/static/emojis/e00f.png new file mode 100644 index 0000000..3b1d06a Binary files /dev/null and b/lib/static/emojis/e00f.png differ diff --git a/lib/static/emojis/e011.png b/lib/static/emojis/e011.png new file mode 100644 index 0000000..8a5fe5f Binary files /dev/null and b/lib/static/emojis/e011.png differ diff --git a/lib/static/emojis/e014.png b/lib/static/emojis/e014.png new file mode 100644 index 0000000..6b8276d Binary files /dev/null and b/lib/static/emojis/e014.png differ diff --git a/lib/static/emojis/e016.png b/lib/static/emojis/e016.png new file mode 100644 index 0000000..6a0c50d Binary files /dev/null and b/lib/static/emojis/e016.png differ diff --git a/lib/static/emojis/e018.png b/lib/static/emojis/e018.png new file mode 100644 index 0000000..62247ad Binary files /dev/null and b/lib/static/emojis/e018.png differ diff --git a/lib/static/emojis/e01a.png b/lib/static/emojis/e01a.png new file mode 100644 index 0000000..ca841c0 Binary files /dev/null and b/lib/static/emojis/e01a.png differ diff --git a/lib/static/emojis/e01d.png b/lib/static/emojis/e01d.png new file mode 100644 index 0000000..4ff8da6 Binary files /dev/null and b/lib/static/emojis/e01d.png differ diff --git a/lib/static/emojis/e022.png b/lib/static/emojis/e022.png new file mode 100644 index 0000000..34b0497 Binary files /dev/null and b/lib/static/emojis/e022.png differ diff --git a/lib/static/emojis/e023.png b/lib/static/emojis/e023.png new file mode 100644 index 0000000..46af7d8 Binary files /dev/null and b/lib/static/emojis/e023.png differ diff --git a/lib/static/emojis/e032.png b/lib/static/emojis/e032.png new file mode 100644 index 0000000..25ddc6e Binary files /dev/null and b/lib/static/emojis/e032.png differ diff --git a/lib/static/emojis/e033.png b/lib/static/emojis/e033.png new file mode 100644 index 0000000..dac71c5 Binary files /dev/null and b/lib/static/emojis/e033.png differ diff --git a/lib/static/emojis/e034.png b/lib/static/emojis/e034.png new file mode 100644 index 0000000..95c6b9b Binary files /dev/null and b/lib/static/emojis/e034.png differ diff --git a/lib/static/emojis/e035.png b/lib/static/emojis/e035.png new file mode 100644 index 0000000..b6b8487 Binary files /dev/null and b/lib/static/emojis/e035.png differ diff --git a/lib/static/emojis/e03c.png b/lib/static/emojis/e03c.png new file mode 100644 index 0000000..41585e6 Binary files /dev/null and b/lib/static/emojis/e03c.png differ diff --git a/lib/static/emojis/e03d.png b/lib/static/emojis/e03d.png new file mode 100644 index 0000000..e27edd4 Binary files /dev/null and b/lib/static/emojis/e03d.png differ diff --git a/lib/static/emojis/e03e.png b/lib/static/emojis/e03e.png new file mode 100644 index 0000000..9df5c52 Binary files /dev/null and b/lib/static/emojis/e03e.png differ diff --git a/lib/static/emojis/e03f.png b/lib/static/emojis/e03f.png new file mode 100644 index 0000000..2eecb9d Binary files /dev/null and b/lib/static/emojis/e03f.png differ diff --git a/lib/static/emojis/e041.png b/lib/static/emojis/e041.png new file mode 100644 index 0000000..8ea19c8 Binary files /dev/null and b/lib/static/emojis/e041.png differ diff --git a/lib/static/emojis/e044.png b/lib/static/emojis/e044.png new file mode 100644 index 0000000..92cc91f Binary files /dev/null and b/lib/static/emojis/e044.png differ diff --git a/lib/static/emojis/e045.png b/lib/static/emojis/e045.png new file mode 100644 index 0000000..2213a1e Binary files /dev/null and b/lib/static/emojis/e045.png differ diff --git a/lib/static/emojis/e047.png b/lib/static/emojis/e047.png new file mode 100644 index 0000000..a4100a1 Binary files /dev/null and b/lib/static/emojis/e047.png differ diff --git a/lib/static/emojis/e048.png b/lib/static/emojis/e048.png new file mode 100644 index 0000000..a7cead6 Binary files /dev/null and b/lib/static/emojis/e048.png differ diff --git a/lib/static/emojis/e049.png b/lib/static/emojis/e049.png new file mode 100644 index 0000000..1b58a7c Binary files /dev/null and b/lib/static/emojis/e049.png differ diff --git a/lib/static/emojis/e04a.png b/lib/static/emojis/e04a.png new file mode 100644 index 0000000..8a7dab0 Binary files /dev/null and b/lib/static/emojis/e04a.png differ diff --git a/lib/static/emojis/e04b.png b/lib/static/emojis/e04b.png new file mode 100644 index 0000000..c071cb7 Binary files /dev/null and b/lib/static/emojis/e04b.png differ diff --git a/lib/static/emojis/e04c.png b/lib/static/emojis/e04c.png new file mode 100644 index 0000000..5b38efd Binary files /dev/null and b/lib/static/emojis/e04c.png differ diff --git a/lib/static/emojis/e04e.png b/lib/static/emojis/e04e.png new file mode 100644 index 0000000..7e85b15 Binary files /dev/null and b/lib/static/emojis/e04e.png differ diff --git a/lib/static/emojis/e04f.png b/lib/static/emojis/e04f.png new file mode 100644 index 0000000..b7d5b93 Binary files /dev/null and b/lib/static/emojis/e04f.png differ diff --git a/lib/static/emojis/e050.png b/lib/static/emojis/e050.png new file mode 100644 index 0000000..14e74e8 Binary files /dev/null and b/lib/static/emojis/e050.png differ diff --git a/lib/static/emojis/e051.png b/lib/static/emojis/e051.png new file mode 100644 index 0000000..d45cbfa Binary files /dev/null and b/lib/static/emojis/e051.png differ diff --git a/lib/static/emojis/e052.png b/lib/static/emojis/e052.png new file mode 100644 index 0000000..e34c9ee Binary files /dev/null and b/lib/static/emojis/e052.png differ diff --git a/lib/static/emojis/e053.png b/lib/static/emojis/e053.png new file mode 100644 index 0000000..1b4ee09 Binary files /dev/null and b/lib/static/emojis/e053.png differ diff --git a/lib/static/emojis/e054.png b/lib/static/emojis/e054.png new file mode 100644 index 0000000..ee819af Binary files /dev/null and b/lib/static/emojis/e054.png differ diff --git a/lib/static/emojis/e055.png b/lib/static/emojis/e055.png new file mode 100644 index 0000000..b2be310 Binary files /dev/null and b/lib/static/emojis/e055.png differ diff --git a/lib/static/emojis/e056.png b/lib/static/emojis/e056.png new file mode 100644 index 0000000..c3ed2bf Binary files /dev/null and b/lib/static/emojis/e056.png differ diff --git a/lib/static/emojis/e057.png b/lib/static/emojis/e057.png new file mode 100644 index 0000000..dbbf5fb Binary files /dev/null and b/lib/static/emojis/e057.png differ diff --git a/lib/static/emojis/e058.png b/lib/static/emojis/e058.png new file mode 100644 index 0000000..aa65ce9 Binary files /dev/null and b/lib/static/emojis/e058.png differ diff --git a/lib/static/emojis/e059.png b/lib/static/emojis/e059.png new file mode 100644 index 0000000..d5db80c Binary files /dev/null and b/lib/static/emojis/e059.png differ diff --git a/lib/static/emojis/e05a.png b/lib/static/emojis/e05a.png new file mode 100644 index 0000000..9f6a23e Binary files /dev/null and b/lib/static/emojis/e05a.png differ diff --git a/lib/static/emojis/e101.png b/lib/static/emojis/e101.png new file mode 100644 index 0000000..186dab5 Binary files /dev/null and b/lib/static/emojis/e101.png differ diff --git a/lib/static/emojis/e105.png b/lib/static/emojis/e105.png new file mode 100644 index 0000000..55bbb17 Binary files /dev/null and b/lib/static/emojis/e105.png differ diff --git a/lib/static/emojis/e106.png b/lib/static/emojis/e106.png new file mode 100644 index 0000000..9f3572d Binary files /dev/null and b/lib/static/emojis/e106.png differ diff --git a/lib/static/emojis/e107.png b/lib/static/emojis/e107.png new file mode 100644 index 0000000..586bd99 Binary files /dev/null and b/lib/static/emojis/e107.png differ diff --git a/lib/static/emojis/e108.png b/lib/static/emojis/e108.png new file mode 100644 index 0000000..ac24671 Binary files /dev/null and b/lib/static/emojis/e108.png differ diff --git a/lib/static/emojis/e109.png b/lib/static/emojis/e109.png new file mode 100644 index 0000000..72d640c Binary files /dev/null and b/lib/static/emojis/e109.png differ diff --git a/lib/static/emojis/e10a.png b/lib/static/emojis/e10a.png new file mode 100644 index 0000000..ba3c328 Binary files /dev/null and b/lib/static/emojis/e10a.png differ diff --git a/lib/static/emojis/e10b.png b/lib/static/emojis/e10b.png new file mode 100644 index 0000000..5537411 Binary files /dev/null and b/lib/static/emojis/e10b.png differ diff --git a/lib/static/emojis/e10c.png b/lib/static/emojis/e10c.png new file mode 100644 index 0000000..8345fed Binary files /dev/null and b/lib/static/emojis/e10c.png differ diff --git a/lib/static/emojis/e10d.png b/lib/static/emojis/e10d.png new file mode 100644 index 0000000..b71eb62 Binary files /dev/null and b/lib/static/emojis/e10d.png differ diff --git a/lib/static/emojis/e10e.png b/lib/static/emojis/e10e.png new file mode 100644 index 0000000..b43932e Binary files /dev/null and b/lib/static/emojis/e10e.png differ diff --git a/lib/static/emojis/e10f.png b/lib/static/emojis/e10f.png new file mode 100644 index 0000000..dbb7276 Binary files /dev/null and b/lib/static/emojis/e10f.png differ diff --git a/lib/static/emojis/e111.png b/lib/static/emojis/e111.png new file mode 100644 index 0000000..b2354eb Binary files /dev/null and b/lib/static/emojis/e111.png differ diff --git a/lib/static/emojis/e112.png b/lib/static/emojis/e112.png new file mode 100644 index 0000000..0b38992 Binary files /dev/null and b/lib/static/emojis/e112.png differ diff --git a/lib/static/emojis/e113.png b/lib/static/emojis/e113.png new file mode 100644 index 0000000..dc66fa9 Binary files /dev/null and b/lib/static/emojis/e113.png differ diff --git a/lib/static/emojis/e116.png b/lib/static/emojis/e116.png new file mode 100644 index 0000000..de19104 Binary files /dev/null and b/lib/static/emojis/e116.png differ diff --git a/lib/static/emojis/e11a.png b/lib/static/emojis/e11a.png new file mode 100644 index 0000000..d8bf4e9 Binary files /dev/null and b/lib/static/emojis/e11a.png differ diff --git a/lib/static/emojis/e11b.png b/lib/static/emojis/e11b.png new file mode 100644 index 0000000..7304659 Binary files /dev/null and b/lib/static/emojis/e11b.png differ diff --git a/lib/static/emojis/e11c.png b/lib/static/emojis/e11c.png new file mode 100644 index 0000000..a4ca6bb Binary files /dev/null and b/lib/static/emojis/e11c.png differ diff --git a/lib/static/emojis/e11d.png b/lib/static/emojis/e11d.png new file mode 100644 index 0000000..6b61b84 Binary files /dev/null and b/lib/static/emojis/e11d.png differ diff --git a/lib/static/emojis/e120.png b/lib/static/emojis/e120.png new file mode 100644 index 0000000..ba38235 Binary files /dev/null and b/lib/static/emojis/e120.png differ diff --git a/lib/static/emojis/e126.png b/lib/static/emojis/e126.png new file mode 100644 index 0000000..a4eb108 Binary files /dev/null and b/lib/static/emojis/e126.png differ diff --git a/lib/static/emojis/e12a.png b/lib/static/emojis/e12a.png new file mode 100644 index 0000000..82bc701 Binary files /dev/null and b/lib/static/emojis/e12a.png differ diff --git a/lib/static/emojis/e12b.png b/lib/static/emojis/e12b.png new file mode 100644 index 0000000..59059fe Binary files /dev/null and b/lib/static/emojis/e12b.png differ diff --git a/lib/static/emojis/e12f.png b/lib/static/emojis/e12f.png new file mode 100644 index 0000000..45ed9f5 Binary files /dev/null and b/lib/static/emojis/e12f.png differ diff --git a/lib/static/emojis/e131.png b/lib/static/emojis/e131.png new file mode 100644 index 0000000..9eaf47d Binary files /dev/null and b/lib/static/emojis/e131.png differ diff --git a/lib/static/emojis/e132.png b/lib/static/emojis/e132.png new file mode 100644 index 0000000..0110820 Binary files /dev/null and b/lib/static/emojis/e132.png differ diff --git a/lib/static/emojis/e136.png b/lib/static/emojis/e136.png new file mode 100644 index 0000000..85216a1 Binary files /dev/null and b/lib/static/emojis/e136.png differ diff --git a/lib/static/emojis/e138.png b/lib/static/emojis/e138.png new file mode 100644 index 0000000..e414874 Binary files /dev/null and b/lib/static/emojis/e138.png differ diff --git a/lib/static/emojis/e139.png b/lib/static/emojis/e139.png new file mode 100644 index 0000000..8882bde Binary files /dev/null and b/lib/static/emojis/e139.png differ diff --git a/lib/static/emojis/e13c.png b/lib/static/emojis/e13c.png new file mode 100644 index 0000000..d70b2be Binary files /dev/null and b/lib/static/emojis/e13c.png differ diff --git a/lib/static/emojis/e13d.png b/lib/static/emojis/e13d.png new file mode 100644 index 0000000..dc95f16 Binary files /dev/null and b/lib/static/emojis/e13d.png differ diff --git a/lib/static/emojis/e13f.png b/lib/static/emojis/e13f.png new file mode 100644 index 0000000..ff857a5 Binary files /dev/null and b/lib/static/emojis/e13f.png differ diff --git a/lib/static/emojis/e144.png b/lib/static/emojis/e144.png new file mode 100644 index 0000000..dcd4b15 Binary files /dev/null and b/lib/static/emojis/e144.png differ diff --git a/lib/static/emojis/e145.png b/lib/static/emojis/e145.png new file mode 100644 index 0000000..14b4620 Binary files /dev/null and b/lib/static/emojis/e145.png differ diff --git a/lib/static/emojis/e147.png b/lib/static/emojis/e147.png new file mode 100644 index 0000000..d540950 Binary files /dev/null and b/lib/static/emojis/e147.png differ diff --git a/lib/static/emojis/e14c.png b/lib/static/emojis/e14c.png new file mode 100644 index 0000000..0152986 Binary files /dev/null and b/lib/static/emojis/e14c.png differ diff --git a/lib/static/emojis/e22e.png b/lib/static/emojis/e22e.png new file mode 100644 index 0000000..8ff7ce8 Binary files /dev/null and b/lib/static/emojis/e22e.png differ diff --git a/lib/static/emojis/e22f.png b/lib/static/emojis/e22f.png new file mode 100644 index 0000000..c672881 Binary files /dev/null and b/lib/static/emojis/e22f.png differ diff --git a/lib/static/emojis/e230.png b/lib/static/emojis/e230.png new file mode 100644 index 0000000..8c7abbe Binary files /dev/null and b/lib/static/emojis/e230.png differ diff --git a/lib/static/emojis/e231.png b/lib/static/emojis/e231.png new file mode 100644 index 0000000..d184ef9 Binary files /dev/null and b/lib/static/emojis/e231.png differ diff --git a/lib/static/emojis/e24e.png b/lib/static/emojis/e24e.png new file mode 100644 index 0000000..a9be26b Binary files /dev/null and b/lib/static/emojis/e24e.png differ diff --git a/lib/static/emojis/e24f.png b/lib/static/emojis/e24f.png new file mode 100644 index 0000000..82ea29c Binary files /dev/null and b/lib/static/emojis/e24f.png differ diff --git a/lib/static/emojis/e252.png b/lib/static/emojis/e252.png new file mode 100644 index 0000000..c403d66 Binary files /dev/null and b/lib/static/emojis/e252.png differ diff --git a/lib/static/emojis/e303.png b/lib/static/emojis/e303.png new file mode 100644 index 0000000..2db334c Binary files /dev/null and b/lib/static/emojis/e303.png differ diff --git a/lib/static/emojis/e307.png b/lib/static/emojis/e307.png new file mode 100644 index 0000000..ed63151 Binary files /dev/null and b/lib/static/emojis/e307.png differ diff --git a/lib/static/emojis/e308.png b/lib/static/emojis/e308.png new file mode 100644 index 0000000..3141c56 Binary files /dev/null and b/lib/static/emojis/e308.png differ diff --git a/lib/static/emojis/e30c.png b/lib/static/emojis/e30c.png new file mode 100644 index 0000000..e2e36db Binary files /dev/null and b/lib/static/emojis/e30c.png differ diff --git a/lib/static/emojis/e30f.png b/lib/static/emojis/e30f.png new file mode 100644 index 0000000..95bf3f3 Binary files /dev/null and b/lib/static/emojis/e30f.png differ diff --git a/lib/static/emojis/e310.png b/lib/static/emojis/e310.png new file mode 100644 index 0000000..408d5fa Binary files /dev/null and b/lib/static/emojis/e310.png differ diff --git a/lib/static/emojis/e311.png b/lib/static/emojis/e311.png new file mode 100644 index 0000000..c84ccfb Binary files /dev/null and b/lib/static/emojis/e311.png differ diff --git a/lib/static/emojis/e312.png b/lib/static/emojis/e312.png new file mode 100644 index 0000000..f31e6e3 Binary files /dev/null and b/lib/static/emojis/e312.png differ diff --git a/lib/static/emojis/e31c.png b/lib/static/emojis/e31c.png new file mode 100644 index 0000000..542622c Binary files /dev/null and b/lib/static/emojis/e31c.png differ diff --git a/lib/static/emojis/e322.png b/lib/static/emojis/e322.png new file mode 100644 index 0000000..7f6ec7c Binary files /dev/null and b/lib/static/emojis/e322.png differ diff --git a/lib/static/emojis/e323.png b/lib/static/emojis/e323.png new file mode 100644 index 0000000..d5b3f9b Binary files /dev/null and b/lib/static/emojis/e323.png differ diff --git a/lib/static/emojis/e325.png b/lib/static/emojis/e325.png new file mode 100644 index 0000000..f7e59b4 Binary files /dev/null and b/lib/static/emojis/e325.png differ diff --git a/lib/static/emojis/e329.png b/lib/static/emojis/e329.png new file mode 100644 index 0000000..3812ac4 Binary files /dev/null and b/lib/static/emojis/e329.png differ diff --git a/lib/static/emojis/e32e.png b/lib/static/emojis/e32e.png new file mode 100644 index 0000000..2401eb9 Binary files /dev/null and b/lib/static/emojis/e32e.png differ diff --git a/lib/static/emojis/e331.png b/lib/static/emojis/e331.png new file mode 100644 index 0000000..52a634d Binary files /dev/null and b/lib/static/emojis/e331.png differ diff --git a/lib/static/emojis/e332.png b/lib/static/emojis/e332.png new file mode 100644 index 0000000..2b7a390 Binary files /dev/null and b/lib/static/emojis/e332.png differ diff --git a/lib/static/emojis/e333.png b/lib/static/emojis/e333.png new file mode 100644 index 0000000..cd690c0 Binary files /dev/null and b/lib/static/emojis/e333.png differ diff --git a/lib/static/emojis/e335.png b/lib/static/emojis/e335.png new file mode 100644 index 0000000..eefcfb8 Binary files /dev/null and b/lib/static/emojis/e335.png differ diff --git a/lib/static/emojis/e336.png b/lib/static/emojis/e336.png new file mode 100644 index 0000000..23dc6e0 Binary files /dev/null and b/lib/static/emojis/e336.png differ diff --git a/lib/static/emojis/e337.png b/lib/static/emojis/e337.png new file mode 100644 index 0000000..25ec04e Binary files /dev/null and b/lib/static/emojis/e337.png differ diff --git a/lib/static/emojis/e33a.png b/lib/static/emojis/e33a.png new file mode 100644 index 0000000..5265deb Binary files /dev/null and b/lib/static/emojis/e33a.png differ diff --git a/lib/static/emojis/e33b.png b/lib/static/emojis/e33b.png new file mode 100644 index 0000000..62a0aef Binary files /dev/null and b/lib/static/emojis/e33b.png differ diff --git a/lib/static/emojis/e33f.png b/lib/static/emojis/e33f.png new file mode 100644 index 0000000..b2b8ce4 Binary files /dev/null and b/lib/static/emojis/e33f.png differ diff --git a/lib/static/emojis/e340.png b/lib/static/emojis/e340.png new file mode 100644 index 0000000..743fd74 Binary files /dev/null and b/lib/static/emojis/e340.png differ diff --git a/lib/static/emojis/e344.png b/lib/static/emojis/e344.png new file mode 100644 index 0000000..3c0b507 Binary files /dev/null and b/lib/static/emojis/e344.png differ diff --git a/lib/static/emojis/e345.png b/lib/static/emojis/e345.png new file mode 100644 index 0000000..1ae0247 Binary files /dev/null and b/lib/static/emojis/e345.png differ diff --git a/lib/static/emojis/e34b.png b/lib/static/emojis/e34b.png new file mode 100644 index 0000000..fb5c3a3 Binary files /dev/null and b/lib/static/emojis/e34b.png differ diff --git a/lib/static/emojis/e401.png b/lib/static/emojis/e401.png new file mode 100644 index 0000000..0365681 Binary files /dev/null and b/lib/static/emojis/e401.png differ diff --git a/lib/static/emojis/e402.png b/lib/static/emojis/e402.png new file mode 100644 index 0000000..a0e6807 Binary files /dev/null and b/lib/static/emojis/e402.png differ diff --git a/lib/static/emojis/e403.png b/lib/static/emojis/e403.png new file mode 100644 index 0000000..d8fe8df Binary files /dev/null and b/lib/static/emojis/e403.png differ diff --git a/lib/static/emojis/e404.png b/lib/static/emojis/e404.png new file mode 100644 index 0000000..74feb03 Binary files /dev/null and b/lib/static/emojis/e404.png differ diff --git a/lib/static/emojis/e405.png b/lib/static/emojis/e405.png new file mode 100644 index 0000000..dec1425 Binary files /dev/null and b/lib/static/emojis/e405.png differ diff --git a/lib/static/emojis/e406.png b/lib/static/emojis/e406.png new file mode 100644 index 0000000..7aaf645 Binary files /dev/null and b/lib/static/emojis/e406.png differ diff --git a/lib/static/emojis/e407.png b/lib/static/emojis/e407.png new file mode 100644 index 0000000..bd3fef2 Binary files /dev/null and b/lib/static/emojis/e407.png differ diff --git a/lib/static/emojis/e408.png b/lib/static/emojis/e408.png new file mode 100644 index 0000000..efc2da3 Binary files /dev/null and b/lib/static/emojis/e408.png differ diff --git a/lib/static/emojis/e409.png b/lib/static/emojis/e409.png new file mode 100644 index 0000000..5b5c35b Binary files /dev/null and b/lib/static/emojis/e409.png differ diff --git a/lib/static/emojis/e40a.png b/lib/static/emojis/e40a.png new file mode 100644 index 0000000..0b09c5f Binary files /dev/null and b/lib/static/emojis/e40a.png differ diff --git a/lib/static/emojis/e40b.png b/lib/static/emojis/e40b.png new file mode 100644 index 0000000..6d75391 Binary files /dev/null and b/lib/static/emojis/e40b.png differ diff --git a/lib/static/emojis/e40c.png b/lib/static/emojis/e40c.png new file mode 100644 index 0000000..2e44be1 Binary files /dev/null and b/lib/static/emojis/e40c.png differ diff --git a/lib/static/emojis/e40d.png b/lib/static/emojis/e40d.png new file mode 100644 index 0000000..de76707 Binary files /dev/null and b/lib/static/emojis/e40d.png differ diff --git a/lib/static/emojis/e40e.png b/lib/static/emojis/e40e.png new file mode 100644 index 0000000..ae73e9f Binary files /dev/null and b/lib/static/emojis/e40e.png differ diff --git a/lib/static/emojis/e40f.png b/lib/static/emojis/e40f.png new file mode 100644 index 0000000..88c3676 Binary files /dev/null and b/lib/static/emojis/e40f.png differ diff --git a/lib/static/emojis/e410.png b/lib/static/emojis/e410.png new file mode 100644 index 0000000..61838ef Binary files /dev/null and b/lib/static/emojis/e410.png differ diff --git a/lib/static/emojis/e411.png b/lib/static/emojis/e411.png new file mode 100644 index 0000000..1213814 Binary files /dev/null and b/lib/static/emojis/e411.png differ diff --git a/lib/static/emojis/e412.png b/lib/static/emojis/e412.png new file mode 100644 index 0000000..1f85d77 Binary files /dev/null and b/lib/static/emojis/e412.png differ diff --git a/lib/static/emojis/e413.png b/lib/static/emojis/e413.png new file mode 100644 index 0000000..7df7e9d Binary files /dev/null and b/lib/static/emojis/e413.png differ diff --git a/lib/static/emojis/e414.png b/lib/static/emojis/e414.png new file mode 100644 index 0000000..f667203 Binary files /dev/null and b/lib/static/emojis/e414.png differ diff --git a/lib/static/emojis/e415.png b/lib/static/emojis/e415.png new file mode 100644 index 0000000..4c33a6d Binary files /dev/null and b/lib/static/emojis/e415.png differ diff --git a/lib/static/emojis/e416.png b/lib/static/emojis/e416.png new file mode 100644 index 0000000..8278c8c Binary files /dev/null and b/lib/static/emojis/e416.png differ diff --git a/lib/static/emojis/e417.png b/lib/static/emojis/e417.png new file mode 100644 index 0000000..894a8de Binary files /dev/null and b/lib/static/emojis/e417.png differ diff --git a/lib/static/emojis/e418.png b/lib/static/emojis/e418.png new file mode 100644 index 0000000..cba23f3 Binary files /dev/null and b/lib/static/emojis/e418.png differ diff --git a/lib/static/emojis/e421.png b/lib/static/emojis/e421.png new file mode 100644 index 0000000..aa6c113 Binary files /dev/null and b/lib/static/emojis/e421.png differ diff --git a/lib/static/emojis/e425.png b/lib/static/emojis/e425.png new file mode 100644 index 0000000..ca6598e Binary files /dev/null and b/lib/static/emojis/e425.png differ diff --git a/lib/static/emojis/e42a.png b/lib/static/emojis/e42a.png new file mode 100644 index 0000000..a2c1f3a Binary files /dev/null and b/lib/static/emojis/e42a.png differ diff --git a/lib/static/emojis/e42b.png b/lib/static/emojis/e42b.png new file mode 100644 index 0000000..6dda7af Binary files /dev/null and b/lib/static/emojis/e42b.png differ diff --git a/lib/static/emojis/e435.png b/lib/static/emojis/e435.png new file mode 100644 index 0000000..5d7b5f7 Binary files /dev/null and b/lib/static/emojis/e435.png differ diff --git a/lib/static/emojis/e437.png b/lib/static/emojis/e437.png new file mode 100644 index 0000000..5b7f858 Binary files /dev/null and b/lib/static/emojis/e437.png differ diff --git a/lib/static/emojis/e43c.png b/lib/static/emojis/e43c.png new file mode 100644 index 0000000..674546b Binary files /dev/null and b/lib/static/emojis/e43c.png differ diff --git a/lib/static/emojis/e43e.png b/lib/static/emojis/e43e.png new file mode 100644 index 0000000..570af26 Binary files /dev/null and b/lib/static/emojis/e43e.png differ diff --git a/lib/static/emojis/e445.png b/lib/static/emojis/e445.png new file mode 100644 index 0000000..2cf27b4 Binary files /dev/null and b/lib/static/emojis/e445.png differ diff --git a/lib/static/emojis/e448.png b/lib/static/emojis/e448.png new file mode 100644 index 0000000..17a25a6 Binary files /dev/null and b/lib/static/emojis/e448.png differ diff --git a/lib/static/emojis/e520.png b/lib/static/emojis/e520.png new file mode 100644 index 0000000..3932f3a Binary files /dev/null and b/lib/static/emojis/e520.png differ diff --git a/lib/static/emojis/e521.png b/lib/static/emojis/e521.png new file mode 100644 index 0000000..ff3d41a Binary files /dev/null and b/lib/static/emojis/e521.png differ diff --git a/lib/static/emojis/e522.png b/lib/static/emojis/e522.png new file mode 100644 index 0000000..c805c55 Binary files /dev/null and b/lib/static/emojis/e522.png differ diff --git a/lib/static/emojis/e524.png b/lib/static/emojis/e524.png new file mode 100644 index 0000000..df9bb52 Binary files /dev/null and b/lib/static/emojis/e524.png differ diff --git a/lib/static/emojis/e525.png b/lib/static/emojis/e525.png new file mode 100644 index 0000000..cf46128 Binary files /dev/null and b/lib/static/emojis/e525.png differ diff --git a/lib/static/emojis/e527.png b/lib/static/emojis/e527.png new file mode 100644 index 0000000..89399e3 Binary files /dev/null and b/lib/static/emojis/e527.png differ diff --git a/lib/static/emojis/e52a.png b/lib/static/emojis/e52a.png new file mode 100644 index 0000000..d9a51e1 Binary files /dev/null and b/lib/static/emojis/e52a.png differ diff --git a/lib/static/emojis/e52b.png b/lib/static/emojis/e52b.png new file mode 100644 index 0000000..b428372 Binary files /dev/null and b/lib/static/emojis/e52b.png differ diff --git a/lib/static/emojis/e52c.png b/lib/static/emojis/e52c.png new file mode 100644 index 0000000..e35308b Binary files /dev/null and b/lib/static/emojis/e52c.png differ diff --git a/lib/static/emojis/e52d.png b/lib/static/emojis/e52d.png new file mode 100644 index 0000000..5ff5a10 Binary files /dev/null and b/lib/static/emojis/e52d.png differ diff --git a/lib/static/emojis/e52e.png b/lib/static/emojis/e52e.png new file mode 100644 index 0000000..1288d4b Binary files /dev/null and b/lib/static/emojis/e52e.png differ diff --git a/lib/static/emojis/e52f.png b/lib/static/emojis/e52f.png new file mode 100644 index 0000000..f94cf76 Binary files /dev/null and b/lib/static/emojis/e52f.png differ diff --git a/lib/static/emojis/e531.png b/lib/static/emojis/e531.png new file mode 100644 index 0000000..19b5622 Binary files /dev/null and b/lib/static/emojis/e531.png differ diff --git a/lib/static/emojis/e537.png b/lib/static/emojis/e537.png new file mode 100644 index 0000000..bab1fb6 Binary files /dev/null and b/lib/static/emojis/e537.png differ diff --git a/lib/static/template.html b/lib/static/template.html index 3521221..01a5ce7 100644 --- a/lib/static/template.html +++ b/lib/static/template.html @@ -44,7 +44,7 @@ $(document).ready(function() {{ // initialize avatar, avoid repeatly inserting the same base64 img into html $('.me .avatar').each(function(_, e) {{ e.src = "data:image/jpg;base64,{avatar_me}"; }}) $('.you .avatar').each(function(_, e) {{ e.src = "data:image/jpg;base64,{avatar_you}"; }}) - }}); +}});