emojidex-converter 0.0.1

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.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +23 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +11 -0
  5. data/Gemfile +19 -0
  6. data/Guardfile +12 -0
  7. data/LICENSE.md +3 -0
  8. data/README.md +5 -0
  9. data/Rakefile +8 -0
  10. data/emojidex-converter.gemspec +22 -0
  11. data/lib/emojidex/converter.rb +40 -0
  12. data/lib/emojidex/preprocessor.rb +25 -0
  13. data/lib/emojidex_converter.rb +4 -0
  14. data/spec/converter_spec.rb +54 -0
  15. data/spec/spec_helper.rb +11 -0
  16. data/spec/support/collection/aubergine.svg +160 -0
  17. data/spec/support/collection/car.svg +78 -0
  18. data/spec/support/collection/emoji.json +30 -0
  19. data/spec/support/collection/heartbeat/0.svg +121 -0
  20. data/spec/support/collection/heartbeat/1.svg +126 -0
  21. data/spec/support/collection/heartbeat/2.svg +128 -0
  22. data/spec/support/collection/heartbeat/3.svg +128 -0
  23. data/spec/support/collection/heartbeat/4.svg +121 -0
  24. data/spec/support/collection/heartbeat/5.svg +128 -0
  25. data/spec/support/collection/heartbeat/6.svg +126 -0
  26. data/spec/support/collection/heartbeat/7.svg +126 -0
  27. data/spec/support/collection/heartbeat/animation.json +17 -0
  28. data/spec/support/collection/heartbeat/heartbeat.svg +29 -0
  29. data/spec/support/collection/kiss.svg +2375 -0
  30. data/spec/support/collection/kiss/0.svg +177 -0
  31. data/spec/support/collection/kiss/1.svg +177 -0
  32. data/spec/support/collection/kiss/10.svg +293 -0
  33. data/spec/support/collection/kiss/11.svg +235 -0
  34. data/spec/support/collection/kiss/12.svg +235 -0
  35. data/spec/support/collection/kiss/13.svg +235 -0
  36. data/spec/support/collection/kiss/14.svg +177 -0
  37. data/spec/support/collection/kiss/15.svg +177 -0
  38. data/spec/support/collection/kiss/2.svg +177 -0
  39. data/spec/support/collection/kiss/3.svg +235 -0
  40. data/spec/support/collection/kiss/4.svg +235 -0
  41. data/spec/support/collection/kiss/5.svg +235 -0
  42. data/spec/support/collection/kiss/6.svg +293 -0
  43. data/spec/support/collection/kiss/7.svg +235 -0
  44. data/spec/support/collection/kiss/8.svg +235 -0
  45. data/spec/support/collection/kiss/9.svg +235 -0
  46. data/spec/support/collection/kiss/animation.json +25 -0
  47. data/spec/support/collection/kiss/animation.json~ +25 -0
  48. metadata +208 -0
