Merge pull request #90 from Tenzer/better-repall
[rainbowstream.git] / rainbowstream / emoji.py
1 # This file is based on emoji (https:://github.com/kyokomi/emoji).
2 # and (https://github.com/carpedm20/emoji)
3 #
4 # The MIT License (MIT)
5 #
6 # Copyright (c) 2014 kyokomi
7 #
8 # Permission is hereby granted, free of charge, to any person obtaining a copy
9 # of this software and associated documentation files (the "Software"), to deal
10 # in the Software without restriction, including without limitation the rights
11 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 # copies of the Software, and to permit persons to whom the Software is
13 # furnished to do so, subject to the following conditions::
14 #
15 # The above copyright notice and this permission notice shall be included in all
16 # copies or substantial portions of the Software.
17 #
18 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 # SOFTWARE.
25
26 import re
27
28 emojiCodeDict = {
29 "::capricorn::": u"\U00002651",
30 "::end::": u"\U0001f51a",
31 "::no_mobile_phones::": u"\U0001f4f5",
32 "::couple::": u"\U0001f46b",
33 "::snowman::": u"\U000026c4",
34 "::sunrise_over_mountains::": u"\U0001f304",
35 "::suspension_railway::": u"\U0001f69f",
36 "::arrows_counterclockwise::": u"\U0001f504",
37 "::bug::": u"\U0001f41b",
38 "::confused::": u"\U0001f615",
39 "::dress::": u"\U0001f457",
40 "::honeybee::": u"\U0001f41d",
41 "::waning_crescent_moon::": u"\U0001f318",
42 "::balloon::": u"\U0001f388",
43 "::bus::": u"\U0001f68c",
44 "::package::": u"\U0001f4e6",
45 "::pencil2::": u"\U0000270f",
46 "::rage::": u"\U0001f621",
47 "::space_invader::": u"\U0001f47e",
48 "::white_medium_small_square::": u"\U000025fd",
49 "::fast_forward::": u"\U000023e9",
50 "::rice_cracker::": u"\U0001f358",
51 "::incoming_envelope::": u"\U0001f4e8",
52 "::sa::": u"\U0001f202",
53 "::womens::": u"\U0001f6ba",
54 "::arrow_right::": u"\U000027a1",
55 "::construction_worker::": u"\U0001f477",
56 "::notes::": u"\U0001f3b6",
57 "::goat::": u"\U0001f410",
58 "::grey_question::": u"\U00002754",
59 "::lantern::": u"\U0001f3ee",
60 "::rice_scene::": u"\U0001f391",
61 "::running::": u"\U0001f3c3",
62 "::ferris_wheel::": u"\U0001f3a1",
63 "::musical_score::": u"\U0001f3bc",
64 "::sparkle::": u"\U00002747",
65 "::wink::": u"\U0001f609",
66 "::art::": u"\U0001f3a8",
67 "::clock330::": u"\U0001f55e",
68 "::minidisc::": u"\U0001f4bd",
69 "::no_entry_sign::": u"\U0001f6ab",
70 "::wind_chime::": u"\U0001f390",
71 "::cyclone::": u"\U0001f300",
72 "::herb::": u"\U0001f33f",
73 "::leopard::": u"\U0001f406",
74 "::banana::": u"\U0001f34c",
75 "::handbag::": u"\U0001f45c",
76 "::honey_pot::": u"\U0001f36f",
77 "::ok::": u"\U0001f197",
78 "::hearts::": u"\U00002665",
79 "::passport_control::": u"\U0001f6c2",
80 "::moyai::": u"\U0001f5ff",
81 "::smile::": u"\U0001f604",
82 "::tiger2::": u"\U0001f405",
83 "::twisted_rightwards_arrows::": u"\U0001f500",
84 "::children_crossing::": u"\U0001f6b8",
85 "::cow::": u"\U0001f42e",
86 "::point_up::": u"\U0000261d",
87 "::house::": u"\U0001f3e0",
88 "::man_with_turban::": u"\U0001f473",
89 "::mountain_railway::": u"\U0001f69e",
90 "::vibration_mode::": u"\U0001f4f3",
91 "::blowfish::": u"\U0001f421",
92 "::it::": u"\U0001f1ee\U0001f1f9",
93 "::oden::": u"\U0001f362",
94 "::clock3::": u"\U0001f552",
95 "::lollipop::": u"\U0001f36d",
96 "::train::": u"\U0001f68b",
97 "::scissors::": u"\U00002702",
98 "::triangular_ruler::": u"\U0001f4d0",
99 "::wedding::": u"\U0001f492",
100 "::flashlight::": u"\U0001f526",
101 "::secret::": u"\U00003299",
102 "::sushi::": u"\U0001f363",
103 "::blue_car::": u"\U0001f699",
104 "::cd::": u"\U0001f4bf",
105 "::milky_way::": u"\U0001f30c",
106 "::mortar_board::": u"\U0001f393",
107 "::crown::": u"\U0001f451",
108 "::speech_balloon::": u"\U0001f4ac",
109 "::bento::": u"\U0001f371",
110 "::grey_exclamation::": u"\U00002755",
111 "::hotel::": u"\U0001f3e8",
112 "::keycap_ten::": u"\U0001f51f",
113 "::newspaper::": u"\U0001f4f0",
114 "::outbox_tray::": u"\U0001f4e4",
115 "::racehorse::": u"\U0001f40e",
116 "::laughing::": u"\U0001f606",
117 "::black_large_square::": u"\U00002b1b",
118 "::books::": u"\U0001f4da",
119 "::eight_spoked_asterisk::": u"\U00002733",
120 "::heavy_check_mark::": u"\U00002714",
121 "::m::": u"\U000024c2",
122 "::wave::": u"\U0001f44b",
123 "::bicyclist::": u"\U0001f6b4",
124 "::cocktail::": u"\U0001f378",
125 "::european_castle::": u"\U0001f3f0",
126 "::point_down::": u"\U0001f447",
127 "::tokyo_tower::": u"\U0001f5fc",
128 "::battery::": u"\U0001f50b",
129 "::dancer::": u"\U0001f483",
130 "::repeat::": u"\U0001f501",
131 "::ru::": u"\U0001f1f7\U0001f1fa",
132 "::new_moon::": u"\U0001f311",
133 "::church::": u"\U000026ea",
134 "::date::": u"\U0001f4c5",
135 "::earth_americas::": u"\U0001f30e",
136 "::footprints::": u"\U0001f463",
137 "::libra::": u"\U0000264e",
138 "::mountain_cableway::": u"\U0001f6a0",
139 "::small_red_triangle_down::": u"\U0001f53b",
140 "::top::": u"\U0001f51d",
141 "::sunglasses::": u"\U0001f60e",
142 "::abcd::": u"\U0001f521",
143 "::cl::": u"\U0001f191",
144 "::ski::": u"\U0001f3bf",
145 "::book::": u"\U0001f4d6",
146 "::hourglass_flowing_sand::": u"\U000023f3",
147 "::stuck_out_tongue_closed_eyes::": u"\U0001f61d",
148 "::cold_sweat::": u"\U0001f630",
149 "::headphones::": u"\U0001f3a7",
150 "::confetti_ball::": u"\U0001f38a",
151 "::gemini::": u"\U0000264a",
152 "::new::": u"\U0001f195",
153 "::pray::": u"\U0001f64f",
154 "::watch::": u"\U0000231a",
155 "::coffee::": u"\U00002615",
156 "::ghost::": u"\U0001f47b",
157 "::on::": u"\U0001f51b",
158 "::pouch::": u"\U0001f45d",
159 "::taxi::": u"\U0001f695",
160 "::hocho::": u"\U0001f52a",
161 "::yum::": u"\U0001f60b",
162 "::heavy_plus_sign::": u"\U00002795",
163 "::tada::": u"\U0001f389",
164 "::arrow_heading_down::": u"\U00002935",
165 "::clock530::": u"\U0001f560",
166 "::poultry_leg::": u"\U0001f357",
167 "::elephant::": u"\U0001f418",
168 "::gb::": u"\U0001f1ec\U0001f1e7",
169 "::mahjong::": u"\U0001f004",
170 "::rice::": u"\U0001f35a",
171 "::musical_note::": u"\U0001f3b5",
172 "::beginner::": u"\U0001f530",
173 "::small_red_triangle::": u"\U0001f53a",
174 "::tomato::": u"\U0001f345",
175 "::clock1130::": u"\U0001f566",
176 "::japanese_castle::": u"\U0001f3ef",
177 "::sun_with_face::": u"\U0001f31e",
178 "::four::": u"\U00000034\U000020e3",
179 "::microphone::": u"\U0001f3a4",
180 "::tennis::": u"\U0001f3be",
181 "::arrow_up_down::": u"\U00002195",
182 "::cn::": u"\U0001f1e8\U0001f1f3",
183 "::horse_racing::": u"\U0001f3c7",
184 "::no_bicycles::": u"\U0001f6b3",
185 "::snail::": u"\U0001f40c",
186 "::free::": u"\U0001f193",
187 "::beetle::": u"\U0001f41e",
188 "::black_small_square::": u"\U000025aa",
189 "::file_folder::": u"\U0001f4c1",
190 "::hushed::": u"\U0001f62f",
191 "::skull::": u"\U0001f480",
192 "::ab::": u"\U0001f18e",
193 "::rocket::": u"\U0001f680",
194 "::sweet_potato::": u"\U0001f360",
195 "::guitar::": u"\U0001f3b8",
196 "::poodle::": u"\U0001f429",
197 "::tulip::": u"\U0001f337",
198 "::large_orange_diamond::": u"\U0001f536",
199 "::-1::": u"\U0001f44e",
200 "::chart_with_upwards_trend::": u"\U0001f4c8",
201 "::de::": u"\U0001f1e9\U0001f1ea",
202 "::grapes::": u"\U0001f347",
203 "::ideograph_advantage::": u"\U0001f250",
204 "::japanese_ogre::": u"\U0001f479",
205 "::telephone::": u"\U0000260e",
206 "::clock230::": u"\U0001f55d",
207 "::hourglass::": u"\U0000231b",
208 "::leftwards_arrow_with_hook::": u"\U000021a9",
209 "::sparkler::": u"\U0001f387",
210 "::black_joker::": u"\U0001f0cf",
211 "::clock730::": u"\U0001f562",
212 "::first_quarter_moon_with_face::": u"\U0001f31b",
213 "::man::": u"\U0001f468",
214 "::clock4::": u"\U0001f553",
215 "::fishing_pole_and_fish::": u"\U0001f3a3",
216 "::tophat::": u"\U0001f3a9",
217 "::white_medium_square::": u"\U000025fb",
218 "::mega::": u"\U0001f4e3",
219 "::spaghetti::": u"\U0001f35d",
220 "::dart::": u"\U0001f3af",
221 "::girl::": u"\U0001f467",
222 "::womans_hat::": u"\U0001f452",
223 "::bullettrain_front::": u"\U0001f685",
224 "::department_store::": u"\U0001f3ec",
225 "::heartbeat::": u"\U0001f493",
226 "::palm_tree::": u"\U0001f334",
227 "::swimmer::": u"\U0001f3ca",
228 "::yellow_heart::": u"\U0001f49b",
229 "::arrow_upper_right::": u"\U00002197",
230 "::clock2::": u"\U0001f551",
231 "::high_heel::": u"\U0001f460",
232 "::arrow_double_up::": u"\U000023eb",
233 "::cry::": u"\U0001f622",
234 "::dvd::": u"\U0001f4c0",
235 "::e-mail::": u"\U0001f4e7",
236 "::baby_bottle::": u"\U0001f37c",
237 "::cool::": u"\U0001f192",
238 "::floppy_disk::": u"\U0001f4be",
239 "::iphone::": u"\U0001f4f1",
240 "::minibus::": u"\U0001f690",
241 "::rooster::": u"\U0001f413",
242 "::three::": u"\U00000033\U000020e3",
243 "::white_small_square::": u"\U000025ab",
244 "::cancer::": u"\U0000264b",
245 "::question::": u"\U00002753",
246 "::sake::": u"\U0001f376",
247 "::birthday::": u"\U0001f382",
248 "::dog2::": u"\U0001f415",
249 "::loudspeaker::": u"\U0001f4e2",
250 "::arrow_up_small::": u"\U0001f53c",
251 "::camel::": u"\U0001f42b",
252 "::koala::": u"\U0001f428",
253 "::mag_right::": u"\U0001f50e",
254 "::soccer::": u"\U000026bd",
255 "::bike::": u"\U0001f6b2",
256 "::ear_of_rice::": u"\U0001f33e",
257 "::shit::": u"\U0001f4a9",
258 "::u7981::": u"\U0001f232",
259 "::bath::": u"\U0001f6c0",
260 "::baby::": u"\U0001f476",
261 "::lock_with_ink_pen::": u"\U0001f50f",
262 "::necktie::": u"\U0001f454",
263 "::bikini::": u"\U0001f459",
264 "::blush::": u"\U0001f60a",
265 "::heartpulse::": u"\U0001f497",
266 "::pig_nose::": u"\U0001f43d",
267 "::straight_ruler::": u"\U0001f4cf",
268 "::u6e80::": u"\U0001f235",
269 "::gift::": u"\U0001f381",
270 "::traffic_light::": u"\U0001f6a5",
271 "::hibiscus::": u"\U0001f33a",
272 "::couple_with_heart::": u"\U0001f491",
273 "::pushpin::": u"\U0001f4cc",
274 "::u6709::": u"\U0001f236",
275 "::walking::": u"\U0001f6b6",
276 "::grinning::": u"\U0001f600",
277 "::hash::": u"\U00000023\U000020e3",
278 "::radio_button::": u"\U0001f518",
279 "::raised_hand::": u"\U0000270b",
280 "::shaved_ice::": u"\U0001f367",
281 "::barber::": u"\U0001f488",
282 "::cat::": u"\U0001f431",
283 "::heavy_exclamation_mark::": u"\U00002757",
284 "::ice_cream::": u"\U0001f368",
285 "::mask::": u"\U0001f637",
286 "::pig2::": u"\U0001f416",
287 "::triangular_flag_on_post::": u"\U0001f6a9",
288 "::arrow_upper_left::": u"\U00002196",
289 "::bee::": u"\U0001f41d",
290 "::beer::": u"\U0001f37a",
291 "::black_nib::": u"\U00002712",
292 "::exclamation::": u"\U00002757",
293 "::dog::": u"\U0001f436",
294 "::fire::": u"\U0001f525",
295 "::ant::": u"\U0001f41c",
296 "::broken_heart::": u"\U0001f494",
297 "::chart::": u"\U0001f4b9",
298 "::clock1::": u"\U0001f550",
299 "::bomb::": u"\U0001f4a3",
300 "::virgo::": u"\U0000264d",
301 "::a::": u"\U0001f170",
302 "::fork_and_knife::": u"\U0001f374",
303 "::copyright::": u"\U000000a9",
304 "::curly_loop::": u"\U000027b0",
305 "::full_moon::": u"\U0001f315",
306 "::shoe::": u"\U0001f45e",
307 "::european_post_office::": u"\U0001f3e4",
308 "::ng::": u"\U0001f196",
309 "::office::": u"\U0001f3e2",
310 "::raising_hand::": u"\U0001f64b",
311 "::revolving_hearts::": u"\U0001f49e",
312 "::aquarius::": u"\U00002652",
313 "::electric_plug::": u"\U0001f50c",
314 "::meat_on_bone::": u"\U0001f356",
315 "::mens::": u"\U0001f6b9",
316 "::briefcase::": u"\U0001f4bc",
317 "::ship::": u"\U0001f6a2",
318 "::anchor::": u"\U00002693",
319 "::ballot_box_with_check::": u"\U00002611",
320 "::bear::": u"\U0001f43b",
321 "::beers::": u"\U0001f37b",
322 "::dromedary_camel::": u"\U0001f42a",
323 "::nut_and_bolt::": u"\U0001f529",
324 "::construction::": u"\U0001f6a7",
325 "::golf::": u"\U000026f3",
326 "::toilet::": u"\U0001f6bd",
327 "::blue_book::": u"\U0001f4d8",
328 "::boom::": u"\U0001f4a5",
329 "::deciduous_tree::": u"\U0001f333",
330 "::kissing_closed_eyes::": u"\U0001f61a",
331 "::smiley_cat::": u"\U0001f63a",
332 "::fuelpump::": u"\U000026fd",
333 "::kiss::": u"\U0001f48b",
334 "::clock10::": u"\U0001f559",
335 "::sheep::": u"\U0001f411",
336 "::white_flower::": u"\U0001f4ae",
337 "::boar::": u"\U0001f417",
338 "::currency_exchange::": u"\U0001f4b1",
339 "::facepunch::": u"\U0001f44a",
340 "::flower_playing_cards::": u"\U0001f3b4",
341 "::person_frowning::": u"\U0001f64d",
342 "::poop::": u"\U0001f4a9",
343 "::satisfied::": u"\U0001f606",
344 "::8ball::": u"\U0001f3b1",
345 "::disappointed_relieved::": u"\U0001f625",
346 "::panda_face::": u"\U0001f43c",
347 "::ticket::": u"\U0001f3ab",
348 "::us::": u"\U0001f1fa\U0001f1f8",
349 "::waxing_crescent_moon::": u"\U0001f312",
350 "::dragon::": u"\U0001f409",
351 "::gun::": u"\U0001f52b",
352 "::mount_fuji::": u"\U0001f5fb",
353 "::new_moon_with_face::": u"\U0001f31a",
354 "::star2::": u"\U0001f31f",
355 "::grimacing::": u"\U0001f62c",
356 "::confounded::": u"\U0001f616",
357 "::congratulations::": u"\U00003297",
358 "::custard::": u"\U0001f36e",
359 "::frowning::": u"\U0001f626",
360 "::maple_leaf::": u"\U0001f341",
361 "::police_car::": u"\U0001f693",
362 "::cloud::": u"\U00002601",
363 "::jeans::": u"\U0001f456",
364 "::fish::": u"\U0001f41f",
365 "::wavy_dash::": u"\U00003030",
366 "::clock5::": u"\U0001f554",
367 "::santa::": u"\U0001f385",
368 "::japan::": u"\U0001f5fe",
369 "::oncoming_taxi::": u"\U0001f696",
370 "::whale::": u"\U0001f433",
371 "::arrow_forward::": u"\U000025b6",
372 "::kissing_heart::": u"\U0001f618",
373 "::bullettrain_side::": u"\U0001f684",
374 "::fearful::": u"\U0001f628",
375 "::moneybag::": u"\U0001f4b0",
376 "::runner::": u"\U0001f3c3",
377 "::mailbox::": u"\U0001f4eb",
378 "::sandal::": u"\U0001f461",
379 "::zzz::": u"\U0001f4a4",
380 "::apple::": u"\U0001f34e",
381 "::arrow_heading_up::": u"\U00002934",
382 "::family::": u"\U0001f46a",
383 "::heavy_minus_sign::": u"\U00002796",
384 "::saxophone::": u"\U0001f3b7",
385 "::u5272::": u"\U0001f239",
386 "::black_square_button::": u"\U0001f532",
387 "::bouquet::": u"\U0001f490",
388 "::love_letter::": u"\U0001f48c",
389 "::metro::": u"\U0001f687",
390 "::small_blue_diamond::": u"\U0001f539",
391 "::thought_balloon::": u"\U0001f4ad",
392 "::arrow_up::": u"\U00002b06",
393 "::no_pedestrians::": u"\U0001f6b7",
394 "::smirk::": u"\U0001f60f",
395 "::blue_heart::": u"\U0001f499",
396 "::large_blue_diamond::": u"\U0001f537",
397 "::vs::": u"\U0001f19a",
398 "::v::": u"\U0000270c",
399 "::wheelchair::": u"\U0000267f",
400 "::couplekiss::": u"\U0001f48f",
401 "::tent::": u"\U000026fa",
402 "::purple_heart::": u"\U0001f49c",
403 "::relaxed::": u"\U0000263a",
404 "::accept::": u"\U0001f251",
405 "::green_heart::": u"\U0001f49a",
406 "::pouting_cat::": u"\U0001f63e",
407 "::tram::": u"\U0001f68a",
408 "::bangbang::": u"\U0000203c",
409 "::collision::": u"\U0001f4a5",
410 "::convenience_store::": u"\U0001f3ea",
411 "::person_with_blond_hair::": u"\U0001f471",
412 "::uk::": u"\U0001f1ec\U0001f1e7",
413 "::peach::": u"\U0001f351",
414 "::tired_face::": u"\U0001f62b",
415 "::bread::": u"\U0001f35e",
416 "::mailbox_closed::": u"\U0001f4ea",
417 "::open_mouth::": u"\U0001f62e",
418 "::pig::": u"\U0001f437",
419 "::put_litter_in_its_place::": u"\U0001f6ae",
420 "::u7a7a::": u"\U0001f233",
421 "::bulb::": u"\U0001f4a1",
422 "::clock9::": u"\U0001f558",
423 "::envelope_with_arrow::": u"\U0001f4e9",
424 "::pisces::": u"\U00002653",
425 "::baggage_claim::": u"\U0001f6c4",
426 "::egg::": u"\U0001f373",
427 "::sweat_smile::": u"\U0001f605",
428 "::boat::": u"\U000026f5",
429 "::fr::": u"\U0001f1eb\U0001f1f7",
430 "::heavy_division_sign::": u"\U00002797",
431 "::muscle::": u"\U0001f4aa",
432 "::paw_prints::": u"\U0001f43e",
433 "::arrow_left::": u"\U00002b05",
434 "::black_circle::": u"\U000026ab",
435 "::kissing_smiling_eyes::": u"\U0001f619",
436 "::star::": u"\U00002b50",
437 "::steam_locomotive::": u"\U0001f682",
438 "::1234::": u"\U0001f522",
439 "::clock130::": u"\U0001f55c",
440 "::kr::": u"\U0001f1f0\U0001f1f7",
441 "::monorail::": u"\U0001f69d",
442 "::school::": u"\U0001f3eb",
443 "::seven::": u"\U00000037\U000020e3",
444 "::baby_chick::": u"\U0001f424",
445 "::bridge_at_night::": u"\U0001f309",
446 "::hotsprings::": u"\U00002668",
447 "::rose::": u"\U0001f339",
448 "::love_hotel::": u"\U0001f3e9",
449 "::princess::": u"\U0001f478",
450 "::ramen::": u"\U0001f35c",
451 "::scroll::": u"\U0001f4dc",
452 "::tropical_fish::": u"\U0001f420",
453 "::heart_eyes_cat::": u"\U0001f63b",
454 "::information_desk_person::": u"\U0001f481",
455 "::mouse::": u"\U0001f42d",
456 "::no_smoking::": u"\U0001f6ad",
457 "::post_office::": u"\U0001f3e3",
458 "::stars::": u"\U0001f320",
459 "::arrow_double_down::": u"\U000023ec",
460 "::unlock::": u"\U0001f513",
461 "::arrow_backward::": u"\U000025c0",
462 "::hand::": u"\U0000270b",
463 "::hospital::": u"\U0001f3e5",
464 "::ocean::": u"\U0001f30a",
465 "::mountain_bicyclist::": u"\U0001f6b5",
466 "::octopus::": u"\U0001f419",
467 "::sos::": u"\U0001f198",
468 "::dizzy_face::": u"\U0001f635",
469 "::tongue::": u"\U0001f445",
470 "::train2::": u"\U0001f686",
471 "::checkered_flag::": u"\U0001f3c1",
472 "::orange_book::": u"\U0001f4d9",
473 "::sound::": u"\U0001f509",
474 "::aerial_tramway::": u"\U0001f6a1",
475 "::bell::": u"\U0001f514",
476 "::dragon_face::": u"\U0001f432",
477 "::flipper::": u"\U0001f42c",
478 "::ok_woman::": u"\U0001f646",
479 "::performing_arts::": u"\U0001f3ad",
480 "::postal_horn::": u"\U0001f4ef",
481 "::clock1030::": u"\U0001f565",
482 "::email::": u"\U00002709",
483 "::green_book::": u"\U0001f4d7",
484 "::point_up_2::": u"\U0001f446",
485 "::high_brightness::": u"\U0001f506",
486 "::running_shirt_with_sash::": u"\U0001f3bd",
487 "::bookmark::": u"\U0001f516",
488 "::sob::": u"\U0001f62d",
489 "::arrow_lower_right::": u"\U00002198",
490 "::point_left::": u"\U0001f448",
491 "::purse::": u"\U0001f45b",
492 "::sparkles::": u"\U00002728",
493 "::black_medium_small_square::": u"\U000025fe",
494 "::pound::": u"\U0001f4b7",
495 "::rabbit::": u"\U0001f430",
496 "::woman::": u"\U0001f469",
497 "::negative_squared_cross_mark::": u"\U0000274e",
498 "::open_book::": u"\U0001f4d6",
499 "::smiling_imp::": u"\U0001f608",
500 "::spades::": u"\U00002660",
501 "::baseball::": u"\U000026be",
502 "::fountain::": u"\U000026f2",
503 "::joy::": u"\U0001f602",
504 "::lipstick::": u"\U0001f484",
505 "::partly_sunny::": u"\U000026c5",
506 "::ram::": u"\U0001f40f",
507 "::red_circle::": u"\U0001f534",
508 "::cop::": u"\U0001f46e",
509 "::green_apple::": u"\U0001f34f",
510 "::registered::": u"\U000000ae",
511 "::+1::": u"\U0001f44d",
512 "::crying_cat_face::": u"\U0001f63f",
513 "::innocent::": u"\U0001f607",
514 "::mobile_phone_off::": u"\U0001f4f4",
515 "::underage::": u"\U0001f51e",
516 "::dolphin::": u"\U0001f42c",
517 "::busts_in_silhouette::": u"\U0001f465",
518 "::umbrella::": u"\U00002614",
519 "::angel::": u"\U0001f47c",
520 "::small_orange_diamond::": u"\U0001f538",
521 "::sunflower::": u"\U0001f33b",
522 "::link::": u"\U0001f517",
523 "::notebook::": u"\U0001f4d3",
524 "::oncoming_bus::": u"\U0001f68d",
525 "::bookmark_tabs::": u"\U0001f4d1",
526 "::calendar::": u"\U0001f4c6",
527 "::izakaya_lantern::": u"\U0001f3ee",
528 "::mans_shoe::": u"\U0001f45e",
529 "::name_badge::": u"\U0001f4db",
530 "::closed_lock_with_key::": u"\U0001f510",
531 "::fist::": u"\U0000270a",
532 "::id::": u"\U0001f194",
533 "::ambulance::": u"\U0001f691",
534 "::musical_keyboard::": u"\U0001f3b9",
535 "::ribbon::": u"\U0001f380",
536 "::seedling::": u"\U0001f331",
537 "::tv::": u"\U0001f4fa",
538 "::football::": u"\U0001f3c8",
539 "::nail_care::": u"\U0001f485",
540 "::seat::": u"\U0001f4ba",
541 "::alarm_clock::": u"\U000023f0",
542 "::money_with_wings::": u"\U0001f4b8",
543 "::relieved::": u"\U0001f60c",
544 "::womans_clothes::": u"\U0001f45a",
545 "::lips::": u"\U0001f444",
546 "::clubs::": u"\U00002663",
547 "::house_with_garden::": u"\U0001f3e1",
548 "::sunrise::": u"\U0001f305",
549 "::monkey::": u"\U0001f412",
550 "::six::": u"\U00000036\U000020e3",
551 "::smiley::": u"\U0001f603",
552 "::feet::": u"\U0001f43e",
553 "::waning_gibbous_moon::": u"\U0001f316",
554 "::yen::": u"\U0001f4b4",
555 "::baby_symbol::": u"\U0001f6bc",
556 "::signal_strength::": u"\U0001f4f6",
557 "::boy::": u"\U0001f466",
558 "::busstop::": u"\U0001f68f",
559 "::computer::": u"\U0001f4bb",
560 "::night_with_stars::": u"\U0001f303",
561 "::older_woman::": u"\U0001f475",
562 "::parking::": u"\U0001f17f",
563 "::trumpet::": u"\U0001f3ba",
564 "::100::": u"\U0001f4af",
565 "::sweat_drops::": u"\U0001f4a6",
566 "::wc::": u"\U0001f6be",
567 "::b::": u"\U0001f171",
568 "::cupid::": u"\U0001f498",
569 "::five::": u"\U00000035\U000020e3",
570 "::part_alternation_mark::": u"\U0000303d",
571 "::snowboarder::": u"\U0001f3c2",
572 "::warning::": u"\U000026a0",
573 "::white_large_square::": u"\U00002b1c",
574 "::zap::": u"\U000026a1",
575 "::arrow_down_small::": u"\U0001f53d",
576 "::clock430::": u"\U0001f55f",
577 "::expressionless::": u"\U0001f611",
578 "::phone::": u"\U0000260e",
579 "::roller_coaster::": u"\U0001f3a2",
580 "::lemon::": u"\U0001f34b",
581 "::one::": u"\U00000031\U000020e3",
582 "::christmas_tree::": u"\U0001f384",
583 "::hankey::": u"\U0001f4a9",
584 "::hatched_chick::": u"\U0001f425",
585 "::u7533::": u"\U0001f238",
586 "::large_blue_circle::": u"\U0001f535",
587 "::up::": u"\U0001f199",
588 "::wine_glass::": u"\U0001f377",
589 "::x::": u"\U0000274c",
590 "::nose::": u"\U0001f443",
591 "::rewind::": u"\U000023ea",
592 "::two_hearts::": u"\U0001f495",
593 "::envelope::": u"\U00002709",
594 "::oncoming_automobile::": u"\U0001f698",
595 "::ophiuchus::": u"\U000026ce",
596 "::ring::": u"\U0001f48d",
597 "::tropical_drink::": u"\U0001f379",
598 "::turtle::": u"\U0001f422",
599 "::crescent_moon::": u"\U0001f319",
600 "::koko::": u"\U0001f201",
601 "::microscope::": u"\U0001f52c",
602 "::rugby_football::": u"\U0001f3c9",
603 "::smoking::": u"\U0001f6ac",
604 "::anger::": u"\U0001f4a2",
605 "::aries::": u"\U00002648",
606 "::city_sunset::": u"\U0001f306",
607 "::clock1230::": u"\U0001f567",
608 "::mailbox_with_no_mail::": u"\U0001f4ed",
609 "::movie_camera::": u"\U0001f3a5",
610 "::pager::": u"\U0001f4df",
611 "::zero::": u"\U00000030\U000020e3",
612 "::bank::": u"\U0001f3e6",
613 "::eight_pointed_black_star::": u"\U00002734",
614 "::knife::": u"\U0001f52a",
615 "::u7121::": u"\U0001f21a",
616 "::customs::": u"\U0001f6c3",
617 "::melon::": u"\U0001f348",
618 "::rowboat::": u"\U0001f6a3",
619 "::corn::": u"\U0001f33d",
620 "::eggplant::": u"\U0001f346",
621 "::heart_decoration::": u"\U0001f49f",
622 "::rotating_light::": u"\U0001f6a8",
623 "::round_pushpin::": u"\U0001f4cd",
624 "::cat2::": u"\U0001f408",
625 "::chocolate_bar::": u"\U0001f36b",
626 "::no_bell::": u"\U0001f515",
627 "::radio::": u"\U0001f4fb",
628 "::droplet::": u"\U0001f4a7",
629 "::hamburger::": u"\U0001f354",
630 "::fire_engine::": u"\U0001f692",
631 "::heart::": u"\U00002764",
632 "::potable_water::": u"\U0001f6b0",
633 "::telephone_receiver::": u"\U0001f4de",
634 "::dash::": u"\U0001f4a8",
635 "::globe_with_meridians::": u"\U0001f310",
636 "::guardsman::": u"\U0001f482",
637 "::heavy_multiplication_x::": u"\U00002716",
638 "::chart_with_downwards_trend::": u"\U0001f4c9",
639 "::imp::": u"\U0001f47f",
640 "::earth_asia::": u"\U0001f30f",
641 "::mouse2::": u"\U0001f401",
642 "::notebook_with_decorative_cover::": u"\U0001f4d4",
643 "::telescope::": u"\U0001f52d",
644 "::trolleybus::": u"\U0001f68e",
645 "::card_index::": u"\U0001f4c7",
646 "::euro::": u"\U0001f4b6",
647 "::dollar::": u"\U0001f4b5",
648 "::fax::": u"\U0001f4e0",
649 "::mailbox_with_mail::": u"\U0001f4ec",
650 "::raised_hands::": u"\U0001f64c",
651 "::disappointed::": u"\U0001f61e",
652 "::foggy::": u"\U0001f301",
653 "::person_with_pouting_face::": u"\U0001f64e",
654 "::statue_of_liberty::": u"\U0001f5fd",
655 "::dolls::": u"\U0001f38e",
656 "::light_rail::": u"\U0001f688",
657 "::pencil::": u"\U0001f4dd",
658 "::speak_no_evil::": u"\U0001f64a",
659 "::calling::": u"\U0001f4f2",
660 "::clock830::": u"\U0001f563",
661 "::cow2::": u"\U0001f404",
662 "::hear_no_evil::": u"\U0001f649",
663 "::scream_cat::": u"\U0001f640",
664 "::smile_cat::": u"\U0001f638",
665 "::tractor::": u"\U0001f69c",
666 "::clock11::": u"\U0001f55a",
667 "::doughnut::": u"\U0001f369",
668 "::hammer::": u"\U0001f528",
669 "::loop::": u"\U000027bf",
670 "::moon::": u"\U0001f314",
671 "::soon::": u"\U0001f51c",
672 "::cinema::": u"\U0001f3a6",
673 "::factory::": u"\U0001f3ed",
674 "::flushed::": u"\U0001f633",
675 "::mute::": u"\U0001f507",
676 "::neutral_face::": u"\U0001f610",
677 "::scorpius::": u"\U0000264f",
678 "::wolf::": u"\U0001f43a",
679 "::clapper::": u"\U0001f3ac",
680 "::joy_cat::": u"\U0001f639",
681 "::pensive::": u"\U0001f614",
682 "::sleeping::": u"\U0001f634",
683 "::credit_card::": u"\U0001f4b3",
684 "::leo::": u"\U0000264c",
685 "::man_with_gua_pi_mao::": u"\U0001f472",
686 "::open_hands::": u"\U0001f450",
687 "::tea::": u"\U0001f375",
688 "::arrow_down::": u"\U00002b07",
689 "::nine::": u"\U00000039\U000020e3",
690 "::punch::": u"\U0001f44a",
691 "::slot_machine::": u"\U0001f3b0",
692 "::clap::": u"\U0001f44f",
693 "::information_source::": u"\U00002139",
694 "::tiger::": u"\U0001f42f",
695 "::city_sunrise::": u"\U0001f307",
696 "::dango::": u"\U0001f361",
697 "::thumbsdown::": u"\U0001f44e",
698 "::u6307::": u"\U0001f22f",
699 "::curry::": u"\U0001f35b",
700 "::cherries::": u"\U0001f352",
701 "::clock6::": u"\U0001f555",
702 "::clock7::": u"\U0001f556",
703 "::older_man::": u"\U0001f474",
704 "::oncoming_police_car::": u"\U0001f694",
705 "::syringe::": u"\U0001f489",
706 "::heavy_dollar_sign::": u"\U0001f4b2",
707 "::open_file_folder::": u"\U0001f4c2",
708 "::arrow_right_hook::": u"\U000021aa",
709 "::articulated_lorry::": u"\U0001f69b",
710 "::dancers::": u"\U0001f46f",
711 "::kissing_cat::": u"\U0001f63d",
712 "::rainbow::": u"\U0001f308",
713 "::u5408::": u"\U0001f234",
714 "::boot::": u"\U0001f462",
715 "::carousel_horse::": u"\U0001f3a0",
716 "::fried_shrimp::": u"\U0001f364",
717 "::lock::": u"\U0001f512",
718 "::non-potable_water::": u"\U0001f6b1",
719 "::o::": u"\U00002b55",
720 "::persevere::": u"\U0001f623",
721 "::diamond_shape_with_a_dot_inside::": u"\U0001f4a0",
722 "::fallen_leaf::": u"\U0001f342",
723 "::massage::": u"\U0001f486",
724 "::volcano::": u"\U0001f30b",
725 "::gem::": u"\U0001f48e",
726 "::shower::": u"\U0001f6bf",
727 "::speaker::": u"\U0001f508",
728 "::last_quarter_moon_with_face::": u"\U0001f31c",
729 "::mag::": u"\U0001f50d",
730 "::anguished::": u"\U0001f627",
731 "::monkey_face::": u"\U0001f435",
732 "::sunny::": u"\U00002600",
733 "::tangerine::": u"\U0001f34a",
734 "::point_right::": u"\U0001f449",
735 "::railway_car::": u"\U0001f683",
736 "::triumph::": u"\U0001f624",
737 "::two::": u"\U00000032\U000020e3",
738 "::gift_heart::": u"\U0001f49d",
739 "::ledger::": u"\U0001f4d2",
740 "::sagittarius::": u"\U00002650",
741 "::snowflake::": u"\U00002744",
742 "::abc::": u"\U0001f524",
743 "::horse::": u"\U0001f434",
744 "::ok_hand::": u"\U0001f44c",
745 "::video_camera::": u"\U0001f4f9",
746 "::sparkling_heart::": u"\U0001f496",
747 "::taurus::": u"\U00002649",
748 "::frog::": u"\U0001f438",
749 "::hamster::": u"\U0001f439",
750 "::helicopter::": u"\U0001f681",
751 "::fries::": u"\U0001f35f",
752 "::mushroom::": u"\U0001f344",
753 "::penguin::": u"\U0001f427",
754 "::truck::": u"\U0001f69a",
755 "::bar_chart::": u"\U0001f4ca",
756 "::evergreen_tree::": u"\U0001f332",
757 "::bow::": u"\U0001f647",
758 "::clock12::": u"\U0001f55b",
759 "::four_leaf_clover::": u"\U0001f340",
760 "::inbox_tray::": u"\U0001f4e5",
761 "::smirk_cat::": u"\U0001f63c",
762 "::two_men_holding_hands::": u"\U0001f46c",
763 "::water_buffalo::": u"\U0001f403",
764 "::alien::": u"\U0001f47d",
765 "::video_game::": u"\U0001f3ae",
766 "::candy::": u"\U0001f36c",
767 "::page_facing_up::": u"\U0001f4c4",
768 "::watermelon::": u"\U0001f349",
769 "::white_check_mark::": u"\U00002705",
770 "::blossom::": u"\U0001f33c",
771 "::crocodile::": u"\U0001f40a",
772 "::no_mouth::": u"\U0001f636",
773 "::o2::": u"\U0001f17e",
774 "::shirt::": u"\U0001f455",
775 "::clock8::": u"\U0001f557",
776 "::eyes::": u"\U0001f440",
777 "::rabbit2::": u"\U0001f407",
778 "::tanabata_tree::": u"\U0001f38b",
779 "::wrench::": u"\U0001f527",
780 "::es::": u"\U0001f1ea\U0001f1f8",
781 "::trophy::": u"\U0001f3c6",
782 "::two_women_holding_hands::": u"\U0001f46d",
783 "::clock630::": u"\U0001f561",
784 "::pineapple::": u"\U0001f34d",
785 "::stuck_out_tongue::": u"\U0001f61b",
786 "::angry::": u"\U0001f620",
787 "::athletic_shoe::": u"\U0001f45f",
788 "::cookie::": u"\U0001f36a",
789 "::flags::": u"\U0001f38f",
790 "::game_die::": u"\U0001f3b2",
791 "::bird::": u"\U0001f426",
792 "::jack_o_lantern::": u"\U0001f383",
793 "::ox::": u"\U0001f402",
794 "::paperclip::": u"\U0001f4ce",
795 "::sleepy::": u"\U0001f62a",
796 "::astonished::": u"\U0001f632",
797 "::back::": u"\U0001f519",
798 "::closed_book::": u"\U0001f4d5",
799 "::hatching_chick::": u"\U0001f423",
800 "::arrows_clockwise::": u"\U0001f503",
801 "::car::": u"\U0001f697",
802 "::ear::": u"\U0001f442",
803 "::haircut::": u"\U0001f487",
804 "::icecream::": u"\U0001f366",
805 "::bust_in_silhouette::": u"\U0001f464",
806 "::diamonds::": u"\U00002666",
807 "::no_good::": u"\U0001f645",
808 "::pizza::": u"\U0001f355",
809 "::chicken::": u"\U0001f414",
810 "::eyeglasses::": u"\U0001f453",
811 "::see_no_evil::": u"\U0001f648",
812 "::earth_africa::": u"\U0001f30d",
813 "::fireworks::": u"\U0001f386",
814 "::page_with_curl::": u"\U0001f4c3",
815 "::rice_ball::": u"\U0001f359",
816 "::white_square_button::": u"\U0001f533",
817 "::cake::": u"\U0001f370",
818 "::red_car::": u"\U0001f697",
819 "::tm::": u"\U00002122",
820 "::unamused::": u"\U0001f612",
821 "::fish_cake::": u"\U0001f365",
822 "::key::": u"\U0001f511",
823 "::speedboat::": u"\U0001f6a4",
824 "::closed_umbrella::": u"\U0001f302",
825 "::pear::": u"\U0001f350",
826 "::satellite::": u"\U0001f4e1",
827 "::scream::": u"\U0001f631",
828 "::first_quarter_moon::": u"\U0001f313",
829 "::jp::": u"\U0001f1ef\U0001f1f5",
830 "::repeat_one::": u"\U0001f502",
831 "::shell::": u"\U0001f41a",
832 "::interrobang::": u"\U00002049",
833 "::trident::": u"\U0001f531",
834 "::u55b6::": u"\U0001f23a",
835 "::atm::": u"\U0001f3e7",
836 "::door::": u"\U0001f6aa",
837 "::kissing::": u"\U0001f617",
838 "::six_pointed_star::": u"\U0001f52f",
839 "::thumbsup::": u"\U0001f44d",
840 "::u6708::": u"\U0001f237",
841 "::do_not_litter::": u"\U0001f6af",
842 "::whale2::": u"\U0001f40b",
843 "::school_satchel::": u"\U0001f392",
844 "::cactus::": u"\U0001f335",
845 "::clipboard::": u"\U0001f4cb",
846 "::dizzy::": u"\U0001f4ab",
847 "::waxing_gibbous_moon::": u"\U0001f314",
848 "::camera::": u"\U0001f4f7",
849 "::capital_abcd::": u"\U0001f520",
850 "::leaves::": u"\U0001f343",
851 "::left_luggage::": u"\U0001f6c5",
852 "::bamboo::": u"\U0001f38d",
853 "::bowling::": u"\U0001f3b3",
854 "::eight::": u"\U00000038\U000020e3",
855 "::kimono::": u"\U0001f458",
856 "::left_right_arrow::": u"\U00002194",
857 "::stuck_out_tongue_winking_eye::": u"\U0001f61c",
858 "::surfer::": u"\U0001f3c4",
859 "::sweat::": u"\U0001f613",
860 "::violin::": u"\U0001f3bb",
861 "::postbox::": u"\U0001f4ee",
862 "::bride_with_veil::": u"\U0001f470",
863 "::recycle::": u"\U0000267b",
864 "::station::": u"\U0001f689",
865 "::vhs::": u"\U0001f4fc",
866 "::crossed_flags::": u"\U0001f38c",
867 "::memo::": u"\U0001f4dd",
868 "::no_entry::": u"\U000026d4",
869 "::white_circle::": u"\U000026aa",
870 "::arrow_lower_left::": u"\U00002199",
871 "::chestnut::": u"\U0001f330",
872 "::crystal_ball::": u"\U0001f52e",
873 "::last_quarter_moon::": u"\U0001f317",
874 "::loud_sound::": u"\U0001f50a",
875 "::strawberry::": u"\U0001f353",
876 "::worried::": u"\U0001f61f",
877 "::circus_tent::": u"\U0001f3aa",
878 "::weary::": u"\U0001f629",
879 "::bathtub::": u"\U0001f6c1",
880 "::snake::": u"\U0001f40d",
881 "::grin::": u"\U0001f601",
882 "::symbols::": u"\U0001f523",
883 "::airplane::": u"\U00002708",
884 "::heart_eyes::": u"\U0001f60d",
885 "::sailboat::": u"\U000026f5",
886 "::stew::": u"\U0001f372",
887 "::tshirt::": u"\U0001f455",
888 "::rat::": u"\U0001f400",
889 "::black_medium_square::": u"\U000025fc",
890 "::clock930::": u"\U0001f564",
891 "::full_moon_with_face::": u"\U0001f31d",
892 "::japanese_goblin::": u"\U0001f47a",
893 "::restroom::": u"\U0001f6bb",
894 "::vertical_traffic_light::": u"\U0001f6a6",
895 "::basketball::": u"\U0001f3c0",
896 "::cherry_blossom::": u"\U0001f338",
897 "::low_brightness::": u"\U0001f505",
898 "::pill::": u"\U0001f48a",
899 }
900
901
902 def emojize(text):
903 """
904 Emoji regex
905 """
906 pattern = re.compile('(::[a-z0-9\+\-_]+::)')
907
908 def emorepl(match):
909 value = match.group(1)
910 if value in emojiCodeDict:
911 return emojiCodeDict[value]
912 return pattern.sub(emorepl, text)