lib/characteristics/unicode.rb in characteristics-0.3.0 vs lib/characteristics/unicode.rb in characteristics-0.3.1
- old
+ new
@@ -3,13 +3,17 @@
class UnicodeCharacteristics < Characteristics
BLANKS = [
0x0009,
0x0020,
0x00AD,
+ 0x061C,
+ 0x070F,
0x115F,
0x1160,
0x1680,
+ 0x17B4,
+ 0x17B5,
0x180E,
0x2000,
0x2001,
0x2002,
0x2003,
@@ -38,10 +42,11 @@
0x206F,
0x3000,
0x3164,
0x2800,
0xFEFF,
+ 0x110B1,
0x1BCA0,
0x1BCA1,
0x1BCA2,
0x1BCA3,
0x1D159,
@@ -61,9 +66,11 @@
0x000C,
0x000D,
0x2028,
0x2029,
].freeze
+
+ attr_reader :category
def initialize(char)
super
if @is_valid