@@ -0,0 +1,235 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 15.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="_x30_6_10_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve">
6
+ <g>
7
+ <g>
8
+ <g>
9
+ <path fill="#FFB997" d="M38.387,8.059c-2.125,5.375,3.375,11.375,2.125,14.375s-7.875,4.375-7.875,4.375
10
+ s-2.125,2.375,1.125,6.625c0,0-5.406,6.711,10.718,18.589c7.145,5.247,21.196-5.503,21.196-5.503V8.059H38.387z"/>
11
+ <path fill="none" stroke="#190902" stroke-width="3" stroke-miterlimit="10" d="M38.387,8.059
12
+ c-2.125,5.375,3.375,11.375,2.125,14.375s-7.875,4.375-7.875,4.375s-2.125,2.375,1.125,6.625c0,0-5.406,6.711,10.718,18.589
13
+ c7.145,5.247,21.196-5.503,21.196-5.503V8.059H38.387z"/>
14
+ </g>
15
+ <defs>
16
+ <filter id="Adobe_OpacityMaskFilter" filterUnits="userSpaceOnUse" x="30.455" y="6.559" width="36.721" height="48.408">
17
+
18
+ <feColorMatrix type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" color-interpolation-filters="sRGB" result="source"/>
19
+ </filter>
20
+ </defs>
21
+ <mask maskUnits="userSpaceOnUse" x="30.455" y="6.559" width="36.721" height="48.408" id="SVGID_1_">
22
+ <g filter="url(#Adobe_OpacityMaskFilter)">
23
+
24
+ <image overflow="visible" width="42" height="53" xlink:href="data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/7AARRHVja3kAAQAEAAAAHgAA/+4AIUFkb2JlAGTAAAAAAQMA
25
+ EAMCAwYAAAG6AAACIgAAArf/2wCEABALCwsMCxAMDBAXDw0PFxsUEBAUGx8XFxcXFx8eFxoaGhoX
26
+ Hh4jJSclIx4vLzMzLy9AQEBAQEBAQEBAQEBAQEABEQ8PERMRFRISFRQRFBEUGhQWFhQaJhoaHBoa
27
+ JjAjHh4eHiMwKy4nJycuKzU1MDA1NUBAP0BAQEBAQEBAQEBAQP/CABEIADUAKgMBIgACEQEDEQH/
28
+ xACFAAADAQEBAAAAAAAAAAAAAAAABQcGBAEBAQAAAAAAAAAAAAAAAAAAAAAQAAAGAgEEAwAAAAAA
29
+ AAAAAAECAwQFBgAQBzASFTURExYRAAIABQMCBQUAAAAAAAAAAAECABARIQMxQRJRE2GhcjMEcZEi
30
+ YhQSAQAAAAAAAAAAAAAAAAAAADD/2gAMAwEAAhEDEQAAAJ++Q0UWlMCOI6hLzqp2TqZ6AZKWVOWD
31
+ 6uwXdlEObmEct1OWD0B+vAXgH//aAAgBAgABBQDqf//aAAgBAwABBQDqf//aAAgBAQABBQDIurrS
32
+ CYceOBAePHABL1lWMS1x85Kshq+plCPxjHuX6lOrpopDV+9ZlDMBnpQAC6v3rMqL8jOSbrEWS1fj
33
+ B47CmMQ1Tt3xiT9soR5Ns2pLTZSSA6J39zT9N9L/AMvv/9oACAECAgY/AE//2gAIAQMCBj8AT//a
34
+ AAgBAQEGPwCFcMRXpHuN9hHuN5Q2RmJ49Z9s3bGaGeRgNpdvAtb0JgvkNcj3Y+M8npk2NhUChB2v
35
+ AA0nk9MgHagelPrCupqCJ5B+sgymjC4IhfjfKajCwJ3EBg4oYLM4t4w2DF+SmxbaY4V5bU1gdqvD
36
+ blrB/s7nGp108p//2Q==" transform="matrix(1 0 0 1 28 4)">
37
+ </image>
38
+ </g>
39
+ </mask>
40
+ <g opacity="0.36" mask="url(#SVGID_1_)">
41
+ <path fill="#FF1744" d="M38.387,8.059c-2.125,5.375,3.375,11.375,2.125,14.375s-7.875,4.375-7.875,4.375
42
+ s-2.125,2.375,1.125,6.625c0,0-5.406,6.711,10.718,18.589c7.145,5.247,21.196-5.503,21.196-5.503V8.059H38.387z"/>
43
+ <path fill="none" stroke="#FF1744" stroke-width="3" stroke-miterlimit="10" d="M38.387,8.059
44
+ c-2.125,5.375,3.375,11.375,2.125,14.375s-7.875,4.375-7.875,4.375s-2.125,2.375,1.125,6.625c0,0-5.406,6.711,10.718,18.589
45
+ c7.145,5.247,21.196-5.503,21.196-5.503V8.059H38.387z"/>
46
+ </g>
47
+ </g>
48
+ <polygon fill="#160201" points="44.987,18.434 51.624,22.999 45.605,14.521 "/>
49
+ <g>
50
+ <defs>
51
+ <filter id="Adobe_OpacityMaskFilter_1_" filterUnits="userSpaceOnUse" x="46.498" y="25.355" width="17.814" height="11.5">
52
+ <feFlood style="flood-color:white;flood-opacity:1" result="back"/>
53
+ <feBlend in="SourceGraphic" in2="back" mode="normal"/>
54
+ </filter>
55
+ </defs>
56
+ <mask maskUnits="userSpaceOnUse" x="46.498" y="25.355" width="17.814" height="11.5" id="SVGID_2_">
57
+ <g filter="url(#Adobe_OpacityMaskFilter_1_)">
58
+
59
+ <image overflow="visible" width="23" height="16" xlink:href="data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/7AARRHVja3kAAQAEAAAAHgAA/+4AIUFkb2JlAGTAAAAAAQMA
60
+ EAMCAwYAAAF/AAABoQAAAej/2wCEABALCwsMCxAMDBAXDw0PFxsUEBAUGx8XFxcXFx8eFxoaGhoX
61
+ Hh4jJSclIx4vLzMzLy9AQEBAQEBAQEBAQEBAQEABEQ8PERMRFRISFRQRFBEUGhQWFhQaJhoaHBoa
62
+ JjAjHh4eHiMwKy4nJycuKzU1MDA1NUBAP0BAQEBAQEBAQEBAQP/CABEIABAAFwMBIgACEQEDEQH/
63
+ xABwAAEBAQAAAAAAAAAAAAAAAAAGAAEBAQAAAAAAAAAAAAAAAAAAAAAQAAIDAQEAAAAAAAAAAAAA
64
+ AAMFEAIEBgERAAIBAwQDAAAAAAAAAAAAAAECEQASAyFRcgRBcSISAQAAAAAAAAAAAAAAAAAAABD/
65
+ 2gAMAwEAAhEDEQAAACSU4lC1sf/aAAgBAgABBQCP/9oACAEDAAEFAI//2gAIAQEAAQUATpiMyE4Q
66
+ NQ6VBc+9I59WEv3gLC1N76GP/9oACAECAgY/AD//2gAIAQMCBj8AP//aAAgBAQEGPwCJtQGPdXgm
67
+ Y3rF1GMjK6orcjbX0JQmdPFWANMbGsXbIhcORXA4kGv/2Q==" transform="matrix(1 0 0 1 44 23)">
68
+ </image>
69
+ </g>
70
+ </mask>
71
+ <g mask="url(#SVGID_2_)">
72
+ <linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="50.1904" y1="23.7427" x2="62.397" y2="40.976">
73
+ <stop offset="0" style="stop-color:#FFA67F"/>
74
+ <stop offset="0.0969" style="stop-color:#FF967B"/>
75
+ <stop offset="0.3655" style="stop-color:#FF7170"/>
76
+ <stop offset="0.6143" style="stop-color:#FF5568"/>
77
+ <stop offset="0.8336" style="stop-color:#FF4564"/>
78
+ <stop offset="1" style="stop-color:#FF3F62"/>
79
+ </linearGradient>
80
+ <ellipse fill="url(#SVGID_3_)" cx="55.405" cy="31.104" rx="8.907" ry="5.751"/>
81
+ </g>
82
+ </g>
83
+ <path fill="#3E3A39" stroke="#000000" stroke-width="3" d="M38.082-3.604L26.207,1.521l4.837,1.052c0,0-4.212,4.073-1.837,10.448
84
+ l1.837-2.5c0,0,1.532,4.032,5.4,6.875l0.638-6.375c0,0,10.725,6.375,15.625,9l0.5-7c0,0,4.494,13.75,6,18.085l5.125-8.835
85
+ l2.375,0.25L66.582-3.604H38.082z"/>
86
+ <path fill="#160201" d="M43.565,21.921l0.35,3.396c0,0,3.108,2.328,6.565,0.839C50.48,26.157,47.914,25.355,43.565,21.921z"/>
87
+ </g>
88
+ <g>
89
+ <g>
90
+ <g>
91
+ <path fill="#FFB997" d="M25.435,7.396c2.125,5.375-1.65,12.039-0.4,15.039s5.502,3.019,5.502,3.019s2.104,2.404-0.023,6.443
92
+ c0,0,4.398,6.125-2.352,14.75c-14.264,18.227-37-4.625-37-4.625l8.708-33.961L25.435,7.396z"/>
93
+ <path fill="none" stroke="#3A0101" stroke-width="3" stroke-miterlimit="10" d="M25.435,7.396
94
+ c2.125,5.375-1.65,12.039-0.4,15.039s5.502,3.019,5.502,3.019s2.104,2.404-0.023,6.443c0,0,4.398,6.125-2.352,14.75
95
+ c-14.264,18.227-37-4.625-37-4.625l8.708-33.961L25.435,7.396z"/>
96
+ </g>
97
+ <defs>
98
+ <filter id="Adobe_OpacityMaskFilter_2_" filterUnits="userSpaceOnUse" x="-10.502" y="5.869" width="43.924" height="49.331">
99
+
100
+ <feColorMatrix type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" color-interpolation-filters="sRGB" result="source"/>
101
+ </filter>
102
+ </defs>
103
+ <mask maskUnits="userSpaceOnUse" x="-10.502" y="5.869" width="43.924" height="49.331" id="SVGID_4_">
104
+ <g filter="url(#Adobe_OpacityMaskFilter_2_)">
105
+
106
+ <image overflow="visible" width="49" height="55" xlink:href="data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/7AARRHVja3kAAQAEAAAAHgAA/+4AIUFkb2JlAGTAAAAAAQMA
107
+ EAMCAwYAAAHDAAACRAAAAwL/2wCEABALCwsMCxAMDBAXDw0PFxsUEBAUGx8XFxcXFx8eFxoaGhoX
108
+ Hh4jJSclIx4vLzMzLy9AQEBAQEBAQEBAQEBAQEABEQ8PERMRFRISFRQRFBEUGhQWFhQaJhoaHBoa
109
+ JjAjHh4eHiMwKy4nJycuKzU1MDA1NUBAP0BAQEBAQEBAQEBAQP/CABEIADcAMQMBIgACEQEDEQH/
110
+ xACFAAEBAAIDAQAAAAAAAAAAAAAABwUGAQIDBAEBAAAAAAAAAAAAAAAAAAAAABAAAAYCAwEBAAAA
111
+ AAAAAAAAAQIDBAUGABASFAdAMREAAQQAAwcDBQAAAAAAAAAAAQARAgMQMRIgIUFRgSITkaEEsdHS
112
+ MwUSAQAAAAAAAAAAAAAAAAAAAED/2gAMAwEAAhEDEQAAAJ/9/wAFIMR3pYkutWOOnAO1nlNnPYGI
113
+ kdynZogNnq8Jopubw9Tme7fJjGAdgzeTDA40AP/aAAgBAgABBQD4P//aAAgBAwABBQD4P//aAAgB
114
+ AQABBQDIuIcSZ0/PnJyj524yQpq7JIQEB15/HgDQAANWsxU44wiY2JJiopWmnWjtWSMNJR0lFOo1
115
+ TK627Mq1TBNDX7noaXAMo5E++QQEu/Q3CZiYyfOGK1dubdwRF43WDmUMlZlsyRnZU8m80TnyYPrM
116
+ hhpy2iWTcTC46//aAAgBAgIGPwAH/9oACAEDAgY/AAf/2gAIAQEBBj8ARjSWALEoE2SHQL9svQKV
117
+ hmSwRBzGeIukH1d3qt2Fkyz6SjI5kueuEa45zIA6quLMWGNlESxkCHCMLxudhIYUx4ROoqEBwGxE
118
+ xiGMg5wlZI7wwAQIybYFYPcZDdgLaJMRmOBQqvlpmGBBQMJguncKRMw7KVjvWD2/fEaH18NOfsh4
119
+ ab7Y8vHM/QJj/P8AkAc/FZ+Kf51dtceUoSiOr4//2Q==" transform="matrix(1 0 0 1 -13 3)">
120
+ </image>
121
+ </g>
122
+ </mask>
123
+ <g opacity="0.36" mask="url(#SVGID_4_)">
124
+ <path fill="#FF1744" d="M25.435,7.396c2.125,5.375-1.65,12.039-0.4,15.039s5.502,3.019,5.502,3.019s2.104,2.404-0.023,6.443
125
+ c0,0,4.398,6.125-2.352,14.75c-14.264,18.227-37-4.625-37-4.625l8.708-33.961L25.435,7.396z"/>
126
+ <path fill="none" stroke="#FF1744" stroke-width="3" stroke-miterlimit="10" d="M25.435,7.396
127
+ c2.125,5.375-1.65,12.039-0.4,15.039s5.502,3.019,5.502,3.019s2.104,2.404-0.023,6.443c0,0,4.398,6.125-2.352,14.75
128
+ c-14.264,18.227-37-4.625-37-4.625l8.708-33.961L25.435,7.396z"/>
129
+ </g>
130
+ </g>
131
+ <path fill="#8E480E" d="M21.823,14.016c0,0-3.604,1.261-5.823,2.135c-2.218,0.875-4.905,1.283-4.905,1.283s6.335-0.249,7.463-0.533
132
+ C19.685,16.618,21.823,14.016,21.823,14.016z"/>
133
+ <path fill="#160201" d="M22.152,21.189l-2.555,3.899c0,0-4.618,1.358-6.084-1.173C13.514,23.916,18.078,24.251,22.152,21.189z"/>
134
+ <g>
135
+ <defs>
136
+ <filter id="Adobe_OpacityMaskFilter_3_" filterUnits="userSpaceOnUse" x="4.218" y="26.344" width="16.482" height="10.354">
137
+ <feFlood style="flood-color:white;flood-opacity:1" result="back"/>
138
+ <feBlend in="SourceGraphic" in2="back" mode="normal"/>
139
+ </filter>
140
+ </defs>
141
+ <mask maskUnits="userSpaceOnUse" x="4.218" y="26.344" width="16.482" height="10.354" id="SVGID_5_">
142
+ <g filter="url(#Adobe_OpacityMaskFilter_3_)">
143
+
144
+ <image overflow="visible" width="21" height="15" xlink:href="data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/7AARRHVja3kAAQAEAAAAHgAA/+4AIUFkb2JlAGTAAAAAAQMA
145
+ EAMCAwYAAAGJAAABqQAAAfr/2wCEABALCwsMCxAMDBAXDw0PFxsUEBAUGx8XFxcXFx8eFxoaGhoX
146
+ Hh4jJSclIx4vLzMzLy9AQEBAQEBAQEBAQEBAQEABEQ8PERMRFRISFRQRFBEUGhQWFhQaJhoaHBoa
147
+ JjAjHh4eHiMwKy4nJycuKzU1MDA1NUBAP0BAQEBAQEBAQEBAQP/CABEIAA8AFQMBIgACEQEDEQH/
148
+ xAB5AAADAQAAAAAAAAAAAAAAAAAABQYBAQEAAAAAAAAAAAAAAAAAAAAAEAACAgIDAQAAAAAAAAAA
149
+ AAADBQIEEBQBExUGEQACAQIEBgMAAAAAAAAAAAABAhEAEiExAwRBYXGxMhSyEwUSAQAAAAAAAAAA
150
+ AAAAAAAAABD/2gAMAwEAAhEDEQAAAJh/PvyVMD//2gAIAQIAAQUAx//aAAgBAwABBQDH/9oACAEB
151
+ AAEFAEKLlpO38KAQfNJvorzOpO2/fzD33t//2gAIAQICBj8AP//aAAgBAwIGPwA//9oACAEBAQY/
152
+ AJZoQGIHGi6MQ0ZzXpTjPlyqdpt9TcITiNNGb4iip/M3S4ZtpOB2r7rG9iZstN3SM6//2Q==" transform="matrix(1 0 0 1 2 24)">
153
+ </image>
154
+ </g>
155
+ </mask>
156
+ <g mask="url(#SVGID_5_)">
157
+ <linearGradient id="SVGID_6_" gradientUnits="userSpaceOnUse" x1="7.6924" y1="24.7915" x2="18.8491" y2="40.5427">
158
+ <stop offset="0" style="stop-color:#FFA67F"/>
159
+ <stop offset="0.0969" style="stop-color:#FF967B"/>
160
+ <stop offset="0.3655" style="stop-color:#FF7170"/>
161
+ <stop offset="0.6143" style="stop-color:#FF5568"/>
162
+ <stop offset="0.8336" style="stop-color:#FF4564"/>
163
+ <stop offset="1" style="stop-color:#FF3F62"/>
164
+ </linearGradient>
165
+ <ellipse fill="url(#SVGID_6_)" cx="12.459" cy="31.521" rx="8.241" ry="5.177"/>
166
+ </g>
167
+ </g>
168
+ <path fill="#8E480E" stroke="#4C2101" stroke-width="2.8682" stroke-miterlimit="10" d="M5.829,17.044
169
+ c0,0-1.562,36.691,2.299,43.508c0,0-11.708-2.723-16.34-23.697l-3.375-24.492L5.829,17.044z"/>
170
+ <path fill="#8E480E" stroke="#4C2101" stroke-width="3" stroke-miterlimit="10" d="M19.695,3.521c0,0-7.395,24-13.145,28.75
171
+ s-11.25,5.75-11.25,5.75l1.302-40h19.448C16.051-1.979,18.59-1.479,19.695,3.521z"/>
172
+ <path fill="#8E480E" stroke="#4C2101" stroke-width="3" stroke-miterlimit="10" d="M17.533,2.896c0,0,5.505,11.875,11.505,15.5
173
+ c0,0,2.885-8.875,0-15c-2.189-4.649-4.481-6.5-4.481-6.5h-11.23L17.533,2.896z"/>
174
+ <path fill="#160201" d="M24.557,23.321c0,0-2.885,0.813-3.942-0.931l-1.308,2.192C19.307,24.582,22.807,25.121,24.557,23.321z"/>
175
+ <path fill="#160201" d="M17.833,24.658c3.21,0.784,3.213,0.637,4.319,0.795l-2.457-2.132L17.833,24.658z"/>
176
+ </g>
177
+ <g>
178
+ <g>
179
+ <g>
180
+
181
+ <linearGradient id="SVGID_7_" gradientUnits="userSpaceOnUse" x1="35.9736" y1="-3.9443" x2="35.9736" y2="12.4985" gradientTransform="matrix(1.062 0.1957 -0.1785 0.9688 -2.8524 -6.3414)">
182
+ <stop offset="0" style="stop-color:#FF7FA4"/>
183
+ <stop offset="0.5091" style="stop-color:#BD0014"/>
184
+ <stop offset="0.6151" style="stop-color:#C00318"/>
185
+ <stop offset="0.7229" style="stop-color:#CA0C24"/>
186
+ <stop offset="0.8316" style="stop-color:#DA1B39"/>
187
+ <stop offset="0.9402" style="stop-color:#F03155"/>
188
+ <stop offset="1" style="stop-color:#FF3F68"/>
189
+ </linearGradient>
190
+ <path fill="url(#SVGID_7_)" d="M34.748,3.64c0,0,1.138-6.001,5.268-5.241C42.531-1.137,43.059,4.3,39.2,7.702
191
+ c-4.709,4.151-6.055,4.634-6.055,4.634s-1.306-1.18-3.829-6.455c-2.367-4.949-0.128-9.519,2.813-8.936
192
+ C35.877-2.314,34.748,3.64,34.748,3.64z"/>
193
+ </g>
194
+ <defs>
195
+ <filter id="Adobe_OpacityMaskFilter_4_" filterUnits="userSpaceOnUse" x="28.324" y="-3.104" width="13.675" height="15.44">
196
+
197
+ <feColorMatrix type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" color-interpolation-filters="sRGB" result="source"/>
198
+ </filter>
199
+ </defs>
200
+ <mask maskUnits="userSpaceOnUse" x="28.324" y="-3.104" width="13.675" height="15.44" id="SVGID_8_">
201
+ <g filter="url(#Adobe_OpacityMaskFilter_4_)">
202
+
203
+ <image overflow="visible" width="18" height="21" xlink:href="data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/7AARRHVja3kAAQAEAAAAHgAA/+4AIUFkb2JlAGTAAAAAAQMA
204
+ EAMCAwYAAAGTAAABugAAAjf/2wCEABALCwsMCxAMDBAXDw0PFxsUEBAUGx8XFxcXFx8eFxoaGhoX
205
+ Hh4jJSclIx4vLzMzLy9AQEBAQEBAQEBAQEBAQEABEQ8PERMRFRISFRQRFBEUGhQWFhQaJhoaHBoa
206
+ JjAjHh4eHiMwKy4nJycuKzU1MDA1NUBAP0BAQEBAQEBAQEBAQP/CABEIABUAEgMBIgACEQEDEQH/
207
+ xAB/AAEAAwEBAAAAAAAAAAAAAAAAAgQFAwcBAQAAAAAAAAAAAAAAAAAAAAAQAAEDBAMAAAAAAAAA
208
+ AAAAAAUAAwYgBBUHAhMUEQABAwEFCAMAAAAAAAAAAAACAREDEgAhMUEEEGFxIjJSFBWREwUSAQAA
209
+ AAAAAAAAAAAAAAAAACD/2gAMAwEAAhEDEQAAAKnHd2TxxEaMAog//9oACAECAAEFAKP/2gAIAQMA
210
+ AQUAo//aAAgBAQABBQCKQqyLh2tcFeTPW4tbFGnhknkNkGskAymUMZX3r//aAAgBAgIGPwAf/9oA
211
+ CAEDAgY/AB//2gAIAQEBBj8ALXaqQkklUhhQbqKFUX332mlnmCFYlOgFSpTEcC5Suqt0rjTgvV28
212
+ bSfmryzaY1NE7gkWp/mxjKaLqZgJIYcyVs2dk37IvUv5bFSzszX1NlY/b1+ZdV9mLZM1zcNn/9k=" transform="matrix(1 0 0 1 26 -6)">
213
+ </image>
214
+ </g>
215
+ </mask>
216
+ <g opacity="0.13" mask="url(#SVGID_8_)">
217
+ <path fill="#ED032A" d="M34.748,3.64c0,0,1.138-6.001,5.268-5.241C42.531-1.137,43.059,4.3,39.2,7.702
218
+ c-4.709,4.151-6.055,4.634-6.055,4.634s-1.306-1.18-3.829-6.455c-2.367-4.949-0.128-9.519,2.813-8.936
219
+ C35.877-2.314,34.748,3.64,34.748,3.64z"/>
220
+ </g>
221
+ </g>
222
+ <g opacity="0.18">
223
+ <defs>
224
+ <path id="SVGID_9_" opacity="0.18" d="M34.748,3.64c0,0,1.138-6.001,5.268-5.241C42.531-1.137,43.059,4.3,39.2,7.702
225
+ c-4.709,4.151-6.055,4.634-6.055,4.634s-1.306-1.18-3.829-6.455c-2.367-4.949-0.128-9.519,2.813-8.936
226
+ C35.877-2.314,34.748,3.64,34.748,3.64z"/>
227
+ </defs>
228
+ <clipPath id="SVGID_10_">
229
+ <use xlink:href="#SVGID_9_" overflow="visible"/>
230
+ </clipPath>
231
+ <path clip-path="url(#SVGID_10_)" fill="#FFFFFF" d="M43.872-2.573c-1.685,9.153-5.252,9.017-9.54,8.228
232
+ c-4.283-0.789-7.666-1.935-5.979-11.088c0.981-5.331,5.255-9.017,9.539-8.228C42.179-12.871,44.853-7.905,43.872-2.573z"/>
233
+ </g>
234
+ </g>
235
+ </svg>
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "kiss",
3
+ "loops": 0,
4
+ "skip_first": true,
5
+ "default_delay": "100/1000",
6
+ "frames": [
7
+ {"3": 0},
8
+ {"0": 100},
9
+ {"1": 100},
10
+ {"2": 100},
11
+ {"3": 100},
12
+ {"4": 100},
13
+ {"5": 100},
14
+ {"6": 100},
15
+ {"7": 100},
16
+ {"8": 100},
17
+ {"9": 100},
18
+ {"10": 100},
19
+ {"11": 100},
20
+ {"12": 100},
21
+ {"13": 100},
22
+ {"14": 100},
23
+ {"15": 3000}
24
+ ]
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "kiss",
3
+ "loops": 0,
4
+ "skip_first": true,
5
+ "default_delay": "100/1000",
6
+ "frames": [
7
+ {"3": 0},
8
+ {"0": 100},
9
+ {"1": 100},
10
+ {"2": 100},
11
+ {"3": 100},
12
+ {"4": 100},
13
+ {"5": 100},
14
+ {"6": 100},
15
+ {"7": 100},
16
+ {"8": 100},
17
+ {"9": 100},
18
+ {"10": 100},
19
+ {"11": 100},
20
+ {"12": 100},
21
+ {"13": 100},
22
+ {"14": 100},
23
+ {"15": 100}
24
+ ]
25
+ }
metadata ADDED
@@ -0,0 +1,208 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: emojidex-converter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Rei Kagetsuki
8
+ - Rika Yoshida
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-07-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rsvg2
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rmagick
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: ruby-filemagic
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rapngasm
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: nokogiri
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: cairo
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: emojidex
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :runtime
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: phantom_svg
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :runtime
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ description: |-
127
+ Adds the convert method to Emojidex::Collection and Emojidex::Emoji, which\
128
+ allows you to convert an emoji collection or a single emoji to the specified\
129
+ image format.
130
+ email:
131
+ - zero@genshin.org
132
+ - nazuki@genshin.org
133
+ executables: []
134
+ extensions: []
135
+ extra_rdoc_files: []
136
+ files:
137
+ - ".gitignore"
138
+ - ".rspec"
139
+ - ".rubocop.yml"
140
+ - Gemfile
141
+ - Guardfile
142
+ - LICENSE.md
143
+ - README.md
144
+ - Rakefile
145
+ - emojidex-converter.gemspec
146
+ - lib/emojidex/converter.rb
147
+ - lib/emojidex/preprocessor.rb
148
+ - lib/emojidex_converter.rb
149
+ - spec/converter_spec.rb
150
+ - spec/spec_helper.rb
151
+ - spec/support/collection/aubergine.svg
152
+ - spec/support/collection/car.svg
153
+ - spec/support/collection/emoji.json
154
+ - spec/support/collection/heartbeat/0.svg
155
+ - spec/support/collection/heartbeat/1.svg
156
+ - spec/support/collection/heartbeat/2.svg
157
+ - spec/support/collection/heartbeat/3.svg
158
+ - spec/support/collection/heartbeat/4.svg
159
+ - spec/support/collection/heartbeat/5.svg
160
+ - spec/support/collection/heartbeat/6.svg
161
+ - spec/support/collection/heartbeat/7.svg
162
+ - spec/support/collection/heartbeat/animation.json
163
+ - spec/support/collection/heartbeat/heartbeat.svg
164
+ - spec/support/collection/kiss.svg
165
+ - spec/support/collection/kiss/0.svg
166
+ - spec/support/collection/kiss/1.svg
167
+ - spec/support/collection/kiss/10.svg
168
+ - spec/support/collection/kiss/11.svg
169
+ - spec/support/collection/kiss/12.svg
170
+ - spec/support/collection/kiss/13.svg
171
+ - spec/support/collection/kiss/14.svg
172
+ - spec/support/collection/kiss/15.svg
173
+ - spec/support/collection/kiss/2.svg
174
+ - spec/support/collection/kiss/3.svg
175
+ - spec/support/collection/kiss/4.svg
176
+ - spec/support/collection/kiss/5.svg
177
+ - spec/support/collection/kiss/6.svg
178
+ - spec/support/collection/kiss/7.svg
179
+ - spec/support/collection/kiss/8.svg
180
+ - spec/support/collection/kiss/9.svg
181
+ - spec/support/collection/kiss/animation.json
182
+ - spec/support/collection/kiss/animation.json~
183
+ homepage: http://dev.emojidex.com
184
+ licenses:
185
+ - Equivilent to emojidex-toolkit
186
+ metadata: {}
187
+ post_install_message:
188
+ rdoc_options: []
189
+ require_paths:
190
+ - lib
191
+ required_ruby_version: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ required_rubygems_version: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: '0'
201
+ requirements: []
202
+ rubyforge_project:
203
+ rubygems_version: 2.2.2
204
+ signing_key:
205
+ specification_version: 4
206
+ summary: Image conversion modules for emojidex
207
+ test_files: []
208
+ has_rdoc: