text-hyphen 1.4.1 → 1.6.0
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.
- checksums.yaml +7 -0
- data/.standard.yml +5 -0
- data/Code-of-Conduct.md +73 -0
- data/Contributing.md +68 -0
- data/History.md +154 -0
- data/Licence.md +159 -0
- data/Manifest.txt +12 -5
- data/README.md +81 -0
- data/Rakefile +68 -19
- data/bin/ruby-hyphen +0 -0
- data/lib/text/hyphen/language/1.8/de1.rb +1307 -571
- data/lib/text/hyphen/language/1.8/en_us.rb +412 -453
- data/lib/text/hyphen/language/1.8/fr.rb +128 -334
- data/lib/text/hyphen/language/1.8/la.rb +1 -0
- data/lib/text/hyphen/language/1.8/lt.rb +115 -0
- data/lib/text/hyphen/language/1.8/pt.rb +2 -1
- data/lib/text/hyphen/language/1.8/sk.rb +277 -0
- data/lib/text/hyphen/language/1.9/ca.rb +2 -1
- data/lib/text/hyphen/language/1.9/cs.rb +2 -1
- data/lib/text/hyphen/language/1.9/da.rb +2 -1
- data/lib/text/hyphen/language/1.9/de1.rb +1382 -646
- data/lib/text/hyphen/language/1.9/de2.rb +110 -109
- data/lib/text/hyphen/language/1.9/en_uk.rb +2 -1
- data/lib/text/hyphen/language/1.9/en_us.rb +412 -454
- data/lib/text/hyphen/language/1.9/es.rb +2 -1
- data/lib/text/hyphen/language/1.9/et.rb +6 -5
- data/lib/text/hyphen/language/1.9/eu.rb +4 -3
- data/lib/text/hyphen/language/1.9/fi.rb +3 -2
- data/lib/text/hyphen/language/1.9/fr.rb +136 -343
- data/lib/text/hyphen/language/1.9/ga.rb +27 -26
- data/lib/text/hyphen/language/1.9/hr.rb +6 -5
- data/lib/text/hyphen/language/1.9/hsb.rb +3 -2
- data/lib/text/hyphen/language/1.9/hu1.rb +3 -2
- data/lib/text/hyphen/language/1.9/hu2.rb +5 -4
- data/lib/text/hyphen/language/1.9/ia.rb +2 -1
- data/lib/text/hyphen/language/1.9/id.rb +8 -7
- data/lib/text/hyphen/language/1.9/is.rb +2 -1
- data/lib/text/hyphen/language/1.9/it.rb +74 -74
- data/lib/text/hyphen/language/1.9/la.rb +54 -53
- data/lib/text/hyphen/language/1.9/lt.rb +116 -0
- data/lib/text/hyphen/language/1.9/mn.rb +7 -6
- data/lib/text/hyphen/language/1.9/nl.rb +2 -1
- data/lib/text/hyphen/language/1.9/no1.rb +3 -2
- data/lib/text/hyphen/language/1.9/no2.rb +3 -2
- data/lib/text/hyphen/language/1.9/pl.rb +2 -1
- data/lib/text/hyphen/language/1.9/pt.rb +3 -2
- data/lib/text/hyphen/language/1.9/ru.rb +2 -1
- data/lib/text/hyphen/language/1.9/sk.rb +280 -0
- data/lib/text/hyphen/language/1.9/sv.rb +4 -3
- data/lib/text/hyphen/language/cs.rb +1 -1
- data/lib/text/hyphen/language/de.rb +2 -1
- data/lib/text/hyphen/language/de1.rb +1 -1
- data/lib/text/hyphen/language/de2.rb +1 -1
- data/lib/text/hyphen/language/en_us.rb +1 -1
- data/lib/text/hyphen/language/eu.rb +1 -1
- data/lib/text/hyphen/language/fr.rb +1 -1
- data/lib/text/hyphen/language/hu.rb +1 -1
- data/lib/text/hyphen/language/hu1.rb +1 -1
- data/lib/text/hyphen/language/hu2.rb +1 -1
- data/lib/text/hyphen/language/is.rb +1 -1
- data/lib/text/hyphen/language/lt.rb +4 -0
- data/lib/text/hyphen/language/ms.rb +3 -3
- data/lib/text/hyphen/language/nl.rb +1 -1
- data/lib/text/hyphen/language/no.rb +1 -1
- data/lib/text/hyphen/language/sk.rb +4 -0
- data/lib/text/hyphen/language.rb +45 -45
- data/lib/text/hyphen.rb +159 -101
- data/lib/text-hyphen.rb +1 -1
- data/test/data/bug_9807_latin1.rb +2 -2
- data/test/data/bug_9807_utf-8.rb +1 -1
- data/test/test_bugs.rb +14 -13
- data/test/test_text_hyphen.rb +36 -21
- metadata +143 -96
- data/.autotest +0 -23
- data/.gemtest +0 -0
- data/History.rdoc +0 -99
- data/License.rdoc +0 -159
- data/README.rdoc +0 -95
- data/text-hyphen.gemspec +0 -51
data/test/test_text_hyphen.rb
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
require
|
|
2
|
+
|
|
3
|
+
require "test/unit"
|
|
4
|
+
require "text-hyphen"
|
|
4
5
|
|
|
5
6
|
class TestTextHyphen < Test::Unit::TestCase
|
|
6
|
-
WORDS
|
|
7
|
-
|
|
8
|
-
POINTS
|
|
7
|
+
WORDS = %w[additional declination going leaving maximizes multiple peter
|
|
8
|
+
playback presents programmable representation]
|
|
9
|
+
POINTS = [
|
|
9
10
|
[2, 4, 8], # additional
|
|
10
11
|
[3, 5, 7], # declination
|
|
11
12
|
[2], # going
|
|
@@ -15,26 +16,26 @@ class TestTextHyphen < Test::Unit::TestCase
|
|
|
15
16
|
[2], # peter
|
|
16
17
|
[4], # playback
|
|
17
18
|
[], # presents
|
|
18
|
-
[3, 7],
|
|
19
|
+
[3, 7, 9], # programmable
|
|
19
20
|
[3, 5, 8, 10] # representation
|
|
20
21
|
]
|
|
21
22
|
|
|
22
|
-
VISUAL = %w
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
VISUAL = %w[ad-di-tion-al dec-li-na-tion go-ing leav-ing max-i-mizes
|
|
24
|
+
mul-ti-ple pe-ter play-back presents pro-gram-ma-ble
|
|
25
|
+
rep-re-sen-ta-tion]
|
|
25
26
|
|
|
26
|
-
HY_TO
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
HY_TO = [%w[addi- tional], %w[dec- lination], %w[go- ing],
|
|
28
|
+
%w[leav- ing], %w[maxi- mizes], %w[mul- tiple], %w[pe- ter],
|
|
29
|
+
%w[play- back], [nil, "presents"], %w[pro- grammable],
|
|
30
|
+
%w[rep- resentation]]
|
|
30
31
|
|
|
31
32
|
SOFT_HYPHEN = "­"
|
|
32
33
|
|
|
33
34
|
def test_hyphenate
|
|
34
35
|
@r = []
|
|
35
36
|
a = Text::Hyphen.new do |xx|
|
|
36
|
-
xx.left
|
|
37
|
-
xx.right
|
|
37
|
+
xx.left = 0
|
|
38
|
+
xx.right = 0
|
|
38
39
|
end
|
|
39
40
|
assert_nothing_raised { WORDS.each { |w| @r << a.hyphenate(w) } }
|
|
40
41
|
assert_equal(POINTS, @r)
|
|
@@ -58,21 +59,35 @@ class TestTextHyphen < Test::Unit::TestCase
|
|
|
58
59
|
end
|
|
59
60
|
|
|
60
61
|
def test_alt_hyphen_for_visualize
|
|
61
|
-
a = Text::Hyphen.new.visualize(
|
|
62
|
+
a = Text::Hyphen.new.visualize("backpack", SOFT_HYPHEN)
|
|
62
63
|
assert_equal "back#{SOFT_HYPHEN}pack", a
|
|
63
64
|
|
|
64
|
-
a = Text::Hyphen.new.visualize(
|
|
65
|
+
a = Text::Hyphen.new.visualize("representation", SOFT_HYPHEN)
|
|
65
66
|
assert_equal "rep#{SOFT_HYPHEN}re#{SOFT_HYPHEN}sen#{SOFT_HYPHEN}ta#{SOFT_HYPHEN}tion", a
|
|
66
67
|
end
|
|
67
68
|
|
|
68
69
|
def test_alt_hyphen_for_hyphenate_to
|
|
69
|
-
a = Text::Hyphen.new.hyphenate_to(
|
|
70
|
-
assert_equal ["back#{SOFT_HYPHEN}",
|
|
71
|
-
|
|
70
|
+
a = Text::Hyphen.new.hyphenate_to("backpack", 5, SOFT_HYPHEN)
|
|
71
|
+
assert_equal ["back#{SOFT_HYPHEN}", "pack"], a
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
def test_russian
|
|
75
|
-
a = Text::Hyphen.new(:language =>
|
|
75
|
+
a = Text::Hyphen.new(:language => "ru").visualize("скоропалительный")
|
|
76
76
|
assert_equal "ско-ро-па-ли-тель-ный", a
|
|
77
77
|
end
|
|
78
|
+
|
|
79
|
+
def test_hyphenate_sentence
|
|
80
|
+
a = Text::Hyphen.new(:left => 0, :right => 0).hyphenate("This useful library supports phrases and sentences.")
|
|
81
|
+
assert_equal [8, 14, 23, 27, 34, 44], a
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
def test_visualise_sentence
|
|
85
|
+
a = Text::Hyphen.new(:left => 0, :right => 0).visualize("This useful library supports phrases and sentences.")
|
|
86
|
+
assert_equal "This use-ful li-brary sup-port-s phras-es and sen-tences.", a
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
def test_iso_language_uses_language_isocode
|
|
90
|
+
assert_equal "de", Text::Hyphen.new(:language => "de1").iso_language
|
|
91
|
+
assert_equal "hu", Text::Hyphen.new(:language => "hu1").iso_language
|
|
92
|
+
end
|
|
78
93
|
end
|
metadata
CHANGED
|
@@ -1,162 +1,209 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: text-hyphen
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 1.6.0
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Austin Ziegler
|
|
9
|
-
autorequire:
|
|
10
8
|
bindir: bin
|
|
11
9
|
cert_chain: []
|
|
12
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
11
|
dependencies:
|
|
14
12
|
- !ruby/object:Gem::Dependency
|
|
15
|
-
name:
|
|
13
|
+
name: hoe
|
|
16
14
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
15
|
requirements:
|
|
19
|
-
- -
|
|
16
|
+
- - ">="
|
|
20
17
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: '3.
|
|
18
|
+
version: '3.0'
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '5'
|
|
22
22
|
type: :development
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
25
|
requirements:
|
|
27
|
-
- -
|
|
26
|
+
- - ">="
|
|
28
27
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: '3.
|
|
28
|
+
version: '3.0'
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '5'
|
|
30
32
|
- !ruby/object:Gem::Dependency
|
|
31
33
|
name: hoe-doofus
|
|
32
34
|
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
35
|
requirements:
|
|
35
|
-
- - ~>
|
|
36
|
+
- - "~>"
|
|
36
37
|
- !ruby/object:Gem::Version
|
|
37
38
|
version: '1.0'
|
|
38
39
|
type: :development
|
|
39
40
|
prerelease: false
|
|
40
41
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
42
|
requirements:
|
|
43
|
-
- - ~>
|
|
43
|
+
- - "~>"
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
45
|
version: '1.0'
|
|
46
46
|
- !ruby/object:Gem::Dependency
|
|
47
|
-
name: hoe-
|
|
47
|
+
name: hoe-gemspec2
|
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
|
49
|
-
none: false
|
|
50
49
|
requirements:
|
|
51
|
-
- - ~>
|
|
50
|
+
- - "~>"
|
|
52
51
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '1.
|
|
52
|
+
version: '1.1'
|
|
54
53
|
type: :development
|
|
55
54
|
prerelease: false
|
|
56
55
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
-
none: false
|
|
58
56
|
requirements:
|
|
59
|
-
- - ~>
|
|
57
|
+
- - "~>"
|
|
60
58
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '1.
|
|
59
|
+
version: '1.1'
|
|
60
|
+
- !ruby/object:Gem::Dependency
|
|
61
|
+
name: hoe-git2
|
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
|
63
|
+
requirements:
|
|
64
|
+
- - "~>"
|
|
65
|
+
- !ruby/object:Gem::Version
|
|
66
|
+
version: '1.7'
|
|
67
|
+
type: :development
|
|
68
|
+
prerelease: false
|
|
69
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
70
|
+
requirements:
|
|
71
|
+
- - "~>"
|
|
72
|
+
- !ruby/object:Gem::Version
|
|
73
|
+
version: '1.7'
|
|
62
74
|
- !ruby/object:Gem::Dependency
|
|
63
|
-
name: hoe-
|
|
75
|
+
name: hoe-rubygems
|
|
64
76
|
requirement: !ruby/object:Gem::Requirement
|
|
65
|
-
none: false
|
|
66
77
|
requirements:
|
|
67
|
-
- - ~>
|
|
78
|
+
- - "~>"
|
|
68
79
|
- !ruby/object:Gem::Version
|
|
69
80
|
version: '1.0'
|
|
70
81
|
type: :development
|
|
71
82
|
prerelease: false
|
|
72
83
|
version_requirements: !ruby/object:Gem::Requirement
|
|
73
|
-
none: false
|
|
74
84
|
requirements:
|
|
75
|
-
- - ~>
|
|
85
|
+
- - "~>"
|
|
76
86
|
- !ruby/object:Gem::Version
|
|
77
87
|
version: '1.0'
|
|
78
88
|
- !ruby/object:Gem::Dependency
|
|
79
|
-
name:
|
|
89
|
+
name: test-unit
|
|
80
90
|
requirement: !ruby/object:Gem::Requirement
|
|
81
|
-
none: false
|
|
82
91
|
requirements:
|
|
83
|
-
- -
|
|
92
|
+
- - ">="
|
|
93
|
+
- !ruby/object:Gem::Version
|
|
94
|
+
version: '0'
|
|
95
|
+
type: :development
|
|
96
|
+
prerelease: false
|
|
97
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
98
|
+
requirements:
|
|
99
|
+
- - ">="
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: '0'
|
|
102
|
+
- !ruby/object:Gem::Dependency
|
|
103
|
+
name: rake
|
|
104
|
+
requirement: !ruby/object:Gem::Requirement
|
|
105
|
+
requirements:
|
|
106
|
+
- - ">="
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: '10.0'
|
|
109
|
+
- - "<"
|
|
110
|
+
- !ruby/object:Gem::Version
|
|
111
|
+
version: '14.0'
|
|
112
|
+
type: :development
|
|
113
|
+
prerelease: false
|
|
114
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
115
|
+
requirements:
|
|
116
|
+
- - ">="
|
|
117
|
+
- !ruby/object:Gem::Version
|
|
118
|
+
version: '10.0'
|
|
119
|
+
- - "<"
|
|
120
|
+
- !ruby/object:Gem::Version
|
|
121
|
+
version: '14.0'
|
|
122
|
+
- !ruby/object:Gem::Dependency
|
|
123
|
+
name: standard
|
|
124
|
+
requirement: !ruby/object:Gem::Requirement
|
|
125
|
+
requirements:
|
|
126
|
+
- - "~>"
|
|
84
127
|
- !ruby/object:Gem::Version
|
|
85
128
|
version: '1.0'
|
|
86
129
|
type: :development
|
|
87
130
|
prerelease: false
|
|
88
131
|
version_requirements: !ruby/object:Gem::Requirement
|
|
89
|
-
none: false
|
|
90
132
|
requirements:
|
|
91
|
-
- - ~>
|
|
133
|
+
- - "~>"
|
|
92
134
|
- !ruby/object:Gem::Version
|
|
93
135
|
version: '1.0'
|
|
94
136
|
- !ruby/object:Gem::Dependency
|
|
95
|
-
name:
|
|
137
|
+
name: rdoc
|
|
96
138
|
requirement: !ruby/object:Gem::Requirement
|
|
97
|
-
none: false
|
|
98
139
|
requirements:
|
|
99
|
-
- -
|
|
140
|
+
- - ">="
|
|
100
141
|
- !ruby/object:Gem::Version
|
|
101
|
-
version: '
|
|
142
|
+
version: '7.0'
|
|
143
|
+
- - "<"
|
|
144
|
+
- !ruby/object:Gem::Version
|
|
145
|
+
version: '9'
|
|
102
146
|
type: :development
|
|
103
147
|
prerelease: false
|
|
104
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
105
|
-
none: false
|
|
106
149
|
requirements:
|
|
107
|
-
- -
|
|
150
|
+
- - ">="
|
|
108
151
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: '
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
152
|
+
version: '7.0'
|
|
153
|
+
- - "<"
|
|
154
|
+
- !ruby/object:Gem::Version
|
|
155
|
+
version: '9'
|
|
156
|
+
- !ruby/object:Gem::Dependency
|
|
157
|
+
name: simplecov
|
|
158
|
+
requirement: !ruby/object:Gem::Requirement
|
|
159
|
+
requirements:
|
|
160
|
+
- - "~>"
|
|
161
|
+
- !ruby/object:Gem::Version
|
|
162
|
+
version: '0.21'
|
|
163
|
+
type: :development
|
|
164
|
+
prerelease: false
|
|
165
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
166
|
+
requirements:
|
|
167
|
+
- - "~>"
|
|
168
|
+
- !ruby/object:Gem::Version
|
|
169
|
+
version: '0.21'
|
|
170
|
+
description: |
|
|
171
|
+
Text::Hyphen is a Ruby library to hyphenate words in various languages using
|
|
113
172
|
Ruby-fied versions of TeX hyphenation patterns. It will properly hyphenate
|
|
173
|
+
various words according to the rules of the language the word is written in. The
|
|
174
|
+
algorithm is based on that of the TeX typesetting system by Donald E. Knuth.
|
|
114
175
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
Knuth.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
This is originally based on the Perl implementation of
|
|
123
|
-
|
|
124
|
-
{TeX::Hyphen}[http://search.cpan.org/author/JANPAZ/TeX-Hyphen-0.140/lib/TeX/Hyphen.pm]
|
|
125
|
-
|
|
126
|
-
and the {Ruby port}[http://rubyforge.org/projects/text-format]. The language
|
|
127
|
-
|
|
128
|
-
hyphenation pattern files are based on the sources available from
|
|
129
|
-
|
|
130
|
-
{CTAN}[http://www.ctan.org] as of 2004.12.19 and have been manually translated
|
|
176
|
+
This is originally based on the Perl implementation of [TeX::Hyphen][] and the
|
|
177
|
+
[Ruby port][]. The language hyphenation pattern files are based on the sources
|
|
178
|
+
available from [CTAN][] as of 2004.12.19 and have been manually translated by
|
|
179
|
+
Austin Ziegler.
|
|
131
180
|
|
|
132
|
-
|
|
181
|
+
This is a small feature release adding Russian language support and fixing a bug
|
|
182
|
+
in the custom hyphen support introduced last version. This release provides both
|
|
183
|
+
Ruby 1.8.7 and Ruby 1.9.2 support (but please read below). In short, Ruby 1.8
|
|
184
|
+
support is deprecated and I will not be providing any bug fixes related to Ruby
|
|
185
|
+
1.8. New features will be developed and tested against Ruby 1.9 only.
|
|
133
186
|
|
|
134
|
-
|
|
135
|
-
This is a small feature release adding Russian language support and fixing a
|
|
136
|
-
|
|
137
|
-
bug in the custom hyphen support introduced last version. This release provides
|
|
138
|
-
|
|
139
|
-
both Ruby 1.8.7 and Ruby 1.9.2 support (but please read below). In short, Ruby
|
|
140
|
-
|
|
141
|
-
1.8 support is deprecated and I will not be providing any bug fixes related to
|
|
142
|
-
|
|
143
|
-
Ruby 1.8. New features will be developed and tested against Ruby 1.9 only.'
|
|
187
|
+
==== To Install:
|
|
144
188
|
email:
|
|
145
|
-
-
|
|
189
|
+
- halostatue@gmail.com
|
|
146
190
|
executables:
|
|
147
191
|
- ruby-hyphen
|
|
148
192
|
extensions: []
|
|
149
193
|
extra_rdoc_files:
|
|
150
|
-
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
-
-
|
|
194
|
+
- Code-of-Conduct.md
|
|
195
|
+
- Contributing.md
|
|
196
|
+
- History.md
|
|
197
|
+
- Licence.md
|
|
198
|
+
- README.md
|
|
154
199
|
files:
|
|
155
|
-
- .
|
|
156
|
-
-
|
|
157
|
-
-
|
|
200
|
+
- ".standard.yml"
|
|
201
|
+
- Code-of-Conduct.md
|
|
202
|
+
- Contributing.md
|
|
203
|
+
- History.md
|
|
204
|
+
- Licence.md
|
|
158
205
|
- Manifest.txt
|
|
159
|
-
- README.
|
|
206
|
+
- README.md
|
|
160
207
|
- Rakefile
|
|
161
208
|
- bin/ruby-hyphen
|
|
162
209
|
- lib/text-hyphen.rb
|
|
@@ -184,6 +231,7 @@ files:
|
|
|
184
231
|
- lib/text/hyphen/language/1.8/is.rb
|
|
185
232
|
- lib/text/hyphen/language/1.8/it.rb
|
|
186
233
|
- lib/text/hyphen/language/1.8/la.rb
|
|
234
|
+
- lib/text/hyphen/language/1.8/lt.rb
|
|
187
235
|
- lib/text/hyphen/language/1.8/mn.rb
|
|
188
236
|
- lib/text/hyphen/language/1.8/nl.rb
|
|
189
237
|
- lib/text/hyphen/language/1.8/no1.rb
|
|
@@ -191,6 +239,7 @@ files:
|
|
|
191
239
|
- lib/text/hyphen/language/1.8/pl.rb
|
|
192
240
|
- lib/text/hyphen/language/1.8/pt.rb
|
|
193
241
|
- lib/text/hyphen/language/1.8/ru.rb
|
|
242
|
+
- lib/text/hyphen/language/1.8/sk.rb
|
|
194
243
|
- lib/text/hyphen/language/1.8/sv.rb
|
|
195
244
|
- lib/text/hyphen/language/1.9/ca.rb
|
|
196
245
|
- lib/text/hyphen/language/1.9/cs.rb
|
|
@@ -214,6 +263,7 @@ files:
|
|
|
214
263
|
- lib/text/hyphen/language/1.9/is.rb
|
|
215
264
|
- lib/text/hyphen/language/1.9/it.rb
|
|
216
265
|
- lib/text/hyphen/language/1.9/la.rb
|
|
266
|
+
- lib/text/hyphen/language/1.9/lt.rb
|
|
217
267
|
- lib/text/hyphen/language/1.9/mn.rb
|
|
218
268
|
- lib/text/hyphen/language/1.9/nl.rb
|
|
219
269
|
- lib/text/hyphen/language/1.9/no1.rb
|
|
@@ -221,6 +271,7 @@ files:
|
|
|
221
271
|
- lib/text/hyphen/language/1.9/pl.rb
|
|
222
272
|
- lib/text/hyphen/language/1.9/pt.rb
|
|
223
273
|
- lib/text/hyphen/language/1.9/ru.rb
|
|
274
|
+
- lib/text/hyphen/language/1.9/sk.rb
|
|
224
275
|
- lib/text/hyphen/language/1.9/sv.rb
|
|
225
276
|
- lib/text/hyphen/language/ca.rb
|
|
226
277
|
- lib/text/hyphen/language/cs.rb
|
|
@@ -246,6 +297,7 @@ files:
|
|
|
246
297
|
- lib/text/hyphen/language/is.rb
|
|
247
298
|
- lib/text/hyphen/language/it.rb
|
|
248
299
|
- lib/text/hyphen/language/la.rb
|
|
300
|
+
- lib/text/hyphen/language/lt.rb
|
|
249
301
|
- lib/text/hyphen/language/mn.rb
|
|
250
302
|
- lib/text/hyphen/language/ms.rb
|
|
251
303
|
- lib/text/hyphen/language/nl.rb
|
|
@@ -255,40 +307,35 @@ files:
|
|
|
255
307
|
- lib/text/hyphen/language/pl.rb
|
|
256
308
|
- lib/text/hyphen/language/pt.rb
|
|
257
309
|
- lib/text/hyphen/language/ru.rb
|
|
310
|
+
- lib/text/hyphen/language/sk.rb
|
|
258
311
|
- lib/text/hyphen/language/sv.rb
|
|
259
312
|
- test/data/bug_9807_latin1.rb
|
|
260
313
|
- test/data/bug_9807_utf-8.rb
|
|
261
314
|
- test/test_bugs.rb
|
|
262
315
|
- test/test_text_hyphen.rb
|
|
263
|
-
|
|
264
|
-
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
316
|
+
licenses:
|
|
317
|
+
- MIT
|
|
318
|
+
- Various
|
|
319
|
+
metadata:
|
|
320
|
+
rubygems_mfa_required: 'true'
|
|
268
321
|
rdoc_options:
|
|
269
|
-
- --main
|
|
270
|
-
- README.
|
|
322
|
+
- "--main"
|
|
323
|
+
- README.md
|
|
271
324
|
require_paths:
|
|
272
325
|
- lib
|
|
273
326
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
274
|
-
none: false
|
|
275
327
|
requirements:
|
|
276
|
-
- -
|
|
328
|
+
- - ">="
|
|
277
329
|
- !ruby/object:Gem::Version
|
|
278
330
|
version: '0'
|
|
279
331
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
280
|
-
none: false
|
|
281
332
|
requirements:
|
|
282
|
-
- -
|
|
333
|
+
- - ">="
|
|
283
334
|
- !ruby/object:Gem::Version
|
|
284
335
|
version: '0'
|
|
285
336
|
requirements: []
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
signing_key:
|
|
289
|
-
specification_version: 3
|
|
337
|
+
rubygems_version: 4.0.20
|
|
338
|
+
specification_version: 4
|
|
290
339
|
summary: Text::Hyphen is a Ruby library to hyphenate words in various languages using
|
|
291
340
|
Ruby-fied versions of TeX hyphenation patterns
|
|
292
|
-
test_files:
|
|
293
|
-
- test/test_bugs.rb
|
|
294
|
-
- test/test_text_hyphen.rb
|
|
341
|
+
test_files: []
|
data/.autotest
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# -*- ruby -*-
|
|
2
|
-
|
|
3
|
-
require 'autotest/restart'
|
|
4
|
-
|
|
5
|
-
# Autotest.add_hook :initialize do |at|
|
|
6
|
-
# at.extra_files << "../some/external/dependency.rb"
|
|
7
|
-
#
|
|
8
|
-
# at.libs << ":../some/external"
|
|
9
|
-
#
|
|
10
|
-
# at.add_exception 'vendor'
|
|
11
|
-
#
|
|
12
|
-
# at.add_mapping(/dependency.rb/) do |f, _|
|
|
13
|
-
# at.files_matching(/test_.*rb$/)
|
|
14
|
-
# end
|
|
15
|
-
#
|
|
16
|
-
# %w(TestA TestB).each do |klass|
|
|
17
|
-
# at.extra_class_map[klass] = "test/test_misc.rb"
|
|
18
|
-
# end
|
|
19
|
-
# end
|
|
20
|
-
|
|
21
|
-
# Autotest.add_hook :run_command do |at|
|
|
22
|
-
# system "rake build"
|
|
23
|
-
# end
|
data/.gemtest
DELETED
|
File without changes
|
data/History.rdoc
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
== 1.4.1 / 2012.08.27
|
|
2
|
-
|
|
3
|
-
* Bug Fix:
|
|
4
|
-
* Evgeny Lapin (https://github.com/jenkek) pointed out that I forgot to
|
|
5
|
-
include the new Russian-language hyphenation files, breaking the gem for
|
|
6
|
-
use with Russian. Oops.
|
|
7
|
-
|
|
8
|
-
== 1.4 / 2012.08.25
|
|
9
|
-
|
|
10
|
-
* Feature:
|
|
11
|
-
* Kirill Maksimov (https://github.com/netoneko) added Russian-language
|
|
12
|
-
hyphenation, complete with test. Thanks! In Ruby 1.8, the encoding is
|
|
13
|
-
KOI8-R. Also submitted by Dmitry Lihachev (https://github.com/lda).
|
|
14
|
-
* Bug Fix:
|
|
15
|
-
* Visualization with hyphens larger than one character (such as the HTML
|
|
16
|
-
soft-hyphen entity) would not be correct; this has been resolved. Thanks to
|
|
17
|
-
hadmut (https://github.com/hadmut) for reporting this issue.
|
|
18
|
-
|
|
19
|
-
== 1.3 / 2012.06.20
|
|
20
|
-
* Feature:
|
|
21
|
-
* Cezary Baginsky (https://github.com/e2) added the ability to specify a
|
|
22
|
-
hyphen character (such as the HTML soft-hyphen entity) instead of always
|
|
23
|
-
using the dash-hyphen.
|
|
24
|
-
* Added a new option to bin/ruby-hyphen to support the new feature.
|
|
25
|
-
* Bug Fix:
|
|
26
|
-
* bin/ruby-hyphen didn't work when visualizing to a size. Fixed.
|
|
27
|
-
|
|
28
|
-
== 1.2.1 / 2012.04.05
|
|
29
|
-
* Bug Fix:
|
|
30
|
-
* Fixed some typos in the README
|
|
31
|
-
* Test Coverage:
|
|
32
|
-
* Tested on the following versions under Mac OS X 10.7:
|
|
33
|
-
* mri-1.8.7-p358: 5 tests, 45 assertions, 0 failures, 0 errors, 0 skips
|
|
34
|
-
* mri-1.9.2-p318: 5 tests, 45 assertions, 0 failures, 0 errors, 0 skips
|
|
35
|
-
* mri-1.9.3-p125: 5 tests, 45 assertions, 0 failures, 0 errors, 0 skips
|
|
36
|
-
* mri-2.0.0-dev: 5 tests, 45 assertions, 0 failures, 0 errors, 0 skips
|
|
37
|
-
* jruby-1.6.7 (1.8 mode): 5 tests, 45 assertions, 0 failures, 0 errors
|
|
38
|
-
* jruby-1.6.7 (1.9 mode): 5 tests, 45 assertions, 0 failures, 0 errors, 0 skips
|
|
39
|
-
* jruby-1.7.0-dev (1.8 mode): 5 tests, 45 assertions, 0 failures, 0 errors
|
|
40
|
-
* jruby-1.7.0-dev (1.9 mode): 5 tests, 45 assertions, 0 failures, 0 errors, 0 skips
|
|
41
|
-
* ree-1.8.7-2012.02: 5 tests, 45 assertions, 0 failures, 0 errors
|
|
42
|
-
* rbx-2.0.0-dev: 5 tests, 45 assertions, 0 failures, 0 errors
|
|
43
|
-
* Versions tested previously should continue to work. Versions not currently
|
|
44
|
-
tested were not installed on the test system.
|
|
45
|
-
|
|
46
|
-
== 1.2 / 2011.07.17
|
|
47
|
-
* Major Enhancements:
|
|
48
|
-
* This release supports Ruby 1.9 with UTF-8 encodings. The language files are
|
|
49
|
-
duplicated for both Ruby 1.8 and 1.9 and the correct version is loaded
|
|
50
|
-
based on RUBY\_VERSION.
|
|
51
|
-
* Minor Enhancements:
|
|
52
|
-
* Making Hungarian and Norwegian language files act like the German language
|
|
53
|
-
files (both of these languages have two alternative hyphenation tables).
|
|
54
|
-
* Added a Malasy language file that should work correctly.
|
|
55
|
-
* Cleaned up the documentation.
|
|
56
|
-
* Bug Fixes:
|
|
57
|
-
* Fixed 9807 and 28128 (previously noted as not reproducible; quality
|
|
58
|
-
reproduction cases were found).
|
|
59
|
-
* Changes:
|
|
60
|
-
* Relicensing the core library to the MIT license and attempting to clarify
|
|
61
|
-
the license situation.
|
|
62
|
-
* Renaming hyphen to ruby-hyphen.
|
|
63
|
-
* This is the final release compatible with Ruby 1.8, first release
|
|
64
|
-
compatible with Ruby 1.9.
|
|
65
|
-
* Test Coverage:
|
|
66
|
-
* Tested with all major Ruby releases except IronRuby.
|
|
67
|
-
* jruby-1.6.3 (1.8.7): passes all tests.
|
|
68
|
-
* jruby-1.6.3 (1.9.2): fails one UTF-8 related test (see JRUBY-5927).
|
|
69
|
-
* macruby-0.10 (1.9.2): passes all tests. Segfault with "rake test" (see
|
|
70
|
-
https://www.macruby.org/trac/ticket/1362 for more information).
|
|
71
|
-
* maglev-ruby-0.9 (1.8.7): passes all tests.
|
|
72
|
-
* rubinius-1.2.5 (1.8.7): passes all tests.
|
|
73
|
-
* ree-1.8.7-2011.03 (1.8.7): passes all tests.
|
|
74
|
-
* MRI-1.8.7-p352 (1.8.7): passes all tests.
|
|
75
|
-
* MRI-1.9.2-p290 (1.9.2): passes all tests.
|
|
76
|
-
|
|
77
|
-
== 1.0.2 / 2011.02.09
|
|
78
|
-
* Moved to 'hoe' and GitHub.
|
|
79
|
-
* Preparing for 2.0 which will be Ruby 1.9-only for UTF-8.
|
|
80
|
-
* Fixing German support (RubyForge 28498):
|
|
81
|
-
* Choosing 'de' as a language will load 'de1'. Choosing 'de1' or 'de2' will
|
|
82
|
-
load properly now, but they will be reported with an ISO language code of
|
|
83
|
-
'de' (new optional #isocode attribute on a language definition that will
|
|
84
|
-
override the #iso_language setting of a Text::Hyphen instance if set).
|
|
85
|
-
* Both 'de1' and 'de2' can be loaded simultaneously now, but the first one
|
|
86
|
-
loaded will claim the Text::Hyphen::Language::DE constant.
|
|
87
|
-
* Added test cases for bugs:
|
|
88
|
-
* RubyForge 9807 (cannot reproduce)
|
|
89
|
-
* RubyForge 28128 (cannot reproduce)
|
|
90
|
-
* RubyForge 28498
|
|
91
|
-
|
|
92
|
-
== 1.0.1
|
|
93
|
-
* Minor modification to the RubyGem release of Text::Hyphen to enable the
|
|
94
|
-
hyphen command-line program.
|
|
95
|
-
|
|
96
|
-
== 1.0.0
|
|
97
|
-
* Initial version based on TeX::Hyphen 0.4.0 (some changes have been
|
|
98
|
-
backported to TeX::Hyphen 0.5.0).
|
|
99
|
-
* Incorporated many hyphenation pattern files from CTAN.
|