furigana 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/furigana/formatter/base.rb +5 -1
- data/lib/furigana/version.rb +1 -1
- metadata +2 -8
- data/README.rdoc +0 -6
- data/furigana.rdoc +0 -5
|
@@ -7,7 +7,11 @@ module Furigana
|
|
|
7
7
|
surface_form, reading = 0, 1
|
|
8
8
|
new_text = ''
|
|
9
9
|
tokens_enum = tokens.to_enum
|
|
10
|
-
|
|
10
|
+
begin
|
|
11
|
+
current_token = tokens_enum.next
|
|
12
|
+
rescue StopIteration
|
|
13
|
+
current_token = nil
|
|
14
|
+
end
|
|
11
15
|
substring, pos = "", 0
|
|
12
16
|
|
|
13
17
|
text.each_char do |char|
|
data/lib/furigana/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: furigana
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -96,9 +96,7 @@ email: michael@michaelvobrien.com
|
|
|
96
96
|
executables:
|
|
97
97
|
- furigana
|
|
98
98
|
extensions: []
|
|
99
|
-
extra_rdoc_files:
|
|
100
|
-
- README.rdoc
|
|
101
|
-
- furigana.rdoc
|
|
99
|
+
extra_rdoc_files: []
|
|
102
100
|
files:
|
|
103
101
|
- bin/furigana
|
|
104
102
|
- lib/furigana.rb
|
|
@@ -110,16 +108,12 @@ files:
|
|
|
110
108
|
- lib/furigana/mecab.rb
|
|
111
109
|
- lib/furigana/reader.rb
|
|
112
110
|
- lib/furigana/version.rb
|
|
113
|
-
- README.rdoc
|
|
114
|
-
- furigana.rdoc
|
|
115
111
|
homepage: https://github.com/michaelvobrien/furigana
|
|
116
112
|
licenses: []
|
|
117
113
|
post_install_message:
|
|
118
114
|
rdoc_options:
|
|
119
115
|
- --title
|
|
120
116
|
- furigana
|
|
121
|
-
- --main
|
|
122
|
-
- README.rdoc
|
|
123
117
|
- -ri
|
|
124
118
|
require_paths:
|
|
125
119
|
- lib
|
data/README.rdoc
DELETED