gemojifyjs 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d286875b0d663e26e2e4db2145dbb66dcc346c13
4
- data.tar.gz: 49507b1f776ff2934f0da742eb523629e972dcc9
3
+ metadata.gz: f961b0af862777f64762aac747a4203605eeddd9
4
+ data.tar.gz: 954e125cef1a258cba0fe8ef47ab208e4d48ad30
5
5
  SHA512:
6
- metadata.gz: 964d721bd9f9f72c419a2f488186210bc9e542c6301ca28b410337c71498992ae74a99d33abd9fb6966ec90eecb71bd3edb74757c6d39b09bdeda1dfa40919d3
7
- data.tar.gz: 4a795ff30eeba2fdd53528e14f6b8b63c3967259c1c9a13dc08e30692738ca8515c0ebb0d35c1005a0c341b3587913f365a36d6a26aaec9202faf3e0c895b005
6
+ metadata.gz: bf7f0f1718e6c59219b5c03c28a398f2d02373e59b571f521bdbdbcff3a8235087c831194fb511e54bc74548894f68b5883e52a10ba079cc918b2a57cc68f7fe
7
+ data.tar.gz: f7119bb6902dc21c698c4aa36aa32bc188d1e3a2452533ef17a9f91563fea28c2aef0dd4782dee5ec48af983b7c52d7216855c24aa211fa7c4245c37ef213f83
@@ -0,0 +1,34 @@
1
+ class Emojify
2
+ constructor: ->
3
+ @normal_tags = /:\w+:/g
4
+ @smileys = [
5
+ [/:-*\)/g, 'blush'],
6
+ [/:-*o/gi, 'scream'],
7
+ [/(:|;)-*]/g, 'smirk'],
8
+ [/(:|;)-*d/gi, 'smiley'],
9
+ [/xd/gi, 'stuck_out_tongue_closed_eyes'],
10
+ [/:-*p/gi, 'stuck_out_tongue_winking_eye'],
11
+ [/:-*(\[|@)/g, 'rage'],
12
+ [/:-*\(/g, 'disappointed'],
13
+ [/:('|’)-*\(/g, 'emojify sob'],
14
+ [/:-*\*/g, 'kissing_heart'],
15
+ [/;-*\)/g, 'wink'],
16
+ [/:-*\//g, 'pensive'],
17
+ [/:-*s/gi, 'confounded'],
18
+ [/:-*\|/g, 'flushed'],
19
+ [/:-*\$/g, 'relaxed'],
20
+ [/:-*x/gi, 'mask'],
21
+ [/<3/g, 'heart'],
22
+ [/<\/3/g, 'broken_heart'],
23
+ [/:\+1:/g, 'thumbsup'],
24
+ [/:-1:/g, 'thumsdown']
25
+ ]
26
+
27
+ markup: (text) ->
28
+ for match in text.match(@normal_tags) or []
29
+ text = text.replace(match, "<span class='emojify #{match.substring(1, match.length-1).toLowerCase()}'></span>")
30
+ for smiley in @smileys
31
+ text = text.replace(smiley[0], "<span class='emojify #{smiley[1]}'></span>")
32
+ return text
33
+
34
+ window.emojify = new Emojify
@@ -1 +1 @@
1
- //= require ./emojify.js
1
+ //= require ./emojify.js.coffee
@@ -1,3 +1,3 @@
1
1
  module Gemojifyjs
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemojifyjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Breyer-Menke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-01 00:00:00.000000000 Z
11
+ date: 2013-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -51,7 +51,7 @@ files:
51
51
  - LICENSE.txt
52
52
  - README.md
53
53
  - Rakefile
54
- - app/assets/javascripts/gemojifyjs/emojify.js
54
+ - app/assets/javascripts/gemojifyjs/emojify.js.coffee
55
55
  - app/assets/javascripts/gemojifyjs/index.js
56
56
  - app/assets/stylesheets/gemojifyjs/emojify.emoticons.less
57
57
  - app/assets/stylesheets/gemojifyjs/emojify.less
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 2.0.5
88
+ rubygems_version: 2.0.3
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: Gem for emojify.js
@@ -1,1016 +0,0 @@
1
- (function (global) {
2
- var emojify = (function () {
3
-
4
- // Get DOM as local variable for simplicity's sake
5
- var document = global.window.document;
6
-
7
- var emoticons = [
8
- [/:-*\)/g, 'emojify blush'],
9
- [/:-*o/gi, 'emojify scream'],
10
- [/(:|;)-*]/g, 'emojify smirk'],
11
- [/(:|;)-*d/gi, 'emojify smiley'],
12
- [/xd/gi, 'emojify stuck_out_tongue_closed_eyes'],
13
- [/:-*p/gi, 'emojify stuck_out_tongue_winking_eye'],
14
- [/:-*(\[|@)/g, 'emojify rage'],
15
- [/:-*\(/g, 'emojify disappointed'],
16
- [/:('|’)-*\(/g, 'emojify sob'],
17
- [/:-*\*/g, 'emojify kissing_heart'],
18
- [/;-*\)/g, 'emojify wink'],
19
- [/:-*\//g, 'emojify pensive'],
20
- [/:-*s/gi, 'emojify confounded'],
21
- [/:-*\|/g, 'emojify flushed'],
22
- [/:-*\$/g, 'emojify relaxed'],
23
- [/:-*x/gi, 'emojify mask'],
24
- [/<3/g, 'emojify heart'],
25
- [/<\/3/g, 'emojify broken_heart']
26
- ],
27
- people = [
28
- [/:bowtie:/g, 'emojify bowtie'],
29
- [/:smile:/g, 'emojify smile'],
30
- [/:laughing:/g, 'emojify laughing'],
31
- [/:blush:/g, 'emojify blush'],
32
- [/:smiley:/g, 'emojify smiley'],
33
- [/:relaxed:/g, 'emojify relaxed'],
34
- [/:smirk:/g, 'emojify smirk'],
35
- [/:heart_eyes:/g, 'emojify heart_eyes'],
36
- [/:kissing_heart:/g, 'emojify kissing_heart'],
37
- [/:kissing_closed_eyes:/g, 'emojify kissing_closed_eyes'],
38
- [/:flushed:/g, 'emojify flushed'],
39
- [/:relieved:/g, 'emojify relieved'],
40
- [/:satisfied:/g, 'emojify satisfied'],
41
- [/:grin:/g, 'emojify grin'],
42
- [/:wink:/g, 'emojify wink'],
43
- [/:wink2:/g, 'emojify wink2'],
44
- [/:stuck_out_tongue_winking_eye:/g, 'emojify stuck_out_tongue_winking_eye'],
45
- [/:stuck_out_tongue_closed_eyes:/g, 'emojify stuck_out_tongue_closed_eyes'],
46
- [/:grinning:/g, 'emojify grinning'],
47
- [/:kissing:/g, 'emojify kissing'],
48
- [/:kissing_smiling_eyes:/g, 'emojify kissing_smiling_eyes'],
49
- [/:stuck_out_tongue:/g, 'emojify stuck_out_tongue'],
50
- [/:sleeping:/g, 'emojify sleeping'],
51
- [/:worried:/g, 'emojify worried'],
52
- [/:frowning:/g, 'emojify frowning'],
53
- [/:anguished:/g, 'emojify anguished'],
54
- [/:open_mouth:/g, 'emojify open_mouth'],
55
- [/:grimacing:/g, 'emojify grimacing'],
56
- [/:confused:/g, 'emojify confused'],
57
- [/:hushed:/g, 'emojify hushed'],
58
- [/:expressionless:/g, 'emojify expressionless'],
59
- [/:unamused:/g, 'emojify unamused'],
60
- [/:sweat_smile:/g, 'emojify sweat_smile'],
61
- [/:sweat:/g, 'emojify sweat'],
62
- [/:weary:/g, 'emojify weary'],
63
- [/:pensive:/g, 'emojify pensive'],
64
- [/:disappointed:/g, 'emojify disappointed'],
65
- [/:confounded:/g, 'emojify confounded'],
66
- [/:fearful:/g, 'emojify fearful'],
67
- [/:cold_sweat:/g, 'emojify cold_sweat'],
68
- [/:persevere:/g, 'emojify persevere'],
69
- [/:cry:/g, 'emojify cry'],
70
- [/:sob:/g, 'emojify sob'],
71
- [/:joy:/g, 'emojify joy'],
72
- [/:scream:/g, 'emojify scream'],
73
- [/:astonished:/g, 'emojify astonished'],
74
- [/:neckbeard:/g, 'emojify neckbeard'],
75
- [/:tired_face:/g, 'emojify tired_face'],
76
- [/:angry:/g, 'emojify angry'],
77
- [/:rage:/g, 'emojify rage'],
78
- [/:triumph:/g, 'emojify triumph'],
79
- [/:sleepy:/g, 'emojify sleepy'],
80
- [/:yum:/g, 'emojify yum'],
81
- [/:mask:/g, 'emojify mask'],
82
- [/:sunglasses:/g, 'emojify sunglasses'],
83
- [/:dizzy_face:/g, 'emojify dizzy_face'],
84
- [/:imp:/g, 'emojify imp'],
85
- [/:smiling_imp:/g, 'emojify smiling_imp'],
86
- [/:neutral_face:/g, 'emojify neutral_face'],
87
- [/:no_mouth:/g, 'emojify no_mouth'],
88
- [/:innocent:/g, 'emojify innocent'],
89
- [/:alien:/g, 'emojify alien'],
90
- [/:yellow_heart:/g, 'emojify yellow_heart'],
91
- [/:blue_heart:/g, 'emojify blue_heart'],
92
- [/:purple_heart:/g, 'emojify purple_heart'],
93
- [/:heart:/g, 'emojify heart'],
94
- [/:green_heart:/g, 'emojify green_heart'],
95
- [/:broken_heart:/g, 'emojify broken_heart'],
96
- [/:heartbeat:/g, 'emojify heartbeat'],
97
- [/:heartpulse:/g, 'emojify heartpulse'],
98
- [/:two_hearts:/g, 'emojify two_hearts'],
99
- [/:revolving_hearts:/g, 'emojify revolving_hearts'],
100
- [/:cupid:/g, 'emojify cupid'],
101
- [/:sparkling_heart:/g, 'emojify sparkling_heart'],
102
- [/:sparkles:/g, 'emojify sparkles'],
103
- [/:star:/g, 'emojify star'],
104
- [/:star2:/g, 'emojify star2'],
105
- [/:dizzy:/g, 'emojify dizzy'],
106
- [/:boom:/g, 'emojify boom'],
107
- [/:collision:/g, 'emojify collision'],
108
- [/:anger:/g, 'emojify anger'],
109
- [/:exclamation:/g, 'emojify exclamation'],
110
- [/:question:/g, 'emojify question'],
111
- [/:grey_exclamation:/g, 'emojify grey_exclamation'],
112
- [/:grey_question:/g, 'emojify grey_question'],
113
- [/:zzz:/g, 'emojify zzz'],
114
- [/:dash:/g, 'emojify dash'],
115
- [/:sweat_drops:/g, 'emojify sweat_drops'],
116
- [/:notes:/g, 'emojify notes'],
117
- [/:musical_note:/g, 'emojify musical_note'],
118
- [/:fire:/g, 'emojify fire'],
119
- [/:hankey:/g, 'emojify hankey'],
120
- [/:poop:/g, 'emojify poop'],
121
- [/:shit:/g, 'emojify shit'],
122
- [/:thumbsup:|:\+1:/g, 'emojify thumbsup'],
123
- [/:thumbsdown:|:-1:/g, 'emojify thumbsdown'],
124
- [/:ok_hand:/g, 'emojify ok_hand'],
125
- [/:punch:/g, 'emojify punch'],
126
- [/:facepunch:/g, 'emojify facepunch'],
127
- [/:fist:/g, 'emojify fist'],
128
- [/:v:/g, 'emojify v'],
129
- [/:wave:/g, 'emojify wave'],
130
- [/:hand:/g, 'emojify hand'],
131
- [/:open_hands:/g, 'emojify open_hands'],
132
- [/:point_up:/g, 'emojify point_up'],
133
- [/:point_down:/g, 'emojify point_down'],
134
- [/:point_left:/g, 'emojify point_left'],
135
- [/:point_right:/g, 'emojify point_right'],
136
- [/:raised_hands:/g, 'emojify raised_hands'],
137
- [/:pray:/g, 'emojify pray'],
138
- [/:point_up_2:/g, 'emojify point_up_2'],
139
- [/:clap:/g, 'emojify clap'],
140
- [/:muscle:/g, 'emojify muscle'],
141
- [/:metal:/g, 'emojify metal'],
142
- [/:walking:/g, 'emojify walking'],
143
- [/:runner:/g, 'emojify runner'],
144
- [/:running:/g, 'emojify running'],
145
- [/:couple:/g, 'emojify couple'],
146
- [/:family:/g, 'emojify family'],
147
- [/:two_men_holding_hands:/g, 'emojify two_men_holding_hands'],
148
- [/:two_women_holding_hands:/g, 'emojify two_women_holding_hands'],
149
- [/:dancer:/g, 'emojify dancer'],
150
- [/:dancers:/g, 'emojify dancers'],
151
- [/:ok_woman:/g, 'emojify ok_woman'],
152
- [/:no_good:/g, 'emojify no_good'],
153
- [/:information_desk_person:/g, 'emojify information_desk_person'],
154
- [/:raised_hand:/g, 'emojify raised_hand'],
155
- [/:bride_with_veil:/g, 'emojify bride_with_veil'],
156
- [/:person_with_pouting_face:/g, 'emojify person_with_pouting_face'],
157
- [/:person_frowning:/g, 'emojify person_frowning'],
158
- [/:bow:/g, 'emojify bow'],
159
- [/:couplekiss:/g, 'emojify couplekiss'],
160
- [/:couple_with_heart:/g, 'emojify couple_with_heart'],
161
- [/:massage:/g, 'emojify massage'],
162
- [/:haircut:/g, 'emojify haircut'],
163
- [/:nail_care:/g, 'emojify nail_care'],
164
- [/:boy:/g, 'emojify boy'],
165
- [/:girl:/g, 'emojify girl'],
166
- [/:woman:/g, 'emojify woman'],
167
- [/:man:/g, 'emojify man'],
168
- [/:baby:/g, 'emojify baby'],
169
- [/:older_woman:/g, 'emojify older_woman'],
170
- [/:older_man:/g, 'emojify older_man'],
171
- [/:person_with_blond_hair:/g, 'emojify person_with_blond_hair'],
172
- [/:man_with_gua_pi_mao:/g, 'emojify man_with_gua_pi_mao'],
173
- [/:man_with_turban:/g, 'emojify man_with_turban'],
174
- [/:construction_worker:/g, 'emojify construction_worker'],
175
- [/:cop:/g, 'emojify cop'],
176
- [/:angel:/g, 'emojify angel'],
177
- [/:princess:/g, 'emojify princess'],
178
- [/:smiley_cat:/g, 'emojify smiley_cat'],
179
- [/:smile_cat:/g, 'emojify smile_cat'],
180
- [/:heart_eyes_cat:/g, 'emojify heart_eyes_cat'],
181
- [/:kissing_cat:/g, 'emojify kissing_cat'],
182
- [/:smirk_cat:/g, 'emojify smirk_cat'],
183
- [/:scream_cat:/g, 'emojify scream_cat'],
184
- [/:crying_cat_face:/g, 'emojify crying_cat_face'],
185
- [/:joy_cat:/g, 'emojify joy_cat'],
186
- [/:pouting_cat:/g, 'emojify pouting_cat'],
187
- [/:japanese_ogre:/g, 'emojify japanese_ogre'],
188
- [/:japanese_goblin:/g, 'emojify japanese_goblin'],
189
- [/:see_no_evil:/g, 'emojify see_no_evil'],
190
- [/:hear_no_evil:/g, 'emojify hear_no_evil'],
191
- [/:speak_no_evil:/g, 'emojify speak_no_evil'],
192
- [/:guardsman:/g, 'emojify guardsman'],
193
- [/:skull:/g, 'emojify skull'],
194
- [/:feet:/g, 'emojify feet'],
195
- [/:lips:/g, 'emojify lips'],
196
- [/:kiss:/g, 'emojify kiss'],
197
- [/:droplet:/g, 'emojify droplet'],
198
- [/:ear:/g, 'emojify ear'],
199
- [/:eyes:/g, 'emojify eyes'],
200
- [/:nose:/g, 'emojify nose'],
201
- [/:tongue:/g, 'emojify tongue'],
202
- [/:love_letter:/g, 'emojify love_letter'],
203
- [/:bust_in_silhouette:/g, 'emojify bust_in_silhouette'],
204
- [/:busts_in_silhouette:/g, 'emojify busts_in_silhouette'],
205
- [/:speech_balloon:/g, 'emojify speech_balloon'],
206
- [/:thought_balloon:/g, 'emojify thought_balloon'],
207
- [/:feelsgood:/g, 'emojify feelsgood'],
208
- [/:finnadie:/g, 'emojify finnadie'],
209
- [/:goberserk:/g, 'emojify goberserk'],
210
- [/:godmode:/g, 'emojify godmode'],
211
- [/:hurtrealbad:/g, 'emojify hurtrealbad'],
212
- [/:rage1:/g, 'emojify rage1'],
213
- [/:rage2:/g, 'emojify rage2'],
214
- [/:rage3:/g, 'emojify rage3'],
215
- [/:rage4:/g, 'emojify rage4'],
216
- [/:suspect:/g, 'emojify suspect'],
217
- [/:trollface:/g, 'emojify trollface']
218
- ],
219
- nature = [
220
- [/:sunny:/g, 'emojify sunny'],
221
- [/:umbrella:/g, 'emojify umbrella'],
222
- [/:cloud:/g, 'emojify cloud'],
223
- [/:snowflake:/g, 'emojify snowflake'],
224
- [/:snowman:/g, 'emojify snowman'],
225
- [/:zap:/g, 'emojify zap'],
226
- [/:cyclone:/g, 'emojify cyclone'],
227
- [/:foggy:/g, 'emojify foggy'],
228
- [/:ocean:/g, 'emojify ocean'],
229
- [/:cat:/g, 'emojify cat'],
230
- [/:dog:/g, 'emojify dog'],
231
- [/:mouse:/g, 'emojify mouse'],
232
- [/:hamster:/g, 'emojify hamster'],
233
- [/:rabbit:/g, 'emojify rabbit'],
234
- [/:wolf:/g, 'emojify wolf'],
235
- [/:frog:/g, 'emojify frog'],
236
- [/:tiger:/g, 'emojify tiger'],
237
- [/:koala:/g, 'emojify koala'],
238
- [/:bear:/g, 'emojify bear'],
239
- [/:pig:/g, 'emojify pig'],
240
- [/:pig_nose:/g, 'emojify pig_nose'],
241
- [/:cow:/g, 'emojify cow'],
242
- [/:boar:/g, 'emojify boar'],
243
- [/:monkey_face:/g, 'emojify monkey_face'],
244
- [/:monkey:/g, 'emojify monkey'],
245
- [/:horse:/g, 'emojify horse'],
246
- [/:racehorse:/g, 'emojify racehorse'],
247
- [/:camel:/g, 'emojify camel'],
248
- [/:sheep:/g, 'emojify sheep'],
249
- [/:elephant:/g, 'emojify elephant'],
250
- [/:panda_face:/g, 'emojify panda_face'],
251
- [/:snake:/g, 'emojify snake'],
252
- [/:bird:/g, 'emojify bird'],
253
- [/:baby_chick:/g, 'emojify baby_chick'],
254
- [/:hatched_chick:/g, 'emojify hatched_chick'],
255
- [/:hatching_chick:/g, 'emojify hatching_chick'],
256
- [/:chicken:/g, 'emojify chicken'],
257
- [/:penguin:/g, 'emojify penguin'],
258
- [/:turtle:/g, 'emojify turtle'],
259
- [/:bug:/g, 'emojify bug'],
260
- [/:honeybee:/g, 'emojify honeybee'],
261
- [/:ant:/g, 'emojify ant'],
262
- [/:beetle:/g, 'emojify beetle'],
263
- [/:snail:/g, 'emojify snail'],
264
- [/:octopus:/g, 'emojify octopus'],
265
- [/:tropical_fish:/g, 'emojify tropical_fish'],
266
- [/:fish:/g, 'emojify fish'],
267
- [/:whale:/g, 'emojify whale'],
268
- [/:whale2:/g, 'emojify whale2'],
269
- [/:dolphin:/g, 'emojify dolphin'],
270
- [/:cow2:/g, 'emojify cow2'],
271
- [/:ram:/g, 'emojify ram'],
272
- [/:rat:/g, 'emojify rat'],
273
- [/:water_buffalo:/g, 'emojify water_buffalo'],
274
- [/:tiger2:/g, 'emojify tiger2'],
275
- [/:rabbit2:/g, 'emojify rabbit2'],
276
- [/:dragon:/g, 'emojify dragon'],
277
- [/:goat:/g, 'emojify goat'],
278
- [/:rooster:/g, 'emojify rooster'],
279
- [/:dog2:/g, 'emojify dog2'],
280
- [/:pig2:/g, 'emojify pig2'],
281
- [/:mouse2:/g, 'emojify mouse2'],
282
- [/:ox:/g, 'emojify ox'],
283
- [/:dragon_face:/g, 'emojify dragon_face'],
284
- [/:blowfish:/g, 'emojify blowfish'],
285
- [/:crocodile:/g, 'emojify crocodile'],
286
- [/:dromedary_camel:/g, 'emojify dromedary_camel'],
287
- [/:leopard:/g, 'emojify leopard'],
288
- [/:cat2:/g, 'emojify cat2'],
289
- [/:poodle:/g, 'emojify poodle'],
290
- [/:paw_prints:/g, 'emojify paw_prints'],
291
- [/:bouquet:/g, 'emojify bouquet'],
292
- [/:cherry_blossom:/g, 'emojify cherry_blossom'],
293
- [/:tulip:/g, 'emojify tulip'],
294
- [/:four_leaf_clover:/g, 'emojify four_leaf_clover'],
295
- [/:rose:/g, 'emojify rose'],
296
- [/:sunflower:/g, 'emojify sunflower'],
297
- [/:hibiscus:/g, 'emojify hibiscus'],
298
- [/:maple_leaf:/g, 'emojify maple_leaf'],
299
- [/:leaves:/g, 'emojify leaves'],
300
- [/:fallen_leaf:/g, 'emojify fallen_leaf'],
301
- [/:herb:/g, 'emojify herb'],
302
- [/:mushroom:/g, 'emojify mushroom'],
303
- [/:cactus:/g, 'emojify cactus'],
304
- [/:palm_tree:/g, 'emojify palm_tree'],
305
- [/:evergreen_tree:/g, 'emojify evergreen_tree'],
306
- [/:deciduous_tree:/g, 'emojify deciduous_tree'],
307
- [/:chestnut:/g, 'emojify chestnut'],
308
- [/:seedling:/g, 'emojify seedling'],
309
- [/:blossom:/g, 'emojify blossom'],
310
- [/:ear_of_rice:/g, 'emojify ear_of_rice'],
311
- [/:shell:/g, 'emojify shell'],
312
- [/:globe_with_meridians:/g, 'emojify globe_with_meridians'],
313
- [/:sun_with_face:/g, 'emojify sun_with_face'],
314
- [/:full_moon_with_face:/g, 'emojify full_moon_with_face'],
315
- [/:new_moon_with_face:/g, 'emojify new_moon_with_face'],
316
- [/:new_moon:/g, 'emojify new_moon'],
317
- [/:waxing_crescent_moon:/g, 'emojify waxing_crescent_moon'],
318
- [/:first_quarter_moon:/g, 'emojify first_quarter_moon'],
319
- [/:waxing_gibbous_moon:/g, 'emojify waxing_gibbous_moon'],
320
- [/:full_moon:/g, 'emojify full_moon'],
321
- [/:waning_gibbous_moon:/g, 'emojify waning_gibbous_moon'],
322
- [/:last_quarter_moon:/g, 'emojify last_quarter_moon'],
323
- [/:waning_crescent_moon:/g, 'emojify waning_crescent_moon'],
324
- [/:last_quarter_moon_with_face:/g, 'emojify last_quarter_moon_with_face'],
325
- [/:first_quarter_moon_with_face:/g, 'emojify first_quarter_moon_with_face'],
326
- [/:moon:/g, 'emojify moon'],
327
- [/:earth_africa:/g, 'emojify earth_africa'],
328
- [/:earth_americas:/g, 'emojify earth_americas'],
329
- [/:earth_asia:/g, 'emojify earth_asia'],
330
- [/:volcano:/g, 'emojify volcano'],
331
- [/:milky_way:/g, 'emojify milky_way'],
332
- [/:partly_sunny:/g, 'emojify partly_sunny'],
333
- [/:octocat:/g, 'emojify octocat'],
334
- [/:squirrel:/g, 'emojify squirrel']
335
- ],
336
- objects = [
337
- [/:bamboo:/g, 'emojify bamboo'],
338
- [/:gift_heart:/g, 'emojify gift_heart'],
339
- [/:dolls:/g, 'emojify dolls'],
340
- [/:school_satchel:/g, 'emojify school_satchel'],
341
- [/:mortar_board:/g, 'emojify mortar_board'],
342
- [/:flags:/g, 'emojify flags'],
343
- [/:fireworks:/g, 'emojify fireworks'],
344
- [/:sparkler:/g, 'emojify sparkler'],
345
- [/:wind_chime:/g, 'emojify wind_chime'],
346
- [/:rice_scene:/g, 'emojify rice_scene'],
347
- [/:jack_o_lantern:/g, 'emojify jack_o_lantern'],
348
- [/:ghost:/g, 'emojify ghost'],
349
- [/:santa:/g, 'emojify santa'],
350
- [/:christmas_tree:/g, 'emojify christmas_tree'],
351
- [/:gift:/g, 'emojify gift'],
352
- [/:bell:/g, 'emojify bell'],
353
- [/:no_bell:/g, 'emojify no_bell'],
354
- [/:tanabata_tree:/g, 'emojify tanabata_tree'],
355
- [/:tada:/g, 'emojify tada'],
356
- [/:confetti_ball:/g, 'emojify confetti_ball'],
357
- [/:balloon:/g, 'emojify balloon'],
358
- [/:crystal_ball:/g, 'emojify crystal_ball'],
359
- [/:cd:/g, 'emojify cd'],
360
- [/:dvd:/g, 'emojify dvd'],
361
- [/:floppy_disk:/g, 'emojify floppy_disk'],
362
- [/:camera:/g, 'emojify camera'],
363
- [/:video_camera:/g, 'emojify video_camera'],
364
- [/:movie_camera:/g, 'emojify movie_camera'],
365
- [/:computer:/g, 'emojify computer'],
366
- [/:tv:/g, 'emojify tv'],
367
- [/:iphone:/g, 'emojify iphone'],
368
- [/:phone:/g, 'emojify phone'],
369
- [/:telephone:/g, 'emojify telephone'],
370
- [/:telephone_receiver:/g, 'emojify telephone_receiver'],
371
- [/:pager:/g, 'emojify pager'],
372
- [/:fax:/g, 'emojify fax'],
373
- [/:minidisc:/g, 'emojify minidisc'],
374
- [/:vhs:/g, 'emojify vhs'],
375
- [/:sound:/g, 'emojify sound'],
376
- [/:speaker:/g, 'emojify speaker'],
377
- [/:mute:/g, 'emojify mute'],
378
- [/:loudspeaker:/g, 'emojify loudspeaker'],
379
- [/:mega:/g, 'emojify mega'],
380
- [/:hourglass:/g, 'emojify hourglass'],
381
- [/:hourglass_flowing_sand:/g, 'emojify hourglass_flowing_sand'],
382
- [/:alarm_clock:/g, 'emojify alarm_clock'],
383
- [/:watch:/g, 'emojify watch'],
384
- [/:radio:/g, 'emojify radio'],
385
- [/:satellite:/g, 'emojify satellite'],
386
- [/:loop:/g, 'emojify loop'],
387
- [/:mag:/g, 'emojify mag'],
388
- [/:mag_right:/g, 'emojify mag_right'],
389
- [/:unlock:/g, 'emojify unlock'],
390
- [/:lock:/g, 'emojify lock'],
391
- [/:lock_with_ink_pen:/g, 'emojify lock_with_ink_pen'],
392
- [/:closed_lock_with_key:/g, 'emojify closed_lock_with_key'],
393
- [/:key:/g, 'emojify key'],
394
- [/:bulb:/g, 'emojify bulb'],
395
- [/:flashlight:/g, 'emojify flashlight'],
396
- [/:high_brightness:/g, 'emojify high_brightness'],
397
- [/:low_brightness:/g, 'emojify low_brightness'],
398
- [/:electric_plug:/g, 'emojify electric_plug'],
399
- [/:battery:/g, 'emojify battery'],
400
- [/:calling:/g, 'emojify calling'],
401
- [/:email:/g, 'emojify email'],
402
- [/:mailbox:/g, 'emojify mailbox'],
403
- [/:postbox:/g, 'emojify postbox'],
404
- [/:bath:/g, 'emojify bath'],
405
- [/:bathtub:/g, 'emojify bathtub'],
406
- [/:shower:/g, 'emojify shower'],
407
- [/:toilet:/g, 'emojify toilet'],
408
- [/:wrench:/g, 'emojify wrench'],
409
- [/:nut_and_bolt:/g, 'emojify nut_and_bolt'],
410
- [/:hammer:/g, 'emojify hammer'],
411
- [/:seat:/g, 'emojify seat'],
412
- [/:moneybag:/g, 'emojify moneybag'],
413
- [/:yen:/g, 'emojify yen'],
414
- [/:dollar:/g, 'emojify dollar'],
415
- [/:pound:/g, 'emojify pound'],
416
- [/:euro:/g, 'emojify euro'],
417
- [/:credit_card:/g, 'emojify credit_card'],
418
- [/:money_with_wings:/g, 'emojify money_with_wings'],
419
- [/:e-mail:/g, 'emojify e-mail'],
420
- [/:inbox_tray:/g, 'emojify inbox_tray'],
421
- [/:outbox_tray:/g, 'emojify outbox_tray'],
422
- [/:envelope:/g, 'emojify envelope'],
423
- [/:incoming_envelope:/g, 'emojify incoming_envelope'],
424
- [/:postal_horn:/g, 'emojify postal_horn'],
425
- [/:mailbox_closed:/g, 'emojify mailbox_closed'],
426
- [/:mailbox_with_mail:/g, 'emojify mailbox_with_mail'],
427
- [/:mailbox_with_no_mail:/g, 'emojify mailbox_with_no_mail'],
428
- [/:door:/g, 'emojify door'],
429
- [/:smoking:/g, 'emojify smoking'],
430
- [/:bomb:/g, 'emojify bomb'],
431
- [/:gun:/g, 'emojify gun'],
432
- [/:hocho:/g, 'emojify hocho'],
433
- [/:pill:/g, 'emojify pill'],
434
- [/:syringe:/g, 'emojify syringe'],
435
- [/:page_facing_up:/g, 'emojify page_facing_up'],
436
- [/:page_with_curl:/g, 'emojify page_with_curl'],
437
- [/:bookmark_tabs:/g, 'emojify bookmark_tabs'],
438
- [/:bar_chart:/g, 'emojify bar_chart'],
439
- [/:chart_with_upwards_trend:/g, 'emojify chart_with_upwards_trend'],
440
- [/:chart_with_downwards_trend:/g, 'emojify chart_with_downwards_trend'],
441
- [/:scroll:/g, 'emojify scroll'],
442
- [/:clipboard:/g, 'emojify clipboard'],
443
- [/:calendar:/g, 'emojify calendar'],
444
- [/:date:/g, 'emojify date'],
445
- [/:card_index:/g, 'emojify card_index'],
446
- [/:file_folder:/g, 'emojify file_folder'],
447
- [/:open_file_folder:/g, 'emojify open_file_folder'],
448
- [/:scissors:/g, 'emojify scissors'],
449
- [/:pushpin:/g, 'emojify pushpin'],
450
- [/:paperclip:/g, 'emojify paperclip'],
451
- [/:black_nib:/g, 'emojify black_nib'],
452
- [/:pencil2:/g, 'emojify pencil2'],
453
- [/:straight_ruler:/g, 'emojify straight_ruler'],
454
- [/:triangular_ruler:/g, 'emojify triangular_ruler'],
455
- [/:closed_book:/g, 'emojify closed_book'],
456
- [/:green_book:/g, 'emojify green_book'],
457
- [/:blue_book:/g, 'emojify blue_book'],
458
- [/:orange_book:/g, 'emojify orange_book'],
459
- [/:notebook:/g, 'emojify notebook'],
460
- [/:notebook_with_decorative_cover:/g, 'emojify notebook_with_decorative_cover'],
461
- [/:ledger:/g, 'emojify ledger'],
462
- [/:books:/g, 'emojify books'],
463
- [/:bookmark:/g, 'emojify bookmark'],
464
- [/:name_badge:/g, 'emojify name_badge'],
465
- [/:microscope:/g, 'emojify microscope'],
466
- [/:telescope:/g, 'emojify telescope'],
467
- [/:newspaper:/g, 'emojify newspaper'],
468
- [/:football:/g, 'emojify football'],
469
- [/:basketball:/g, 'emojify basketball'],
470
- [/:soccer:/g, 'emojify soccer'],
471
- [/:baseball:/g, 'emojify baseball'],
472
- [/:tennis:/g, 'emojify tennis'],
473
- [/:8ball:/g, 'emojify eightball'],
474
- [/:rugby_football:/g, 'emojify rugby_football'],
475
- [/:bowling:/g, 'emojify bowling'],
476
- [/:golf:/g, 'emojify golf'],
477
- [/:mountain_bicyclist:/g, 'emojify mountain_bicyclist'],
478
- [/:bicyclist:/g, 'emojify bicyclist'],
479
- [/:horse_racing:/g, 'emojify horse_racing'],
480
- [/:snowboarder:/g, 'emojify snowboarder'],
481
- [/:swimmer:/g, 'emojify swimmer'],
482
- [/:surfer:/g, 'emojify surfer'],
483
- [/:ski:/g, 'emojify ski'],
484
- [/:spades:/g, 'emojify spades'],
485
- [/:hearts:/g, 'emojify hearts'],
486
- [/:clubs:/g, 'emojify clubs'],
487
- [/:diamonds:/g, 'emojify diamonds'],
488
- [/:gem:/g, 'emojify gem'],
489
- [/:ring:/g, 'emojify ring'],
490
- [/:trophy:/g, 'emojify trophy'],
491
- [/:musical_score:/g, 'emojify musical_score'],
492
- [/:musical_keyboard:/g, 'emojify musical_keyboard'],
493
- [/:violin:/g, 'emojify violin'],
494
- [/:space_invader:/g, 'emojify space_invader'],
495
- [/:video_game:/g, 'emojify video_game'],
496
- [/:black_joker:/g, 'emojify black_joker'],
497
- [/:flower_playing_cards:/g, 'emojify flower_playing_cards'],
498
- [/:game_die:/g, 'emojify game_die'],
499
- [/:dart:/g, 'emojify dart'],
500
- [/:mahjong:/g, 'emojify mahjong'],
501
- [/:clapper:/g, 'emojify clapper'],
502
- [/:memo:/g, 'emojify memo'],
503
- [/:pencil:/g, 'emojify pencil'],
504
- [/:book:/g, 'emojify book'],
505
- [/:art:/g, 'emojify art'],
506
- [/:microphone:/g, 'emojify microphone'],
507
- [/:headphones:/g, 'emojify headphones'],
508
- [/:trumpet:/g, 'emojify trumpet'],
509
- [/:saxophone:/g, 'emojify saxophone'],
510
- [/:guitar:/g, 'emojify guitar'],
511
- [/:shoe:/g, 'emojify shoe'],
512
- [/:sandal:/g, 'emojify sandal'],
513
- [/:high_heel:/g, 'emojify high_heel'],
514
- [/:lipstick:/g, 'emojify lipstick'],
515
- [/:boot:/g, 'emojify boot'],
516
- [/:shirt:/g, 'emojify shirt'],
517
- [/:tshirt:/g, 'emojify tshirt'],
518
- [/:necktie:/g, 'emojify necktie'],
519
- [/:womans_clothes:/g, 'emojify womans_clothes'],
520
- [/:dress:/g, 'emojify dress'],
521
- [/:running_shirt_with_sash:/g, 'emojify running_shirt_with_sash'],
522
- [/:jeans:/g, 'emojify jeans'],
523
- [/:kimono:/g, 'emojify kimono'],
524
- [/:bikini:/g, 'emojify bikini'],
525
- [/:ribbon:/g, 'emojify ribbon'],
526
- [/:tophat:/g, 'emojify tophat'],
527
- [/:crown:/g, 'emojify crown'],
528
- [/:womans_hat:/g, 'emojify womans_hat'],
529
- [/:mans_shoe:/g, 'emojify mans_shoe'],
530
- [/:closed_umbrella:/g, 'emojify closed_umbrella'],
531
- [/:briefcase:/g, 'emojify briefcase'],
532
- [/:handbag:/g, 'emojify handbag'],
533
- [/:pouch:/g, 'emojify pouch'],
534
- [/:purse:/g, 'emojify purse'],
535
- [/:eyeglasses:/g, 'emojify eyeglasses'],
536
- [/:fishing_pole_and_fish:/g, 'emojify fishing_pole_and_fish'],
537
- [/:coffee:/g, 'emojify coffee'],
538
- [/:tea:/g, 'emojify tea'],
539
- [/:sake:/g, 'emojify sake'],
540
- [/:baby_bottle:/g, 'emojify baby_bottle'],
541
- [/:beer:/g, 'emojify beer'],
542
- [/:beers:/g, 'emojify beers'],
543
- [/:cocktail:/g, 'emojify cocktail'],
544
- [/:tropical_drink:/g, 'emojify tropical_drink'],
545
- [/:wine_glass:/g, 'emojify wine_glass'],
546
- [/:fork_and_knife:/g, 'emojify fork_and_knife'],
547
- [/:pizza:/g, 'emojify pizza'],
548
- [/:hamburger:/g, 'emojify hamburger'],
549
- [/:fries:/g, 'emojify fries'],
550
- [/:poultry_leg:/g, 'emojify poultry_leg'],
551
- [/:meat_on_bone:/g, 'emojify meat_on_bone'],
552
- [/:spaghetti:/g, 'emojify spaghetti'],
553
- [/:curry:/g, 'emojify curry'],
554
- [/:fried_shrimp:/g, 'emojify fried_shrimp'],
555
- [/:bento:/g, 'emojify bento'],
556
- [/:sushi:/g, 'emojify sushi'],
557
- [/:fish_cake:/g, 'emojify fish_cake'],
558
- [/:rice_ball:/g, 'emojify rice_ball'],
559
- [/:rice_cracker:/g, 'emojify rice_cracker'],
560
- [/:rice:/g, 'emojify rice'],
561
- [/:ramen:/g, 'emojify ramen'],
562
- [/:stew:/g, 'emojify stew'],
563
- [/:oden:/g, 'emojify oden'],
564
- [/:dango:/g, 'emojify dango'],
565
- [/:egg:/g, 'emojify egg'],
566
- [/:bread:/g, 'emojify bread'],
567
- [/:doughnut:/g, 'emojify doughnut'],
568
- [/:custard:/g, 'emojify custard'],
569
- [/:icecream:/g, 'emojify icecream'],
570
- [/:ice_cream:/g, 'emojify ice_cream'],
571
- [/:shaved_ice:/g, 'emojify shaved_ice'],
572
- [/:birthday:/g, 'emojify birthday'],
573
- [/:cake:/g, 'emojify cake'],
574
- [/:cookie:/g, 'emojify cookie'],
575
- [/:chocolate_bar:/g, 'emojify chocolate_bar'],
576
- [/:candy:/g, 'emojify candy'],
577
- [/:lollipop:/g, 'emojify lollipop'],
578
- [/:honey_pot:/g, 'emojify honey_pot'],
579
- [/:apple:/g, 'emojify apple'],
580
- [/:green_apple:/g, 'emojify green_apple'],
581
- [/:tangerine:/g, 'emojify tangerine'],
582
- [/:lemon:/g, 'emojify lemon'],
583
- [/:cherries:/g, 'emojify cherries'],
584
- [/:grapes:/g, 'emojify grapes'],
585
- [/:watermelon:/g, 'emojify watermelon'],
586
- [/:strawberry:/g, 'emojify strawberry'],
587
- [/:peach:/g, 'emojify peach'],
588
- [/:melon:/g, 'emojify melon'],
589
- [/:banana:/g, 'emojify banana'],
590
- [/:pear:/g, 'emojify pear'],
591
- [/:pineapple:/g, 'emojify pineapple'],
592
- [/:sweet_potato:/g, 'emojify sweet_potato'],
593
- [/:eggplant:/g, 'emojify eggplant'],
594
- [/:tomato:/g, 'emojify tomato'],
595
- [/:corn:/g, 'emojify corn']
596
- ],
597
- places = [
598
- [/:109:/g, 'emojify onezeronine'],
599
- [/:house:/g, 'emojify house'],
600
- [/:house_with_garden:/g, 'emojify house_with_garden'],
601
- [/:school:/g, 'emojify school'],
602
- [/:office:/g, 'emojify office'],
603
- [/:post_office:/g, 'emojify post_office'],
604
- [/:hospital:/g, 'emojify hospital'],
605
- [/:bank:/g, 'emojify bank'],
606
- [/:convenience_store:/g, 'emojify convenience_store'],
607
- [/:love_hotel:/g, 'emojify love_hotel'],
608
- [/:hotel:/g, 'emojify hotel'],
609
- [/:wedding:/g, 'emojify wedding'],
610
- [/:church:/g, 'emojify church'],
611
- [/:department_store:/g, 'emojify department_store'],
612
- [/:european_post_office:/g, 'emojify european_post_office'],
613
- [/:city_sunrise:/g, 'emojify city_sunrise'],
614
- [/:city_sunset:/g, 'emojify city_sunset'],
615
- [/:japanese_castle:/g, 'emojify japanese_castle'],
616
- [/:european_castle:/g, 'emojify european_castle'],
617
- [/:tent:/g, 'emojify tent'],
618
- [/:factory:/g, 'emojify factory'],
619
- [/:tokyo_tower:/g, 'emojify tokyo_tower'],
620
- [/:japan:/g, 'emojify japan'],
621
- [/:mount_fuji:/g, 'emojify mount_fuji'],
622
- [/:sunrise_over_mountains:/g, 'emojify sunrise_over_mountains'],
623
- [/:sunrise:/g, 'emojify sunrise'],
624
- [/:stars:/g, 'emojify stars'],
625
- [/:statue_of_liberty:/g, 'emojify statue_of_liberty'],
626
- [/:bridge_at_night:/g, 'emojify bridge_at_night'],
627
- [/:carousel_horse:/g, 'emojify carousel_horse'],
628
- [/:rainbow:/g, 'emojify rainbow'],
629
- [/:ferris_wheel:/g, 'emojify ferris_wheel'],
630
- [/:fountain:/g, 'emojify fountain'],
631
- [/:roller_coaster:/g, 'emojify roller_coaster'],
632
- [/:ship:/g, 'emojify ship'],
633
- [/:speedboat:/g, 'emojify speedboat'],
634
- [/:boat:/g, 'emojify boat'],
635
- [/:sailboat:/g, 'emojify sailboat'],
636
- [/:rowboat:/g, 'emojify rowboat'],
637
- [/:anchor:/g, 'emojify anchor'],
638
- [/:rocket:/g, 'emojify rocket'],
639
- [/:airplane:/g, 'emojify airplane'],
640
- [/:helicopter:/g, 'emojify helicopter'],
641
- [/:steam_locomotive:/g, 'emojify steam_locomotive'],
642
- [/:tram:/g, 'emojify tram'],
643
- [/:mountain_railway:/g, 'emojify mountain_railway'],
644
- [/:bike:/g, 'emojify bike'],
645
- [/:aerial_tramway:/g, 'emojify aerial_tramway'],
646
- [/:suspension_railway:/g, 'emojify suspension_railway'],
647
- [/:mountain_cableway:/g, 'emojify mountain_cableway'],
648
- [/:tractor:/g, 'emojify tractor'],
649
- [/:blue_car:/g, 'emojify blue_car'],
650
- [/:oncoming_automobile:/g, 'emojify oncoming_automobile'],
651
- [/:car:/g, 'emojify car'],
652
- [/:red_car:/g, 'emojify red_car'],
653
- [/:taxi:/g, 'emojify taxi'],
654
- [/:oncoming_taxi:/g, 'emojify oncoming_taxi'],
655
- [/:articulated_lorry:/g, 'emojify articulated_lorry'],
656
- [/:bus:/g, 'emojify bus'],
657
- [/:oncoming_bus:/g, 'emojify oncoming_bus'],
658
- [/:rotating_light:/g, 'emojify rotating_light'],
659
- [/:police_car:/g, 'emojify police_car'],
660
- [/:oncoming_police_car:/g, 'emojify oncoming_police_car'],
661
- [/:fire_engine:/g, 'emojify fire_engine'],
662
- [/:ambulance:/g, 'emojify ambulance'],
663
- [/:minibus:/g, 'emojify minibus'],
664
- [/:truck:/g, 'emojify truck'],
665
- [/:train:/g, 'emojify train'],
666
- [/:station:/g, 'emojify station'],
667
- [/:train2:/g, 'emojify train2'],
668
- [/:bullettrain_front:/g, 'emojify bullettrain_front'],
669
- [/:bullettrain_side:/g, 'emojify bullettrain_side'],
670
- [/:light_rail:/g, 'emojify light_rail'],
671
- [/:monorail:/g, 'emojify monorail'],
672
- [/:railway_car:/g, 'emojify railway_car'],
673
- [/:trolleybus:/g, 'emojify trolleybus'],
674
- [/:ticket:/g, 'emojify ticket'],
675
- [/:fuelpump:/g, 'emojify fuelpump'],
676
- [/:vertical_traffic_light:/g, 'emojify vertical_traffic_light'],
677
- [/:traffic_light:/g, 'emojify traffic_light'],
678
- [/:warning:/g, 'emojify warning'],
679
- [/:construction:/g, 'emojify construction'],
680
- [/:beginner:/g, 'emojify beginner'],
681
- [/:atm:/g, 'emojify atm'],
682
- [/:slot_machine:/g, 'emojify slot_machine'],
683
- [/:busstop:/g, 'emojify busstop'],
684
- [/:barber:/g, 'emojify barber'],
685
- [/:hotsprings:/g, 'emojify hotsprings'],
686
- [/:checkered_flag:/g, 'emojify checkered_flag'],
687
- [/:crossed_flags:/g, 'emojify crossed_flags'],
688
- [/:izakaya_lantern:/g, 'emojify izakaya_lantern'],
689
- [/:moyai:/g, 'emojify moyai'],
690
- [/:circus_tent:/g, 'emojify circus_tent'],
691
- [/:performing_arts:/g, 'emojify performing_arts'],
692
- [/:round_pushpin:/g, 'emojify round_pushpin'],
693
- [/:triangular_flag_on_post:/g, 'emojify triangular_flag_on_post'],
694
- [/:jp:/g, 'emojify jp'],
695
- [/:kr:/g, 'emojify kr'],
696
- [/:cn:/g, 'emojify cn'],
697
- [/:us:/g, 'emojify us'],
698
- [/:fr:/g, 'emojify fr'],
699
- [/:es:/g, 'emojify es'],
700
- [/:it:/g, 'emojify it'],
701
- [/:ru:/g, 'emojify ru'],
702
- [/:gb:/g, 'emojify gb'],
703
- [/:uk:/g, 'emojify uk'],
704
- [/:de:/g, 'emojify de']
705
- ],
706
- symbols = [
707
- [/:one:/g, 'emojify one'],
708
- [/:two:/g, 'emojify two'],
709
- [/:three:/g, 'emojify three'],
710
- [/:four:/g, 'emojify four'],
711
- [/:five:/g, 'emojify five'],
712
- [/:six:/g, 'emojify six'],
713
- [/:seven:/g, 'emojify seven'],
714
- [/:eight:/g, 'emojify eight'],
715
- [/:nine:/g, 'emojify nine'],
716
- [/:keycap_ten:/g, 'emojify keycap_ten'],
717
- [/:1234:/g, 'emojify onetwothreefour'],
718
- [/:zero:/g, 'emojify zero'],
719
- [/:hash:/g, 'emojify hash'],
720
- [/:symbols:/g, 'emojify symbols'],
721
- [/:arrow_backward:/g, 'emojify arrow_backward'],
722
- [/:arrow_down:/g, 'emojify arrow_down'],
723
- [/:arrow_forward:/g, 'emojify arrow_forward'],
724
- [/:arrow_left:/g, 'emojify arrow_left'],
725
- [/:capital_abcd:/g, 'emojify capital_abcd'],
726
- [/:abcd:/g, 'emojify abcd'],
727
- [/:abc:/g, 'emojify abc'],
728
- [/:arrow_lower_left:/g, 'emojify arrow_lower_left'],
729
- [/:arrow_lower_right:/g, 'emojify arrow_lower_right'],
730
- [/:arrow_right:/g, 'emojify arrow_right'],
731
- [/:arrow_up:/g, 'emojify arrow_up'],
732
- [/:arrow_upper_left:/g, 'emojify arrow_upper_left'],
733
- [/:arrow_upper_right:/g, 'emojify arrow_upper_right'],
734
- [/:arrow_double_down:/g, 'emojify arrow_double_down'],
735
- [/:arrow_double_up:/g, 'emojify arrow_double_up'],
736
- [/:arrow_down_small:/g, 'emojify arrow_down_small'],
737
- [/:arrow_heading_down:/g, 'emojify arrow_heading_down'],
738
- [/:arrow_heading_up:/g, 'emojify arrow_heading_up'],
739
- [/:leftwards_arrow_with_hook:/g, 'emojify leftwards_arrow_with_hook'],
740
- [/:arrow_right_hook:/g, 'emojify arrow_right_hook'],
741
- [/:left_right_arrow:/g, 'emojify left_right_arrow'],
742
- [/:arrow_up_down:/g, 'emojify arrow_up_down'],
743
- [/:arrow_up_small:/g, 'emojify arrow_up_small'],
744
- [/:arrows_clockwise:/g, 'emojify arrows_clockwise'],
745
- [/:arrows_counterclockwise:/g, 'emojify arrows_counterclockwise'],
746
- [/:rewind:/g, 'emojify rewind'],
747
- [/:fast_forward:/g, 'emojify fast_forward'],
748
- [/:information_source:/g, 'emojify information_source'],
749
- [/:ok:/g, 'emojify ok'],
750
- [/:twisted_rightwards_arrows:/g, 'emojify twisted_rightwards_arrows'],
751
- [/:repeat:/g, 'emojify repeat'],
752
- [/:repeat_one:/g, 'emojify repeat_one'],
753
- [/:new:/g, 'emojify new'],
754
- [/:top:/g, 'emojify top'],
755
- [/:up:/g, 'emojify up'],
756
- [/:cool:/g, 'emojify cool'],
757
- [/:free:/g, 'emojify free'],
758
- [/:ng:/g, 'emojify ng'],
759
- [/:cinema:/g, 'emojify cinema'],
760
- [/:koko:/g, 'emojify koko'],
761
- [/:signal_strength:/g, 'emojify signal_strength'],
762
- [/:u5272:/g, 'emojify u5272'],
763
- [/:u5408:/g, 'emojify u5408'],
764
- [/:u55b6:/g, 'emojify u55b6'],
765
- [/:u6307:/g, 'emojify u6307'],
766
- [/:u6708:/g, 'emojify u6708'],
767
- [/:u6709:/g, 'emojify u6709'],
768
- [/:u6e80:/g, 'emojify u6e80'],
769
- [/:u7121:/g, 'emojify u7121'],
770
- [/:u7533:/g, 'emojify u7533'],
771
- [/:u7a7a:/g, 'emojify u7a7a'],
772
- [/:u7981:/g, 'emojify u7981'],
773
- [/:sa:/g, 'emojify sa'],
774
- [/:restroom:/g, 'emojify restroom'],
775
- [/:mens:/g, 'emojify mens'],
776
- [/:womens:/g, 'emojify womens'],
777
- [/:baby_symbol:/g, 'emojify baby_symbol'],
778
- [/:no_smoking:/g, 'emojify no_smoking'],
779
- [/:parking:/g, 'emojify parking'],
780
- [/:wheelchair:/g, 'emojify wheelchair'],
781
- [/:metro:/g, 'emojify metro'],
782
- [/:baggage_claim:/g, 'emojify baggage_claim'],
783
- [/:accept:/g, 'emojify accept'],
784
- [/:wc:/g, 'emojify wc'],
785
- [/:potable_water:/g, 'emojify potable_water'],
786
- [/:put_litter_in_its_place:/g, 'emojify put_litter_in_its_place'],
787
- [/:secret:/g, 'emojify secret'],
788
- [/:congratulations:/g, 'emojify congratulations'],
789
- [/:m:/g, 'emojify m'],
790
- [/:passport_control:/g, 'emojify passport_control'],
791
- [/:left_luggage:/g, 'emojify left_luggage'],
792
- [/:customs:/g, 'emojify customs'],
793
- [/:ideograph_advantage:/g, 'emojify ideograph_advantage'],
794
- [/:cl:/g, 'emojify cl'],
795
- [/:sos:/g, 'emojify sos'],
796
- [/:id:/g, 'emojify id'],
797
- [/:no_entry_sign:/g, 'emojify no_entry_sign'],
798
- [/:underage:/g, 'emojify underage'],
799
- [/:no_mobile_phones:/g, 'emojify no_mobile_phones'],
800
- [/:do_not_litter:/g, 'emojify do_not_litter'],
801
- [/:non-potable_water:/g, 'emojify non-potable_water'],
802
- [/:no_bicycles:/g, 'emojify no_bicycles'],
803
- [/:no_pedestrians:/g, 'emojify no_pedestrians'],
804
- [/:children_crossing:/g, 'emojify children_crossing'],
805
- [/:no_entry:/g, 'emojify no_entry'],
806
- [/:eight_spoked_asterisk:/g, 'emojify eight_spoked_asterisk'],
807
- [/:eight_pointed_black_star:/g, 'emojify eight_pointed_black_star'],
808
- [/:heart_decoration:/g, 'emojify heart_decoration'],
809
- [/:vs:/g, 'emojify vs'],
810
- [/:vibration_mode:/g, 'emojify vibration_mode'],
811
- [/:mobile_phone_off:/g, 'emojify mobile_phone_off'],
812
- [/:chart:/g, 'emojify chart'],
813
- [/:currency_exchange:/g, 'emojify currency_exchange'],
814
- [/:aries:/g, 'emojify aries'],
815
- [/:taurus:/g, 'emojify taurus'],
816
- [/:gemini:/g, 'emojify gemini'],
817
- [/:cancer:/g, 'emojify cancer'],
818
- [/:leo:/g, 'emojify leo'],
819
- [/:virgo:/g, 'emojify virgo'],
820
- [/:libra:/g, 'emojify libra'],
821
- [/:scorpius:/g, 'emojify scorpius'],
822
- [/:sagittarius:/g, 'emojify sagittarius'],
823
- [/:capricorn:/g, 'emojify capricorn'],
824
- [/:aquarius:/g, 'emojify aquarius'],
825
- [/:pisces:/g, 'emojify pisces'],
826
- [/:ophiuchus:/g, 'emojify ophiuchus'],
827
- [/:six_pointed_star:/g, 'emojify six_pointed_star'],
828
- [/:negative_squared_cross_mark:/g, 'emojify negative_squared_cross_mark'],
829
- [/:a:/g, 'emojify a'],
830
- [/:b:/g, 'emojify b'],
831
- [/:ab:/g, 'emojify ab'],
832
- [/:o2:/g, 'emojify o2'],
833
- [/:diamond_shape_with_a_dot_inside:/g, 'emojify diamond_shape_with_a_dot_inside'],
834
- [/:recycle:/g, 'emojify recycle'],
835
- [/:end:/g, 'emojify end'],
836
- [/:on:/g, 'emojify on'],
837
- [/:soon:/g, 'emojify soon'],
838
- [/:clock1:/g, 'emojify clock1'],
839
- [/:clock130:/g, 'emojify clock130'],
840
- [/:clock10:/g, 'emojify clock10'],
841
- [/:clock1030:/g, 'emojify clock1030'],
842
- [/:clock11:/g, 'emojify clock11'],
843
- [/:clock1130:/g, 'emojify clock1130'],
844
- [/:clock12:/g, 'emojify clock12'],
845
- [/:clock1230:/g, 'emojify clock1230'],
846
- [/:clock2:/g, 'emojify clock2'],
847
- [/:clock230:/g, 'emojify clock230'],
848
- [/:clock3:/g, 'emojify clock3'],
849
- [/:clock330:/g, 'emojify clock330'],
850
- [/:clock4:/g, 'emojify clock4'],
851
- [/:clock430:/g, 'emojify clock430'],
852
- [/:clock5:/g, 'emojify clock5'],
853
- [/:clock530:/g, 'emojify clock530'],
854
- [/:clock6:/g, 'emojify clock6'],
855
- [/:clock630:/g, 'emojify clock630'],
856
- [/:clock7:/g, 'emojify clock7'],
857
- [/:clock730:/g, 'emojify clock730'],
858
- [/:clock8:/g, 'emojify clock8'],
859
- [/:clock830:/g, 'emojify clock830'],
860
- [/:clock9:/g, 'emojify clock9'],
861
- [/:clock930:/g, 'emojify clock930'],
862
- [/:heavy_dollar_sign:/g, 'emojify heavy_dollar_sign'],
863
- [/:copyright:/g, 'emojify copyright'],
864
- [/:registered:/g, 'emojify registered'],
865
- [/:tm:/g, 'emojify tm'],
866
- [/:x:/g, 'emojify x'],
867
- [/:heavy_exclamation_mark:/g, 'emojify heavy_exclamation_mark'],
868
- [/:bangbang:/g, 'emojify bangbang'],
869
- [/:interrobang:/g, 'emojify interrobang'],
870
- [/:o:/g, 'emojify o'],
871
- [/:heavy_multiplication_x:/g, 'emojify heavy_multiplication_x'],
872
- [/:heavy_plus_sign:/g, 'emojify heavy_plus_sign'],
873
- [/:heavy_minus_sign:/g, 'emojify heavy_minus_sign'],
874
- [/:heavy_division_sign:/g, 'emojify heavy_division_sign'],
875
- [/:white_flower:/g, 'emojify white_flower'],
876
- [/:100:/g, 'emojify onehundred'],
877
- [/:heavy_check_mark:/g, 'emojify heavy_check_mark'],
878
- [/:ballot_box_with_check:/g, 'emojify ballot_box_with_check'],
879
- [/:radio_button:/g, 'emojify radio_button'],
880
- [/:link:/g, 'emojify link'],
881
- [/:curly_loop:/g, 'emojify curly_loop'],
882
- [/:wavy_dash:/g, 'emojify wavy_dash'],
883
- [/:part_alternation_mark:/g, 'emojify part_alternation_mark'],
884
- [/:trident:/g, 'emojify trident'],
885
- [/:black_square:/g, 'emojify black_square'],
886
- [/:white_square:/g, 'emojify white_square'],
887
- [/:white_check_mark:/g, 'emojify white_check_mark'],
888
- [/:black_square_button:/g, 'emojify black_square_button'],
889
- [/:white_square_button:/g, 'emojify white_square_button'],
890
- [/:black_circle:/g, 'emojify black_circle'],
891
- [/:white_circle:/g, 'emojify white_circle'],
892
- [/:red_circle:/g, 'emojify red_circle'],
893
- [/:large_blue_circle:/g, 'emojify large_blue_circle'],
894
- [/:large_blue_diamond:/g, 'emojify large_blue_diamond'],
895
- [/:large_orange_diamond:/g, 'emojify large_orange_diamond'],
896
- [/:small_blue_diamond:/g, 'emojify small_blue_diamond'],
897
- [/:small_orange_diamond:/g, 'emojify small_orange_diamond'],
898
- [/:small_red_triangle:/g, 'emojify small_red_triangle'],
899
- [/:small_red_triangle_down:/g, 'emojify small_red_triangle_down'],
900
- [/:shipit:/g, 'emojify shipit']
901
- ];
902
-
903
- // Helper function to find text within DOM
904
- var findText = function (element, pattern, callback) {
905
- for (var childi = element.childNodes.length; childi-- > 0;) {
906
- var child = element.childNodes[childi];
907
- if (child.nodeType == 1) {
908
-
909
- // Get tag name and class attribute
910
- var tag = child.tagName.toLowerCase(),
911
- classname;
912
- if (child.hasAttribute('class')) classname = child.getAttribute('class').toLowerCase();
913
-
914
- // Hacky at the minute, needs to be fixed
915
- if (classname) {
916
- if (tag !== 'script' && tag !== 'style' && tag !== 'textarea' && classname !== 'no-emojify') findText(child, pattern, callback);
917
- } else {
918
- if (tag !== 'script' && tag !== 'style' && tag !== 'textarea') findText(child, pattern, callback);
919
- }
920
-
921
- } else if (child.nodeType == 3) {
922
- var matches = [];
923
- if (typeof pattern === 'string') {
924
- console.error('Accepts regex only');
925
- } else {
926
- var match;
927
- while (match = pattern.exec(child.data))
928
- matches.push(match);
929
- }
930
- for (var i = matches.length; i-- > 0;)
931
- callback.call(window, child, matches[i]);
932
- }
933
- }
934
- };
935
-
936
- return {
937
-
938
- // Sane defaults
939
- defaultConfig: {
940
- emojify_tag_type: 'div',
941
- only_crawl_id: null,
942
- emoticons_enabled: true,
943
- people_enabled: false,
944
- nature_enabled: false,
945
- objects_enabled: false,
946
- places_enabled: false,
947
- symbols_enabled: false
948
- },
949
-
950
- setConfig: function (newConfig) {
951
- this.defaultConfig.emojify_tag_type = typeof newConfig.emojify_tag_type !== 'undefined' ? newConfig.emojify_tag_type : this.defaultConfig.emojify_tag_type;
952
- this.defaultConfig.emoticons_enabled = typeof newConfig.emoticons_enabled !== 'undefined' ? newConfig.emoticons_enabled : this.defaultConfig.emoticons_enabled;
953
- this.defaultConfig.people_enabled = typeof newConfig.people_enabled !== 'undefined' ? newConfig.people_enabled : this.defaultConfig.people_enabled;
954
- this.defaultConfig.nature_enabled = typeof newConfig.nature_enabled !== 'undefined' ? newConfig.nature_enabled : this.defaultConfig.nature_enabled;
955
- this.defaultConfig.objects_enabled = typeof newConfig.objects_enabled !== 'undefined' ? newConfig.objects_enabled : this.defaultConfig.objects_enabled;
956
- this.defaultConfig.places_enabled = typeof newConfig.places_enabled !== 'undefined' ? newConfig.places_enabled : this.defaultConfig.places_enabled;
957
- this.defaultConfig.symbols_enabled = typeof newConfig.symbols_enabled !== 'undefined' ? newConfig.symbols_enabled : this.defaultConfig.symbols_enabled;
958
- this.defaultConfig.only_crawl_id = typeof newConfig.only_crawl_id !== 'undefined' ? newConfig.only_crawl_id : this.defaultConfig.only_crawl_id;
959
- },
960
-
961
- // Main method
962
- run: function (el) {
963
-
964
- // Create array of selected icon sets
965
- var selected_sets = [];
966
-
967
- // Quick way to duplicate arrays, cache them here in these local variables.
968
- var _people = people.slice(0),
969
- _nature = nature.slice(0),
970
- _objects = objects.slice(0),
971
- _places = places.slice(0),
972
- _symbols = symbols.slice(0),
973
- _emoticons = emoticons.slice(0);
974
-
975
- if (this.defaultConfig.people_enabled) selected_sets.push(_people);
976
- if (this.defaultConfig.nature_enabled) selected_sets.push(_nature);
977
- if (this.defaultConfig.objects_enabled) selected_sets.push(_objects);
978
- if (this.defaultConfig.places_enabled) selected_sets.push(_places);
979
- if (this.defaultConfig.symbols_enabled) selected_sets.push(_symbols);
980
- if (this.defaultConfig.emoticons_enabled) selected_sets.push(_emoticons);
981
-
982
- // Check if an element was not passed.
983
- if(typeof el === 'undefined'){
984
- // Check if an element was configured. If not, default to the body.
985
- if (this.defaultConfig.only_crawl_id) {
986
- el = document.getElementById(this.defaultConfig.only_crawl_id);
987
- } else {
988
- el = document.body;
989
- }
990
- };
991
-
992
- // Iterate through selected icon sets
993
- for (var index = 0; index < selected_sets.length; index++) {
994
- // Iterate through all regexes
995
- var r;
996
- while (r = selected_sets[index].shift()) {
997
- // Find and replace matches with <div> tags
998
- findText(el, r[0], function (node, match) {
999
- var wrap = document.createElement(this.emojify.defaultConfig.emojify_tag_type);
1000
- wrap.setAttribute('class', r[1]);
1001
- // wrap.setAttribute('alt', ':' + r[1].replace(/emojify /g, '') + ':');
1002
- wrap.setAttribute('title', ':' + r[1].replace(/emojify /g, '') + ':');
1003
- node.splitText(match.index);
1004
- node.nextSibling.nodeValue = node.nextSibling.nodeValue.substr(match[0].length, node.nextSibling.nodeValue.length);
1005
- wrap.appendChild(node.splitText(match.index));
1006
- node.parentNode.insertBefore(wrap, node.nextSibling);
1007
- });
1008
- }
1009
- }
1010
- }
1011
- };
1012
- })();
1013
-
1014
- global.emojify = emojify;
1015
-
1016
- })(this);