unicode-name 1.13.2 β 1.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/data/name.marshal.gz +0 -0
- data/lib/unicode/name/constants.rb +1 -1
- data/lib/unicode/name.rb +5 -2
- data/spec/unicode_name_spec.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d5b492a10c5d32a1452b2c01a98dce50e1dbeedbe75b5fc3d73aae7cac013d8
|
4
|
+
data.tar.gz: d1b1cd8ced4f9685c31833b15e7d441469ec3117911f46a13b07cbd7ea33426b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20e926fc2271e4421359f767a0b601c52e37c012c8bb804c1318df4bf8d50686bfd8206d6c0bf26454921e14aae237c255c734e15aaede0ef875a398a91757e7
|
7
|
+
data.tar.gz: c2c46f3bd4dd9b83f32343c7d18e15a16a1af440a51db7c0512f3acdd0382a6b5cb7653653b3ed9695ebd277172b7d8c15bedda517ce9d8028b4db0bf475f4bb
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/data/name.marshal.gz
CHANGED
Binary file
|
data/lib/unicode/name.rb
CHANGED
@@ -79,8 +79,6 @@ module Unicode
|
|
79
79
|
label(char)
|
80
80
|
end
|
81
81
|
|
82
|
-
private
|
83
|
-
|
84
82
|
# See https://en.wikipedia.org/wiki/Korean_language_and_computers#Hangul_Syllables_Area
|
85
83
|
def self.hangul_decomposition(codepoint)
|
86
84
|
base = codepoint - HANGUL_START
|
@@ -100,6 +98,11 @@ module Unicode
|
|
100
98
|
end
|
101
99
|
}.join.chomp
|
102
100
|
end
|
101
|
+
|
102
|
+
class << self
|
103
|
+
private :hangul_decomposition
|
104
|
+
private :insert_words
|
105
|
+
end
|
103
106
|
end
|
104
107
|
end
|
105
108
|
|
data/spec/unicode_name_spec.rb
CHANGED
@@ -11,6 +11,7 @@ describe Unicode::Name do
|
|
11
11
|
|
12
12
|
it "works for CJK unified ideographs" do
|
13
13
|
assert_equal "CJK UNIFIED IDEOGRAPH-4E01", Unicode::Name.of("δΈ")
|
14
|
+
assert_equal "SQUARED CJK UNIFIED IDEOGRAPH-6709", Unicode::Name.of("πΆ")
|
14
15
|
end
|
15
16
|
|
16
17
|
it "works for Hangul syllables" do
|