emoji 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/COPYING +18 -0
  2. data/Changelog +5 -0
  3. data/LICENSE +674 -0
  4. data/README +787 -0
  5. data/lib/emoji.rb +3206 -0
  6. metadata +59 -0
data/README ADDED
@@ -0,0 +1,787 @@
1
+ = Emoji Ruby
2
+
3
+ Quickly access emoji Unicode characters across all 4 implementations in the private-use character space.
4
+
5
+ == An Overview
6
+
7
+ From Wikipedia:
8
+ "Emoji is the Japanese term for the picture characters or emoticons used in Japanese wireless messages and webpages."
9
+
10
+ They are the tiny little pictures that gained quite a bit of attention outside of Japan once they were included in the iPhone 2.2 firmware. Sounds awesome right? Wrong.
11
+
12
+ There are 3 carriers (NTT DoCoMo, SoftBank & Au by KDDI) who’ve all created they own set of emoji glyphs in differing areas of the private-use range Unicode character space. Basic emoji supports 176 glyphs plus an additional 76 for C-HTML 4.0 for a total of 252. The iPhone—which uses the SoftBank implementation—supports 471 emoji glyphs and to top it off, Apple and Google have been working on a standards proposal for inclusion in ISO/IEC 10646 which proposes 722 glyphs in total. Confused yet? Right then.
13
+
14
+ With millions of mobile phones supporting emoji & Internet connections, web developers want to take advantage of the extended glyphs in the data they send to the mobile devices but in the Ruby community there doesn’t seem to be a clear library that implements all 4 standards. Enter the Emoji for Ruby.
15
+
16
+ I’ve based the methods names off the Apple + Google Emoji encoding proposal (see chart at: http://www.bitcontrol.org/emoji-ruby) because I believe it has a fighting chance of being adopted (...and I’m biased).
17
+
18
+ == Installing Emoji Ruby
19
+
20
+ You may get the latest stable version from RubyForge.
21
+
22
+ $ gem install emoji
23
+
24
+ Emoji Ruby is still under active development, you can get the latest source from http://emoji.rubyforge.org
25
+
26
+ == Specifics
27
+
28
+ The Emoji Ruby Homepage is hosted on RubyForge at: http://emoji.rubyforge.org and a nice emoji/unicode table for the iPhone is at: http://www.bitcontrol.org/emoji-ruby
29
+
30
+
31
+ === Examples
32
+
33
+ To create an emoji instance:
34
+
35
+ require 'emoji'
36
+
37
+ e = Emoji.create(:iphone)
38
+
39
+ Other supported character mappings include:
40
+
41
+ require 'emoji'
42
+
43
+ softbank_emoji = Emoji.create(:softbank)
44
+ iphone_emoji = Emoji.create(:iphone) #Same character space impl as SoftBank
45
+ ntt_docomo_emoji = Emoji.create(:docomo)
46
+ kddi_emoji = Emoji.create(:kddi)
47
+ au_emoji = Emoji.create(:au) #Synonym for KDDI
48
+ apple_google_emoji = Emoji.create(:google)
49
+
50
+
51
+ Returning an Emoji character:
52
+
53
+ require 'emoji'
54
+
55
+ cloud = Emoji.create(:iphone).cloud
56
+ puts cloud
57
+
58
+ # Or...
59
+
60
+ e = Emoji.create(:softbank)
61
+
62
+ puts "Yo... I'll be there shortly—stopping at #{e.atm}"
63
+
64
+ === List of all the emoji methods implemented
65
+
66
+ black_sun_with_rays
67
+ cloud
68
+ umbrella_with_rain_drops
69
+ snowman_without_snow
70
+ high_voltage_sign
71
+ cyclone
72
+ foggy
73
+ closed_umbrella
74
+ night_with_stars
75
+ sunrise_over_mountains
76
+ sunrise
77
+ cityscape_at_dusk
78
+ sunset_over_buildings
79
+ rainbow
80
+ snowflake
81
+ sun_behind_cloud
82
+ bridge_at_night
83
+ new_moon_symbol
84
+ waxing_gibbous_moon_symbol
85
+ first_quarter_moon_symbol
86
+ crescent_moon
87
+ full_moon_symbol
88
+ first_quarter_moon_with_face
89
+ soon_with_right_arrow_above
90
+ on_with_double_pointing_arrow_above
91
+ end_with_left_arrow_above
92
+ hourglass_with_flowing_sand
93
+ hourglass
94
+ watch
95
+ clock_face_one_oclock
96
+ clock_face_two_oclock
97
+ clock_face_three_oclock
98
+ clock_face_four_oclock
99
+ clock_face_five_oclock
100
+ clock_face_six_oclock
101
+ clock_face_seven_oclock
102
+ clock_face_eight_oclock
103
+ clock_face_nine_oclock
104
+ clock_face_ten_oclock
105
+ clock_face_eleven_oclock
106
+ clock_face_twelve_oclock
107
+ alarm_clock
108
+ aries
109
+ taurus
110
+ gemini
111
+ cancer
112
+ leo
113
+ virgo
114
+ libra
115
+ scorpius
116
+ sagittarius
117
+ capricorn
118
+ aquarius
119
+ pisces
120
+ ophiuchus
121
+ water_wave
122
+ earth_globe_asia_australia
123
+ volcano
124
+ milky_way
125
+ four_leaf_clover
126
+ tulip
127
+ seedling
128
+ maple_leaf
129
+ cherry_blossom
130
+ rose
131
+ fallen_leaf
132
+ leaf_fluttering_in_wind
133
+ hibiscus
134
+ sunflower
135
+ palm_tree
136
+ cactus
137
+ ear_of_rice
138
+ ear_of_maize
139
+ mushroom
140
+ chestnut
141
+ blossom
142
+ herb
143
+ cherries
144
+ banana
145
+ apple_1
146
+ tangerine
147
+ strawberry
148
+ watermelon
149
+ tomato
150
+ aubergine
151
+ melon
152
+ pineapple
153
+ grapes
154
+ peach
155
+ apple_2
156
+ eyes
157
+ ear
158
+ nose
159
+ mouth
160
+ tongue
161
+ lipstick
162
+ nail_care
163
+ face_massage
164
+ haircut
165
+ barber_pole
166
+ bust_in_silhouette
167
+ boys_head
168
+ girls_head
169
+ mans_head
170
+ womans_head
171
+ family
172
+ couple
173
+ police_officer
174
+ woman_with_bunny_ears
175
+ bride_with_veil
176
+ western_person
177
+ man_with_gua_pi_mao
178
+ man_with_turban
179
+ older_man
180
+ older_woman
181
+ baby
182
+ construction_worker
183
+ princess
184
+ ogre
185
+ goblin
186
+ ghost
187
+ cherub
188
+ extraterrestrial_alien
189
+ alien_monster
190
+ imp
191
+ skull
192
+ information_desk_person
193
+ guardsman
194
+ dancer
195
+ dog_face
196
+ cat_face
197
+ snail
198
+ baby_chick
199
+ front_facing_baby_chick
200
+ hatching_chick
201
+ penguin
202
+ fish
203
+ horse_face
204
+ pig_face
205
+ tiger_face
206
+ bear_face
207
+ mouse_face
208
+ spouting_whale
209
+ monkey_face
210
+ octopus
211
+ spiral_shell
212
+ dolphin
213
+ bird
214
+ tropical_fish
215
+ hamster_face
216
+ bug
217
+ elephant
218
+ koala
219
+ monkey
220
+ sheep
221
+ wolf_face
222
+ cow_face
223
+ rabbit_face
224
+ snake
225
+ chicken
226
+ boar
227
+ camel
228
+ frog_face
229
+ poodle
230
+ blowfish
231
+ ant
232
+ paw_prints
233
+ turtle
234
+ dragon_face
235
+ panda_face
236
+ pig_nose
237
+ honeybee
238
+ ladybug
239
+ angry_face
240
+ anguished_face
241
+ astonished_face
242
+ disappointed_face
243
+ dizzy_face
244
+ exasperated_face
245
+ expressionless_face
246
+ face_with_heart_shaped_eyes
247
+ face_with_look_of_triumph
248
+ winking_face_with_stuck_out_tongue
249
+ face_with_stuck_out_tongue
250
+ face_savoring_delicious_food
251
+ face_throwing_a_kiss
252
+ face_kissing
253
+ face_with_mask
254
+ flushed_face
255
+ happy_face_with_open_mouth
256
+ happy_face_with_open_mouth_and_cold_sweat
257
+ happy_face_with_open_mouth_and_closed_eyes
258
+ happy_face_with_grin
259
+ happy_and_crying_face
260
+ happy_face_with_wide_mouth_and_raised_eyebrows
261
+ white_smiling_face
262
+ happy_face_with_open_mouth_and_raised_eyebrows
263
+ crying_face
264
+ loudly_crying_face
265
+ fearful_face
266
+ persevering_face
267
+ pouting_face
268
+ relieved_face
269
+ confounded_face
270
+ pensive_face
271
+ face_screaming_in_fear
272
+ sleepy_face
273
+ smirking_face
274
+ face_with_cold_sweat
275
+ disappointed_but_relieved_face
276
+ tired_face
277
+ winking_face
278
+ cat_face_with_open_mouth
279
+ happy_cat_face_with_grin
280
+ happy_and_crying_cat_face
281
+ cat_face_kissing
282
+ cat_face_with_heart_shaped_eyes
283
+ crying_cat_face
284
+ pouting_cat_face
285
+ cat_face_with_tightly_closed_lips
286
+ anguished_cat_face
287
+ face_with_no_good_gesture
288
+ face_with_ok_gesture
289
+ person_bowing_deeply
290
+ see_no_evil_monkey
291
+ speak_no_evil_monkey
292
+ hear_no_evil_monkey
293
+ person_raising_one_hand
294
+ person_raising_both_hands_in_cheers
295
+ person_frowning
296
+ person_with_pouting_face
297
+ person_with_folded_hands
298
+ house_building
299
+ house_with_yard
300
+ office_building
301
+ japanese_post_office
302
+ hospital
303
+ bank
304
+ atm
305
+ hotel
306
+ love_hotel
307
+ convenience_store
308
+ school
309
+ church
310
+ fountain
311
+ department_store
312
+ japanese_castle
313
+ western_castle
314
+ factory
315
+ anchor
316
+ izakaya_lantern
317
+ emoji_compatibility_symbol_1
318
+ emoji_compatibility_symbol_2
319
+ emoji_compatibility_symbol_3
320
+ emoji_compatibility_symbol_4
321
+ emoji_compatibility_symbol_5
322
+ wrench
323
+ hammer
324
+ nut_and_bolt
325
+ mans_shoe
326
+ sneaker
327
+ high_heeled_shoe
328
+ womans_sandal
329
+ womans_boots
330
+ eyeglasses
331
+ t_shirt
332
+ jeans
333
+ crown
334
+ necktie
335
+ womans_hat
336
+ dress
337
+ kimono
338
+ bikini
339
+ womans_clothes
340
+ purse
341
+ money_bag
342
+ currency_exchange
343
+ chart_with_upwards_trend_and_yen_symbol
344
+ heavy_dollar_sign
345
+ credit_card
346
+ banknote_with_yen_sign
347
+ banknote_with_dollar_sign
348
+ money_with_wings
349
+ emoji_compatibility_symbol_6
350
+ emoji_compatibility_symbol_7
351
+ emoji_compatibility_symbol_8
352
+ emoji_compatibility_symbol_9
353
+ emoji_compatibility_symbol_10
354
+ emoji_compatibility_symbol_11
355
+ emoji_compatibility_symbol_12
356
+ emoji_compatibility_symbol_13
357
+ emoji_compatibility_symbol_14
358
+ emoji_compatibility_symbol_15
359
+ camera
360
+ handbag
361
+ pouch
362
+ bell
363
+ door
364
+ dung
365
+ pistol
366
+ fire
367
+ crystal_ball
368
+ six_pointed_star_with_middle_dot
369
+ video_camera
370
+ knife
371
+ flashlight
372
+ battery
373
+ scroll
374
+ electric_plug
375
+ book_1
376
+ book_2
377
+ book_3
378
+ vertical_closed_book
379
+ books
380
+ name_badge
381
+ bath
382
+ restroom
383
+ toilet
384
+ water_closet
385
+ syringe
386
+ pill
387
+ negative_squared_latin_capital_letter_a
388
+ negative_squared_latin_capital_letter_b
389
+ negative_squared_ab
390
+ negative_squared_latin_capital_letter_o
391
+ ribbon
392
+ wrapped_present
393
+ birthday_cake
394
+ christmas_tree
395
+ santa_claus
396
+ crossed_flags
397
+ fireworks
398
+ balloon
399
+ party_popper
400
+ pine_decoration
401
+ girls_doll_festival
402
+ graduation_cap
403
+ school_satchel
404
+ carp_streamer
405
+ firework_sparkler
406
+ wind_chime
407
+ jack_o_lantern
408
+ confetti_ball
409
+ tanabata_tree
410
+ moon_viewing_ceremony
411
+ pager
412
+ black_telephone
413
+ telephone_receiver
414
+ mobile_phone
415
+ phone_with_arrow
416
+ memo
417
+ fax
418
+ envelope
419
+ incoming_envelope
420
+ envelope_with_arrow
421
+ mailbox
422
+ mailbox_with_raised_flag
423
+ postbox
424
+ public_address_loudspeaker
425
+ cheering_megaphone
426
+ satellite_antenna
427
+ speech_balloon
428
+ outbox_tray
429
+ inbox_tray
430
+ package
431
+ latin_capital_letters_input_symbol
432
+ latin_small_letters_input_symbol
433
+ numbers_input_symbol
434
+ symbols_input_symbol
435
+ latin_letters_input_symbol
436
+ black_nib
437
+ seat
438
+ computer
439
+ pencil
440
+ paperclip
441
+ briefcase
442
+ mini_disc
443
+ floppy_disk
444
+ black_scissors
445
+ round_pushpin
446
+ page_with_curl
447
+ page_facing_up
448
+ calendar
449
+ file_folder
450
+ open_file_folder
451
+ notebook
452
+ open_book
453
+ notebook_with_decorative_cover
454
+ clipboard
455
+ tear_off_calendar
456
+ bar_chart
457
+ chart_with_upwards_trend
458
+ chart_with_downwards_trend
459
+ card_index
460
+ pushpin
461
+ ledger
462
+ straight_ruler
463
+ triangular_ruler
464
+ bookmark_tabs
465
+ footprints
466
+ running_shirt_with_sash
467
+ baseball
468
+ flag_in_hole
469
+ tennis
470
+ soccer_ball
471
+ skiing
472
+ basketball
473
+ checkered_flag
474
+ snowboarder
475
+ runner
476
+ surfer
477
+ trophy
478
+ horse_racing
479
+ american_football
480
+ swimmer
481
+ train
482
+ subway
483
+ circled_latin_capital_letter_m
484
+ high_speed_train
485
+ high_speed_train_with_bullet_nose
486
+ automobile_1
487
+ recreational_vehicle
488
+ bus_2
489
+ bus_stop
490
+ ship
491
+ airplane
492
+ sailboat
493
+ bicycle
494
+ station
495
+ rocket
496
+ speedboat
497
+ taxi_1
498
+ pedestrian
499
+ truck
500
+ fire_engine
501
+ ambulance
502
+ police_car_1
503
+ fuel_pump
504
+ negative_squared_latin_capital_letter_p
505
+ horizontal_traffic_light
506
+ construction_sign
507
+ police_cars_revolving_light
508
+ hot_springs
509
+ tent
510
+ carousel_horse
511
+ ferris_wheel
512
+ roller_coaster
513
+ fishing
514
+ microphone
515
+ movies
516
+ cinema
517
+ headphone
518
+ art
519
+ top_hat
520
+ event
521
+ ticket
522
+ movie_shooting_clapboard
523
+ performing_arts
524
+ video_game
525
+ mahjong_tile_red_dragon
526
+ direct_hit
527
+ slot_machine
528
+ billiards
529
+ game_die
530
+ bowling
531
+ flower_playing_cards
532
+ playing_card_black_joker
533
+ musical_note
534
+ multiple_musical_notes
535
+ saxophone
536
+ guitar
537
+ musical_keyboard
538
+ trumpet
539
+ violin
540
+ musical_score
541
+ part_alternation_mark
542
+ television
543
+ optical_disk
544
+ dvd
545
+ radio
546
+ video_cassette_tape
547
+ speaker_with_three_sound_waves
548
+ newspaper
549
+ kiss_mark
550
+ love_letter
551
+ ring
552
+ gem_stone
553
+ kiss
554
+ bouquet
555
+ couple_with_heart
556
+ wedding
557
+ hash_key
558
+ keycap_1
559
+ keycap_2
560
+ keycap_3
561
+ keycap_4
562
+ keycap_5
563
+ keycap_6
564
+ keycap_7
565
+ keycap_8
566
+ keycap_9
567
+ keycap_0
568
+ keycap_ten
569
+ antenna_with_bars
570
+ vibration_mode
571
+ mobile_phone_off
572
+ hamburger
573
+ rice_ball
574
+ shortcake
575
+ steaming_bowl
576
+ bread
577
+ cooking
578
+ soft_ice_cream
579
+ french_fries
580
+ dumpling
581
+ rice_cracker
582
+ cooked_rice
583
+ spaghetti
584
+ curry_and_rice
585
+ seafood_casserole
586
+ sushi
587
+ lunchbox
588
+ pot_of_food
589
+ shaved_ice
590
+ meat_on_bone
591
+ fish_cake_with_swirl_design
592
+ roasted_sweet_potato
593
+ slice_of_pizza
594
+ poultry_leg
595
+ ice_cream
596
+ doughnut
597
+ cookie
598
+ chocolate_bar
599
+ candy
600
+ lollipop
601
+ custard
602
+ honey_pot
603
+ fried_shrimp
604
+ fork_and_knife
605
+ hot_beverage
606
+ cocktail_glass
607
+ beer_mug
608
+ teacup_without_handle
609
+ sake_bottle_and_cup
610
+ wine_glass
611
+ clinking_beer_mugs
612
+ tropical_drink
613
+ north_east_arrow
614
+ south_east_arrow
615
+ north_west_arrow
616
+ south_west_arrow
617
+ arrow_pointing_rightwards_then_curving_upwards
618
+ arrow_pointing_rightwards_then_curving_downwards
619
+ left_right_arrow
620
+ up_down_arrow
621
+ upwards_black_arrow
622
+ downwards_black_arrow
623
+ black_rightwards_arrow
624
+ leftwards_black_arrow
625
+ black_right_pointing_triangle
626
+ black_left_pointing_triangle
627
+ black_right_pointing_double_triangle
628
+ black_left_pointing_double_triangle
629
+ black_up_pointing_double_triangle
630
+ black_down_pointing_double_triangle
631
+ up_pointing_triangle_1
632
+ down_pointing_triangle_1
633
+ up_pointing_small_triangle_1
634
+ down_pointing_small_triangle_1
635
+ heavy_exclamation_mark_ornament
636
+ exclamation_question_mark
637
+ double_exclamation_mark
638
+ black_question_mark_ornament
639
+ white_question_mark_ornament
640
+ white_exclamation_mark_ornament
641
+ wavy_dash
642
+ looped_length_mark
643
+ heavy_black_heart
644
+ beating_heart
645
+ broken_heart
646
+ two_hearts
647
+ sparkling_heart
648
+ growing_heart
649
+ heart_with_arrow
650
+ heart_1
651
+ heart_2
652
+ heart_3
653
+ heart_4
654
+ heart_with_ribbon
655
+ revolving_hearts
656
+ heart_decoration
657
+ black_heart_suit
658
+ black_spade_suit
659
+ black_diamond_suit
660
+ black_club_suit
661
+ smoking_symbol
662
+ no_smoking_symbol
663
+ wheelchair_symbol
664
+ japanese_symbol_for_beginner
665
+ trident_emblem
666
+ triangular_flag_on_post
667
+ warning_sign
668
+ no_entry
669
+ black_universal_recycling_symbol
670
+ mens_symbol
671
+ womens_symbol
672
+ baby_symbol
673
+ heavy_large_circle
674
+ cross_mark
675
+ negative_squared_cross_mark
676
+ no_entry_sign
677
+ heavy_check_mark
678
+ white_heavy_check_mark
679
+ link_symbol
680
+ em_space
681
+ en_space
682
+ four_per_em_space
683
+ free_sign
684
+ no_one_under_eighteen_sign
685
+ ok_sign
686
+ no_good_sign
687
+ copyright_sign
688
+ registered_sign
689
+ trade_mark_sign
690
+ vs_sign
691
+ new_sign
692
+ up_sign
693
+ cool_sign
694
+ top_with_up_pointing_triangle_sign
695
+ information_source
696
+ sos_sign
697
+ squared_katakana_koko
698
+ squared_katakana_sa
699
+ squared_cjk_unified_ideograph_7981
700
+ squared_cjk_unified_ideograph_7a7a
701
+ squared_cjk_unified_ideograph_5408
702
+ squared_cjk_unified_ideograph_6e80
703
+ squared_cjk_unified_ideograph_6709
704
+ squared_cjk_unified_ideograph_7121
705
+ squared_cjk_unified_ideograph_6708
706
+ squared_cjk_unified_ideograph_7533
707
+ squared_cjk_unified_ideograph_5272
708
+ squared_cjk_unified_ideograph_6307
709
+ squared_cjk_unified_ideograph_55b6
710
+ circled_ideograph_secret
711
+ circled_ideograph_congratulation
712
+ circled_ideograph_advantage
713
+ circled_ideograph_accept
714
+ heavy_plus_sign
715
+ heavy_minus_sign
716
+ heavy_multiplication_x
717
+ heavy_division_sign
718
+ diamond_shape_with_a_dot_inside
719
+ electric_light_bulb
720
+ anger_sign
721
+ bomb
722
+ sleeping_sign
723
+ collision_symbol
724
+ splashing_sweat
725
+ drip
726
+ dash_symbol
727
+ flexed_bicep
728
+ dizzy_symbol
729
+ sparkles
730
+ eight_pointed_black_star
731
+ eight_spoked_asterisk
732
+ medium_white_circle
733
+ medium_black_circle
734
+ large_circle_1
735
+ large_circle_2
736
+ black_rounded_square
737
+ white_rounded_square
738
+ white_medium_star
739
+ glowing_star
740
+ shooting_star
741
+ white_large_square
742
+ black_large_square
743
+ white_small_square
744
+ black_small_square
745
+ white_medium_small_square
746
+ black_medium_small_square
747
+ white_medium_square
748
+ black_medium_square
749
+ large_diamond_1
750
+ large_diamond_2
751
+ small_diamond_1
752
+ small_diamond_2
753
+ sparkle
754
+ white_flower
755
+ hundred_points_symbol
756
+ identification_sign
757
+ clear_sign
758
+ leftwards_arrow_with_hook
759
+ rightwards_arrow_with_hook
760
+ left_pointing_magnifying_glass
761
+ right_pointing_magnifying_glass
762
+ lock
763
+ open_lock
764
+ lock_with_ink_pen
765
+ closed_lock_with_key
766
+ key
767
+ ballot_box_with_check
768
+ radio_button
769
+ back_with_left_arrow_above
770
+ bookmark
771
+ double_clockwise_open_circle_arrows
772
+ e_mail_symbol
773
+ raised_fist
774
+ raised_hand
775
+ victory_hand
776
+ fisted_hand
777
+ thumbs_up_sign
778
+ white_up_pointing_index
779
+ white_up_pointing_backhand_index
780
+ white_down_pointing_backhand_index
781
+ white_left_pointing_backhand_index
782
+ white_right_pointing_backhand_index
783
+ waving_hand
784
+ clapping_hands
785
+ ok_hand_sign
786
+ thumbs_down_sign
787
+ open_hands