unibits 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/unibits/symbolify.rb +242 -1
- data/lib/unibits/version.rb +1 -1
- data/unibits.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b811d8983c85bc87c33a59b4cb7cd5144104a994
|
4
|
+
data.tar.gz: 63cf6f3b91f26b8ac8b0fca9d90a595662a9f0f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65979ed1477c6f5bcbed7b6f74474c1958e582614d91ae0a2ebf5cdf605b31f4263b1cc68e1ff113b21ce572c7025bfacf85db5353b9108e07cf352a3c60e052
|
7
|
+
data.tar.gz: b4cfbad99ad6257616b96e95f53f21696e545b4b29fafd6c3e212e03bc51f52eddb66c06ddb0b1fe2842a42cb5553f5d1a5ca32b7320aa463cd7bbf9de4f0ad3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
## CHANGELOG
|
2
2
|
|
3
|
+
### 1.3.0
|
4
|
+
|
5
|
+
* Add variation selectors 17-256 (U+E0100 - U+E01EF)
|
6
|
+
* Add U+1D159 (MUSICAL SYMBOL NULL NOTEHEAD) to list of possible white spaces
|
7
|
+
* Bump unicode-categories dependency for more reliable unassigned codepoint detection
|
8
|
+
|
3
9
|
### 1.2.1
|
4
10
|
|
5
11
|
* Fix bug that inserted wrong bytes
|
data/lib/unibits/symbolify.rb
CHANGED
@@ -74,8 +74,249 @@ module Unibits
|
|
74
74
|
"\u{FE0D}" => "VS14",
|
75
75
|
"\u{FE0E}" => "VS15",
|
76
76
|
"\u{FE0F}" => "VS16",
|
77
|
+
|
78
|
+
"\u{E0100}" => "VS17",
|
79
|
+
"\u{E0101}" => "VS18",
|
80
|
+
"\u{E0102}" => "VS19",
|
81
|
+
"\u{E0103}" => "VS20",
|
82
|
+
"\u{E0104}" => "VS21",
|
83
|
+
"\u{E0105}" => "VS22",
|
84
|
+
"\u{E0106}" => "VS23",
|
85
|
+
"\u{E0107}" => "VS24",
|
86
|
+
"\u{E0108}" => "VS25",
|
87
|
+
"\u{E0109}" => "VS26",
|
88
|
+
"\u{E010A}" => "VS27",
|
89
|
+
"\u{E010B}" => "VS28",
|
90
|
+
"\u{E010C}" => "VS29",
|
91
|
+
"\u{E010D}" => "VS30",
|
92
|
+
"\u{E010E}" => "VS31",
|
93
|
+
"\u{E010F}" => "VS32",
|
94
|
+
"\u{E0110}" => "VS33",
|
95
|
+
"\u{E0111}" => "VS34",
|
96
|
+
"\u{E0112}" => "VS35",
|
97
|
+
"\u{E0113}" => "VS36",
|
98
|
+
"\u{E0114}" => "VS37",
|
99
|
+
"\u{E0115}" => "VS38",
|
100
|
+
"\u{E0116}" => "VS39",
|
101
|
+
"\u{E0117}" => "VS40",
|
102
|
+
"\u{E0118}" => "VS41",
|
103
|
+
"\u{E0119}" => "VS42",
|
104
|
+
"\u{E011A}" => "VS43",
|
105
|
+
"\u{E011B}" => "VS44",
|
106
|
+
"\u{E011C}" => "VS45",
|
107
|
+
"\u{E011D}" => "VS46",
|
108
|
+
"\u{E011E}" => "VS47",
|
109
|
+
"\u{E011F}" => "VS48",
|
110
|
+
"\u{E0120}" => "VS49",
|
111
|
+
"\u{E0121}" => "VS50",
|
112
|
+
"\u{E0122}" => "VS51",
|
113
|
+
"\u{E0123}" => "VS52",
|
114
|
+
"\u{E0124}" => "VS53",
|
115
|
+
"\u{E0125}" => "VS54",
|
116
|
+
"\u{E0126}" => "VS55",
|
117
|
+
"\u{E0127}" => "VS56",
|
118
|
+
"\u{E0128}" => "VS57",
|
119
|
+
"\u{E0129}" => "VS58",
|
120
|
+
"\u{E012A}" => "VS59",
|
121
|
+
"\u{E012B}" => "VS60",
|
122
|
+
"\u{E012C}" => "VS61",
|
123
|
+
"\u{E012D}" => "VS62",
|
124
|
+
"\u{E012E}" => "VS63",
|
125
|
+
"\u{E012F}" => "VS64",
|
126
|
+
"\u{E0130}" => "VS65",
|
127
|
+
"\u{E0131}" => "VS66",
|
128
|
+
"\u{E0132}" => "VS67",
|
129
|
+
"\u{E0133}" => "VS68",
|
130
|
+
"\u{E0134}" => "VS69",
|
131
|
+
"\u{E0135}" => "VS70",
|
132
|
+
"\u{E0136}" => "VS71",
|
133
|
+
"\u{E0137}" => "VS72",
|
134
|
+
"\u{E0138}" => "VS73",
|
135
|
+
"\u{E0139}" => "VS74",
|
136
|
+
"\u{E013A}" => "VS75",
|
137
|
+
"\u{E013B}" => "VS76",
|
138
|
+
"\u{E013C}" => "VS77",
|
139
|
+
"\u{E013D}" => "VS78",
|
140
|
+
"\u{E013E}" => "VS79",
|
141
|
+
"\u{E013F}" => "VS80",
|
142
|
+
"\u{E0140}" => "VS81",
|
143
|
+
"\u{E0141}" => "VS82",
|
144
|
+
"\u{E0142}" => "VS83",
|
145
|
+
"\u{E0143}" => "VS84",
|
146
|
+
"\u{E0144}" => "VS85",
|
147
|
+
"\u{E0145}" => "VS86",
|
148
|
+
"\u{E0146}" => "VS87",
|
149
|
+
"\u{E0147}" => "VS88",
|
150
|
+
"\u{E0148}" => "VS89",
|
151
|
+
"\u{E0149}" => "VS90",
|
152
|
+
"\u{E014A}" => "VS91",
|
153
|
+
"\u{E014B}" => "VS92",
|
154
|
+
"\u{E014C}" => "VS93",
|
155
|
+
"\u{E014D}" => "VS94",
|
156
|
+
"\u{E014E}" => "VS95",
|
157
|
+
"\u{E014F}" => "VS96",
|
158
|
+
"\u{E0150}" => "VS97",
|
159
|
+
"\u{E0151}" => "VS98",
|
160
|
+
"\u{E0152}" => "VS99",
|
161
|
+
"\u{E0153}" => "VS100",
|
162
|
+
"\u{E0154}" => "VS101",
|
163
|
+
"\u{E0155}" => "VS102",
|
164
|
+
"\u{E0156}" => "VS103",
|
165
|
+
"\u{E0157}" => "VS104",
|
166
|
+
"\u{E0158}" => "VS105",
|
167
|
+
"\u{E0159}" => "VS106",
|
168
|
+
"\u{E015A}" => "VS107",
|
169
|
+
"\u{E015B}" => "VS108",
|
170
|
+
"\u{E015C}" => "VS109",
|
171
|
+
"\u{E015D}" => "VS110",
|
172
|
+
"\u{E015E}" => "VS111",
|
173
|
+
"\u{E015F}" => "VS112",
|
174
|
+
"\u{E0160}" => "VS113",
|
175
|
+
"\u{E0161}" => "VS114",
|
176
|
+
"\u{E0162}" => "VS115",
|
177
|
+
"\u{E0163}" => "VS116",
|
178
|
+
"\u{E0164}" => "VS117",
|
179
|
+
"\u{E0165}" => "VS118",
|
180
|
+
"\u{E0166}" => "VS119",
|
181
|
+
"\u{E0167}" => "VS120",
|
182
|
+
"\u{E0168}" => "VS121",
|
183
|
+
"\u{E0169}" => "VS122",
|
184
|
+
"\u{E016A}" => "VS123",
|
185
|
+
"\u{E016B}" => "VS124",
|
186
|
+
"\u{E016C}" => "VS125",
|
187
|
+
"\u{E016D}" => "VS126",
|
188
|
+
"\u{E016E}" => "VS127",
|
189
|
+
"\u{E016F}" => "VS128",
|
190
|
+
"\u{E0170}" => "VS129",
|
191
|
+
"\u{E0171}" => "VS130",
|
192
|
+
"\u{E0172}" => "VS131",
|
193
|
+
"\u{E0173}" => "VS132",
|
194
|
+
"\u{E0174}" => "VS133",
|
195
|
+
"\u{E0175}" => "VS134",
|
196
|
+
"\u{E0176}" => "VS135",
|
197
|
+
"\u{E0177}" => "VS136",
|
198
|
+
"\u{E0178}" => "VS137",
|
199
|
+
"\u{E0179}" => "VS138",
|
200
|
+
"\u{E017A}" => "VS139",
|
201
|
+
"\u{E017B}" => "VS140",
|
202
|
+
"\u{E017C}" => "VS141",
|
203
|
+
"\u{E017D}" => "VS142",
|
204
|
+
"\u{E017E}" => "VS143",
|
205
|
+
"\u{E017F}" => "VS144",
|
206
|
+
"\u{E0180}" => "VS145",
|
207
|
+
"\u{E0181}" => "VS146",
|
208
|
+
"\u{E0182}" => "VS147",
|
209
|
+
"\u{E0183}" => "VS148",
|
210
|
+
"\u{E0184}" => "VS149",
|
211
|
+
"\u{E0185}" => "VS150",
|
212
|
+
"\u{E0186}" => "VS151",
|
213
|
+
"\u{E0187}" => "VS152",
|
214
|
+
"\u{E0188}" => "VS153",
|
215
|
+
"\u{E0189}" => "VS154",
|
216
|
+
"\u{E018A}" => "VS155",
|
217
|
+
"\u{E018B}" => "VS156",
|
218
|
+
"\u{E018C}" => "VS157",
|
219
|
+
"\u{E018D}" => "VS158",
|
220
|
+
"\u{E018E}" => "VS159",
|
221
|
+
"\u{E018F}" => "VS160",
|
222
|
+
"\u{E0190}" => "VS161",
|
223
|
+
"\u{E0191}" => "VS162",
|
224
|
+
"\u{E0192}" => "VS163",
|
225
|
+
"\u{E0193}" => "VS164",
|
226
|
+
"\u{E0194}" => "VS165",
|
227
|
+
"\u{E0195}" => "VS166",
|
228
|
+
"\u{E0196}" => "VS167",
|
229
|
+
"\u{E0197}" => "VS168",
|
230
|
+
"\u{E0198}" => "VS169",
|
231
|
+
"\u{E0199}" => "VS170",
|
232
|
+
"\u{E019A}" => "VS171",
|
233
|
+
"\u{E019B}" => "VS172",
|
234
|
+
"\u{E019C}" => "VS173",
|
235
|
+
"\u{E019D}" => "VS174",
|
236
|
+
"\u{E019E}" => "VS175",
|
237
|
+
"\u{E019F}" => "VS176",
|
238
|
+
"\u{E01A0}" => "VS177",
|
239
|
+
"\u{E01A1}" => "VS178",
|
240
|
+
"\u{E01A2}" => "VS179",
|
241
|
+
"\u{E01A3}" => "VS180",
|
242
|
+
"\u{E01A4}" => "VS181",
|
243
|
+
"\u{E01A5}" => "VS182",
|
244
|
+
"\u{E01A6}" => "VS183",
|
245
|
+
"\u{E01A7}" => "VS184",
|
246
|
+
"\u{E01A8}" => "VS185",
|
247
|
+
"\u{E01A9}" => "VS186",
|
248
|
+
"\u{E01AA}" => "VS187",
|
249
|
+
"\u{E01AB}" => "VS188",
|
250
|
+
"\u{E01AC}" => "VS189",
|
251
|
+
"\u{E01AD}" => "VS190",
|
252
|
+
"\u{E01AE}" => "VS191",
|
253
|
+
"\u{E01AF}" => "VS192",
|
254
|
+
"\u{E01B0}" => "VS193",
|
255
|
+
"\u{E01B1}" => "VS194",
|
256
|
+
"\u{E01B2}" => "VS195",
|
257
|
+
"\u{E01B3}" => "VS196",
|
258
|
+
"\u{E01B4}" => "VS197",
|
259
|
+
"\u{E01B5}" => "VS198",
|
260
|
+
"\u{E01B6}" => "VS199",
|
261
|
+
"\u{E01B7}" => "VS200",
|
262
|
+
"\u{E01B8}" => "VS201",
|
263
|
+
"\u{E01B9}" => "VS202",
|
264
|
+
"\u{E01BA}" => "VS203",
|
265
|
+
"\u{E01BB}" => "VS204",
|
266
|
+
"\u{E01BC}" => "VS205",
|
267
|
+
"\u{E01BD}" => "VS206",
|
268
|
+
"\u{E01BE}" => "VS207",
|
269
|
+
"\u{E01BF}" => "VS208",
|
270
|
+
"\u{E01C0}" => "VS209",
|
271
|
+
"\u{E01C1}" => "VS210",
|
272
|
+
"\u{E01C2}" => "VS211",
|
273
|
+
"\u{E01C3}" => "VS212",
|
274
|
+
"\u{E01C4}" => "VS213",
|
275
|
+
"\u{E01C5}" => "VS214",
|
276
|
+
"\u{E01C6}" => "VS215",
|
277
|
+
"\u{E01C7}" => "VS216",
|
278
|
+
"\u{E01C8}" => "VS217",
|
279
|
+
"\u{E01C9}" => "VS218",
|
280
|
+
"\u{E01CA}" => "VS219",
|
281
|
+
"\u{E01CB}" => "VS220",
|
282
|
+
"\u{E01CC}" => "VS221",
|
283
|
+
"\u{E01CD}" => "VS222",
|
284
|
+
"\u{E01CE}" => "VS223",
|
285
|
+
"\u{E01CF}" => "VS224",
|
286
|
+
"\u{E01D0}" => "VS225",
|
287
|
+
"\u{E01D1}" => "VS226",
|
288
|
+
"\u{E01D2}" => "VS227",
|
289
|
+
"\u{E01D3}" => "VS228",
|
290
|
+
"\u{E01D4}" => "VS229",
|
291
|
+
"\u{E01D5}" => "VS230",
|
292
|
+
"\u{E01D6}" => "VS231",
|
293
|
+
"\u{E01D7}" => "VS232",
|
294
|
+
"\u{E01D8}" => "VS233",
|
295
|
+
"\u{E01D9}" => "VS234",
|
296
|
+
"\u{E01DA}" => "VS235",
|
297
|
+
"\u{E01DB}" => "VS236",
|
298
|
+
"\u{E01DC}" => "VS237",
|
299
|
+
"\u{E01DD}" => "VS238",
|
300
|
+
"\u{E01DE}" => "VS239",
|
301
|
+
"\u{E01DF}" => "VS240",
|
302
|
+
"\u{E01E0}" => "VS241",
|
303
|
+
"\u{E01E1}" => "VS242",
|
304
|
+
"\u{E01E2}" => "VS243",
|
305
|
+
"\u{E01E3}" => "VS244",
|
306
|
+
"\u{E01E4}" => "VS245",
|
307
|
+
"\u{E01E5}" => "VS246",
|
308
|
+
"\u{E01E6}" => "VS247",
|
309
|
+
"\u{E01E7}" => "VS248",
|
310
|
+
"\u{E01E8}" => "VS249",
|
311
|
+
"\u{E01E9}" => "VS250",
|
312
|
+
"\u{E01EA}" => "VS251",
|
313
|
+
"\u{E01EB}" => "VS252",
|
314
|
+
"\u{E01EC}" => "VS253",
|
315
|
+
"\u{E01ED}" => "VS254",
|
316
|
+
"\u{E01EE}" => "VS255",
|
317
|
+
"\u{E01EF}" => "VS256",
|
77
318
|
}.freeze
|
78
|
-
COULD_BE_WHITESPACE = '[\p{Space}⠀
|
319
|
+
COULD_BE_WHITESPACE = '[\p{Space}⠀𝅙]'.freeze
|
79
320
|
|
80
321
|
def self.symbolify(char, encoding = char.encoding)
|
81
322
|
return "n/a" if Unicode::Categories.category(char) == "Cn"
|
data/lib/unibits/version.rb
CHANGED
data/unibits.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
|
|
19
19
|
|
20
20
|
gem.add_dependency 'paint', '>= 0.9', '< 3.0'
|
21
21
|
gem.add_dependency 'unicode-display_width', '~> 1.1'
|
22
|
-
gem.add_dependency 'unicode-categories', '~> 1.1', '>= 1.1.
|
22
|
+
gem.add_dependency 'unicode-categories', '~> 1.1', '>= 1.1.2'
|
23
23
|
gem.add_dependency 'rationalist', '~> 2.0'
|
24
24
|
|
25
25
|
gem.required_ruby_version = "~> 2.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unibits
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
version: '1.1'
|
54
54
|
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 1.1.
|
56
|
+
version: 1.1.2
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -63,7 +63,7 @@ dependencies:
|
|
63
63
|
version: '1.1'
|
64
64
|
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: 1.1.
|
66
|
+
version: 1.1.2
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: rationalist
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|