igo-ruby 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/igo/dictionary.rb +4 -4
- data/test/test.rb +6 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/lib/igo/dictionary.rb
CHANGED
@@ -109,9 +109,9 @@ module Igo
|
|
109
109
|
else
|
110
110
|
txt = text.unpack('C*')
|
111
111
|
end
|
112
|
-
|
113
|
-
length =
|
114
|
-
ch =
|
112
|
+
txtu = text.unpack("U*")
|
113
|
+
length = txtu.size
|
114
|
+
ch = txtu[start]
|
115
115
|
ct = @category.category(ch)
|
116
116
|
|
117
117
|
if !result.empty? and !ct.invoke
|
@@ -131,7 +131,7 @@ module Igo
|
|
131
131
|
|
132
132
|
if ct.group and limit < length
|
133
133
|
for i in limit..(length - 1)
|
134
|
-
if not @category.compatible?(ch,
|
134
|
+
if not @category.compatible?(ch, txtu[i])
|
135
135
|
wdic.search_from_trie_id(ct.id, start, i - start, is_space, result)
|
136
136
|
return
|
137
137
|
end
|
data/test/test.rb
CHANGED
@@ -20,3 +20,9 @@ puts "1.9 character code bug fix ->"
|
|
20
20
|
t.each{|m|
|
21
21
|
puts "#{m.surface} #{m.feature} #{m.start}"
|
22
22
|
}
|
23
|
+
|
24
|
+
t = tagger.parse('Let’s Dance')
|
25
|
+
puts "Fix error raised when fullwidth symbol mixed ->"
|
26
|
+
t.each{|m|
|
27
|
+
puts "#{m.surface} #{m.feature} #{m.start}"
|
28
|
+
}
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: igo-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- K.Nishi
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-06-15 00:00:00 +09:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -98,7 +98,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
98
98
|
requirements:
|
99
99
|
- - ">="
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
hash: -
|
101
|
+
hash: -3754336151881797049
|
102
102
|
segments:
|
103
103
|
- 0
|
104
104
|
version: "0"
|