suika 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 108d59930a3a546de3a603d4c7de5851249264a4eddd76c8a350407b2d0b353a
4
- data.tar.gz: d879db93ee8593466c415ba9064b50221ee2355fa0caedcd301fe07de9ab4880
3
+ metadata.gz: 2aafd394952b381595891fab5652ed86c1c71a18d09befd1ffa2cd4bfdb05e8e
4
+ data.tar.gz: 33385a74bac5c831a7116aa34ee31c5470154c928e971926b7f0f112b3cf1264
5
5
  SHA512:
6
- metadata.gz: aceff27ac13d1c7b03ae286e2a24c02f5fe75d987e5ea91879777e66adf8155b8d92d185399e2fe31bf6dd7e6448fb175d3ed0b864c55e2df2ff30b6dcaad5a3
7
- data.tar.gz: a92d9161f73a761c9621fa720725dbebdfa74da1d8b892ab3ecab8aa9ee835d98bf42341818219b0fdf1dd3a164a1206f306f0e8dcad9030b7137776ed5142e0
6
+ metadata.gz: 80de1122cb9aae4a3313bb1ee95594435415dcacb197ef9bbf33a2695f57b9cc14c8f466aab19c8f487f1f4c3e4107ecd3851fad217921f61511655b5309fb21
7
+ data.tar.gz: e0e9b76d04c847f6c1a8013db4b8a05ab9050dbde59d25c76d66fee078ac6b2ca230652b03ee61f3d97b7eebdc1139a34fb790fc5c954b072b55747e1933415a
@@ -1,12 +1,31 @@
1
- # 0.1.3
1
+ ## 0.1.4
2
+
3
+ ### Bug Fixes
4
+ - Fix CharDef.char_type to return 'DEFAULT' when unknown character code is given.
5
+
6
+ ### Features
7
+ - Add character code of square era name Reiwa.
8
+
9
+ ## 0.1.3
10
+
11
+ ### Bug Fixes
2
12
  - Fix unknown word processing.
13
+
14
+ ### Changes
3
15
  - Remove redundant spaces from output.
4
16
 
5
- # 0.1.2
17
+
18
+ ## 0.1.2
19
+
20
+ ### Bug Fixes
6
21
  - Fix local variable typo in Tagger.parse.
7
22
 
8
- # 0.1.1
23
+
24
+ ## 0.1.1
25
+
26
+ ### Bug Fixes
9
27
  - Fix specification of class in CharDef.char_type.
10
28
 
11
- # 0.1.0
29
+
30
+ ## 0.1.0
12
31
  - First release.
@@ -5,10 +5,11 @@ module Suika
5
5
  class CharDef
6
6
  # @!visibility private
7
7
  def self.char_type(ch)
8
- code = ch.unpack1('U*')
9
- CHAR_TYPES.find do |ctype|
10
- Object.const_get("::Suika::CharDef::#{ctype}").any? { |r| r.include?(code) }
8
+ ch_code = ch.unpack1('U*')
9
+ ch_type = CHAR_TYPES.find do |ct|
10
+ Object.const_get("::Suika::CharDef::#{ct}").any? { |r| r.include?(ch_code) }
11
11
  end
12
+ ch_type || 'DEFAULT'
12
13
  end
13
14
 
14
15
  # @!visibility private
@@ -119,6 +120,7 @@ module Suika
119
120
  0x2B00..0x2BFF, # Miscellaneous Symbols and Arrows
120
121
  0x2A00..0x2AFF, # Supplemental Mathematical Operators
121
122
  0x3300..0x33FF,
123
+ 0x32FF..0x32FF, # Square era name REIWA
122
124
  0x3200..0x32FE, # ENclosed CJK Letters and Months
123
125
  0x3000..0x303F, # CJK Symbol and Punctuation
124
126
  0xFE30..0xFE4F, # CJK Compatibility Forms
@@ -3,5 +3,5 @@
3
3
  # Suika is a Japanese morphological analyzer written in pure Ruby.
4
4
  module Suika
5
5
  # The version of Suika you are using.
6
- VERSION = '0.1.3'
6
+ VERSION = '0.1.4'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suika
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-06 00:00:00.000000000 Z
11
+ date: 2020-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rambling-trie