text-hyphen 1.4 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.standard.yml +5 -0
- data/Code-of-Conduct.md +73 -0
- data/Contributing.md +68 -0
- data/History.md +139 -0
- data/Licence.md +159 -0
- data/Manifest.txt +15 -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/ru.rb +434 -0
- 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 +437 -0
- 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/ru.rb +4 -0
- data/lib/text/hyphen/language/sk.rb +4 -0
- data/lib/text/hyphen/language.rb +45 -45
- data/lib/text/hyphen.rb +139 -97
- 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 +31 -21
- metadata +143 -106
- data/.autotest +0 -23
- data/.gemtest +0 -0
- data/History.rdoc +0 -92
- data/License.rdoc +0 -159
- data/README.rdoc +0 -95
- data/text-hyphen.gemspec +0 -51
metadata
CHANGED
@@ -1,178 +1,209 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: text-hyphen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 1.5.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Austin Ziegler
|
9
|
-
autorequire:
|
8
|
+
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2023-03-18 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
14
|
+
name: hoe
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
- - "<"
|
20
21
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
22
|
+
version: '5'
|
22
23
|
type: :development
|
23
24
|
prerelease: false
|
24
25
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.0'
|
30
|
+
- - "<"
|
28
31
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
32
|
+
version: '5'
|
30
33
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
34
|
+
name: hoe-doofus
|
32
35
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
36
|
requirements:
|
35
|
-
- - ~>
|
37
|
+
- - "~>"
|
36
38
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
39
|
+
version: '1.0'
|
38
40
|
type: :development
|
39
41
|
prerelease: false
|
40
42
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
43
|
requirements:
|
43
|
-
- - ~>
|
44
|
+
- - "~>"
|
44
45
|
- !ruby/object:Gem::Version
|
45
|
-
version: '
|
46
|
+
version: '1.0'
|
46
47
|
- !ruby/object:Gem::Dependency
|
47
|
-
name: hoe-
|
48
|
+
name: hoe-gemspec2
|
48
49
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
50
|
requirements:
|
51
|
-
- - ~>
|
51
|
+
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '1.
|
53
|
+
version: '1.1'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
57
|
requirements:
|
59
|
-
- - ~>
|
58
|
+
- - "~>"
|
60
59
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
60
|
+
version: '1.1'
|
62
61
|
- !ruby/object:Gem::Dependency
|
63
|
-
name: hoe-
|
62
|
+
name: hoe-git2
|
64
63
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
64
|
requirements:
|
67
|
-
- - ~>
|
65
|
+
- - "~>"
|
68
66
|
- !ruby/object:Gem::Version
|
69
|
-
version: '1.
|
67
|
+
version: '1.7'
|
70
68
|
type: :development
|
71
69
|
prerelease: false
|
72
70
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
71
|
requirements:
|
75
|
-
- - ~>
|
72
|
+
- - "~>"
|
76
73
|
- !ruby/object:Gem::Version
|
77
|
-
version: '1.
|
74
|
+
version: '1.7'
|
78
75
|
- !ruby/object:Gem::Dependency
|
79
|
-
name: hoe-
|
76
|
+
name: hoe-rubygems
|
80
77
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
78
|
requirements:
|
83
|
-
- - ~>
|
79
|
+
- - "~>"
|
84
80
|
- !ruby/object:Gem::Version
|
85
81
|
version: '1.0'
|
86
82
|
type: :development
|
87
83
|
prerelease: false
|
88
84
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
85
|
requirements:
|
91
|
-
- - ~>
|
86
|
+
- - "~>"
|
92
87
|
- !ruby/object:Gem::Version
|
93
88
|
version: '1.0'
|
94
89
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
90
|
+
name: test-unit
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rake
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '10.0'
|
110
|
+
- - "<"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '14.0'
|
113
|
+
type: :development
|
114
|
+
prerelease: false
|
115
|
+
version_requirements: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '10.0'
|
120
|
+
- - "<"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '14.0'
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: standard
|
96
125
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
126
|
requirements:
|
99
|
-
- - ~>
|
127
|
+
- - "~>"
|
100
128
|
- !ruby/object:Gem::Version
|
101
129
|
version: '1.0'
|
102
130
|
type: :development
|
103
131
|
prerelease: false
|
104
132
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
133
|
requirements:
|
107
|
-
- - ~>
|
134
|
+
- - "~>"
|
108
135
|
- !ruby/object:Gem::Version
|
109
136
|
version: '1.0'
|
110
137
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
138
|
+
name: rdoc
|
112
139
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
140
|
requirements:
|
115
|
-
- -
|
141
|
+
- - ">="
|
116
142
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
143
|
+
version: '4.0'
|
144
|
+
- - "<"
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '7'
|
118
147
|
type: :development
|
119
148
|
prerelease: false
|
120
149
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
150
|
requirements:
|
123
|
-
- -
|
151
|
+
- - ">="
|
124
152
|
- !ruby/object:Gem::Version
|
125
|
-
version: '
|
126
|
-
|
127
|
-
|
128
|
-
|
153
|
+
version: '4.0'
|
154
|
+
- - "<"
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '7'
|
157
|
+
- !ruby/object:Gem::Dependency
|
158
|
+
name: simplecov
|
159
|
+
requirement: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - "~>"
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '0.21'
|
164
|
+
type: :development
|
165
|
+
prerelease: false
|
166
|
+
version_requirements: !ruby/object:Gem::Requirement
|
167
|
+
requirements:
|
168
|
+
- - "~>"
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: '0.21'
|
171
|
+
description: |-
|
172
|
+
Text::Hyphen is a Ruby library to hyphenate words in various languages using
|
129
173
|
Ruby-fied versions of TeX hyphenation patterns. It will properly hyphenate
|
174
|
+
various words according to the rules of the language the word is written in. The
|
175
|
+
algorithm is based on that of the TeX typesetting system by Donald E. Knuth.
|
130
176
|
|
131
|
-
|
177
|
+
This is originally based on the Perl implementation of [TeX::Hyphen][] and the
|
178
|
+
[Ruby port][]. The language hyphenation pattern files are based on the sources
|
179
|
+
available from [CTAN][] as of 2004.12.19 and have been manually translated by
|
180
|
+
Austin Ziegler.
|
132
181
|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
This is originally based on the Perl implementation of
|
139
|
-
|
140
|
-
{TeX::Hyphen}[http://search.cpan.org/author/JANPAZ/TeX-Hyphen-0.140/lib/TeX/Hyphen.pm]
|
141
|
-
|
142
|
-
and the {Ruby port}[http://rubyforge.org/projects/text-format]. The language
|
143
|
-
|
144
|
-
hyphenation pattern files are based on the sources available from
|
145
|
-
|
146
|
-
{CTAN}[http://www.ctan.org] as of 2004.12.19 and have been manually translated
|
147
|
-
|
148
|
-
by Austin Ziegler.
|
149
|
-
|
150
|
-
|
151
|
-
This is a small feature release adding Russian language support and fixing a
|
152
|
-
|
153
|
-
bug in the custom hyphen support introduced last version. This release provides
|
154
|
-
|
155
|
-
both Ruby 1.8.7 and Ruby 1.9.2 support (but please read below). In short, Ruby
|
156
|
-
|
157
|
-
1.8 support is deprecated and I will not be providing any bug fixes related to
|
158
|
-
|
159
|
-
Ruby 1.8. New features will be developed and tested against Ruby 1.9 only.'
|
182
|
+
This is a small feature release adding Russian language support and fixing a bug
|
183
|
+
in the custom hyphen support introduced last version. This release provides both
|
184
|
+
Ruby 1.8.7 and Ruby 1.9.2 support (but please read below). In short, Ruby 1.8
|
185
|
+
support is deprecated and I will not be providing any bug fixes related to Ruby
|
186
|
+
1.8. New features will be developed and tested against Ruby 1.9 only.
|
160
187
|
email:
|
161
|
-
-
|
188
|
+
- halostatue@gmail.com
|
162
189
|
executables:
|
163
190
|
- ruby-hyphen
|
164
191
|
extensions: []
|
165
192
|
extra_rdoc_files:
|
166
|
-
-
|
167
|
-
-
|
193
|
+
- Code-of-Conduct.md
|
194
|
+
- Contributing.md
|
195
|
+
- History.md
|
196
|
+
- Licence.md
|
168
197
|
- Manifest.txt
|
169
|
-
- README.
|
198
|
+
- README.md
|
170
199
|
files:
|
171
|
-
- .
|
172
|
-
-
|
173
|
-
-
|
200
|
+
- ".standard.yml"
|
201
|
+
- Code-of-Conduct.md
|
202
|
+
- Contributing.md
|
203
|
+
- History.md
|
204
|
+
- Licence.md
|
174
205
|
- Manifest.txt
|
175
|
-
- README.
|
206
|
+
- README.md
|
176
207
|
- Rakefile
|
177
208
|
- bin/ruby-hyphen
|
178
209
|
- lib/text-hyphen.rb
|
@@ -200,12 +231,15 @@ files:
|
|
200
231
|
- lib/text/hyphen/language/1.8/is.rb
|
201
232
|
- lib/text/hyphen/language/1.8/it.rb
|
202
233
|
- lib/text/hyphen/language/1.8/la.rb
|
234
|
+
- lib/text/hyphen/language/1.8/lt.rb
|
203
235
|
- lib/text/hyphen/language/1.8/mn.rb
|
204
236
|
- lib/text/hyphen/language/1.8/nl.rb
|
205
237
|
- lib/text/hyphen/language/1.8/no1.rb
|
206
238
|
- lib/text/hyphen/language/1.8/no2.rb
|
207
239
|
- lib/text/hyphen/language/1.8/pl.rb
|
208
240
|
- lib/text/hyphen/language/1.8/pt.rb
|
241
|
+
- lib/text/hyphen/language/1.8/ru.rb
|
242
|
+
- lib/text/hyphen/language/1.8/sk.rb
|
209
243
|
- lib/text/hyphen/language/1.8/sv.rb
|
210
244
|
- lib/text/hyphen/language/1.9/ca.rb
|
211
245
|
- lib/text/hyphen/language/1.9/cs.rb
|
@@ -229,12 +263,15 @@ files:
|
|
229
263
|
- lib/text/hyphen/language/1.9/is.rb
|
230
264
|
- lib/text/hyphen/language/1.9/it.rb
|
231
265
|
- lib/text/hyphen/language/1.9/la.rb
|
266
|
+
- lib/text/hyphen/language/1.9/lt.rb
|
232
267
|
- lib/text/hyphen/language/1.9/mn.rb
|
233
268
|
- lib/text/hyphen/language/1.9/nl.rb
|
234
269
|
- lib/text/hyphen/language/1.9/no1.rb
|
235
270
|
- lib/text/hyphen/language/1.9/no2.rb
|
236
271
|
- lib/text/hyphen/language/1.9/pl.rb
|
237
272
|
- lib/text/hyphen/language/1.9/pt.rb
|
273
|
+
- lib/text/hyphen/language/1.9/ru.rb
|
274
|
+
- lib/text/hyphen/language/1.9/sk.rb
|
238
275
|
- lib/text/hyphen/language/1.9/sv.rb
|
239
276
|
- lib/text/hyphen/language/ca.rb
|
240
277
|
- lib/text/hyphen/language/cs.rb
|
@@ -260,6 +297,7 @@ files:
|
|
260
297
|
- lib/text/hyphen/language/is.rb
|
261
298
|
- lib/text/hyphen/language/it.rb
|
262
299
|
- lib/text/hyphen/language/la.rb
|
300
|
+
- lib/text/hyphen/language/lt.rb
|
263
301
|
- lib/text/hyphen/language/mn.rb
|
264
302
|
- lib/text/hyphen/language/ms.rb
|
265
303
|
- lib/text/hyphen/language/nl.rb
|
@@ -268,40 +306,39 @@ files:
|
|
268
306
|
- lib/text/hyphen/language/no2.rb
|
269
307
|
- lib/text/hyphen/language/pl.rb
|
270
308
|
- lib/text/hyphen/language/pt.rb
|
309
|
+
- lib/text/hyphen/language/ru.rb
|
310
|
+
- lib/text/hyphen/language/sk.rb
|
271
311
|
- lib/text/hyphen/language/sv.rb
|
272
312
|
- test/data/bug_9807_latin1.rb
|
273
313
|
- test/data/bug_9807_utf-8.rb
|
274
314
|
- test/test_bugs.rb
|
275
315
|
- test/test_text_hyphen.rb
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
316
|
+
homepage: https://rubygems.org/gems/text-hyphen
|
317
|
+
licenses:
|
318
|
+
- MIT
|
319
|
+
- Various
|
320
|
+
metadata:
|
321
|
+
rubygems_mfa_required: 'true'
|
322
|
+
post_install_message:
|
281
323
|
rdoc_options:
|
282
|
-
- --main
|
283
|
-
- README.
|
324
|
+
- "--main"
|
325
|
+
- README.md
|
284
326
|
require_paths:
|
285
327
|
- lib
|
286
328
|
required_ruby_version: !ruby/object:Gem::Requirement
|
287
|
-
none: false
|
288
329
|
requirements:
|
289
|
-
- -
|
330
|
+
- - ">="
|
290
331
|
- !ruby/object:Gem::Version
|
291
332
|
version: '0'
|
292
333
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
293
|
-
none: false
|
294
334
|
requirements:
|
295
|
-
- -
|
335
|
+
- - ">="
|
296
336
|
- !ruby/object:Gem::Version
|
297
337
|
version: '0'
|
298
338
|
requirements: []
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
specification_version: 3
|
339
|
+
rubygems_version: 3.1.6
|
340
|
+
signing_key:
|
341
|
+
specification_version: 4
|
303
342
|
summary: Text::Hyphen is a Ruby library to hyphenate words in various languages using
|
304
343
|
Ruby-fied versions of TeX hyphenation patterns
|
305
|
-
test_files:
|
306
|
-
- test/test_bugs.rb
|
307
|
-
- test/test_text_hyphen.rb
|
344
|
+
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,92 +0,0 @@
|
|
1
|
-
== 1.4 / 2012.08.25
|
2
|
-
|
3
|
-
* Feature:
|
4
|
-
* Kirill Maksimov (https://github.com/netoneko) added Russian-language
|
5
|
-
hyphenation, complete with test. Thanks! In Ruby 1.8, the encoding is
|
6
|
-
KOI8-R. Also submitted by Dmitry Lihachev (https://github.com/lda).
|
7
|
-
* Bug Fix:
|
8
|
-
* Visualization with hyphens larger than one character (such as the HTML
|
9
|
-
soft-hyphen entity) would not be correct; this has been resolved. Thanks to
|
10
|
-
hadmut (https://github.com/hadmut) for reporting this issue.
|
11
|
-
|
12
|
-
== 1.3 / 2012.06.20
|
13
|
-
* Feature:
|
14
|
-
* Cezary Baginsky (https://github.com/e2) added the ability to specify a
|
15
|
-
hyphen character (such as the HTML soft-hyphen entity) instead of always
|
16
|
-
using the dash-hyphen.
|
17
|
-
* Added a new option to bin/ruby-hyphen to support the new feature.
|
18
|
-
* Bug Fix:
|
19
|
-
* bin/ruby-hyphen didn't work when visualizing to a size. Fixed.
|
20
|
-
|
21
|
-
== 1.2.1 / 2012.04.05
|
22
|
-
* Bug Fix:
|
23
|
-
* Fixed some typos in the README
|
24
|
-
* Test Coverage:
|
25
|
-
* Tested on the following versions under Mac OS X 10.7:
|
26
|
-
* mri-1.8.7-p358: 5 tests, 45 assertions, 0 failures, 0 errors, 0 skips
|
27
|
-
* mri-1.9.2-p318: 5 tests, 45 assertions, 0 failures, 0 errors, 0 skips
|
28
|
-
* mri-1.9.3-p125: 5 tests, 45 assertions, 0 failures, 0 errors, 0 skips
|
29
|
-
* mri-2.0.0-dev: 5 tests, 45 assertions, 0 failures, 0 errors, 0 skips
|
30
|
-
* jruby-1.6.7 (1.8 mode): 5 tests, 45 assertions, 0 failures, 0 errors
|
31
|
-
* jruby-1.6.7 (1.9 mode): 5 tests, 45 assertions, 0 failures, 0 errors, 0 skips
|
32
|
-
* jruby-1.7.0-dev (1.8 mode): 5 tests, 45 assertions, 0 failures, 0 errors
|
33
|
-
* jruby-1.7.0-dev (1.9 mode): 5 tests, 45 assertions, 0 failures, 0 errors, 0 skips
|
34
|
-
* ree-1.8.7-2012.02: 5 tests, 45 assertions, 0 failures, 0 errors
|
35
|
-
* rbx-2.0.0-dev: 5 tests, 45 assertions, 0 failures, 0 errors
|
36
|
-
* Versions tested previously should continue to work. Versions not currently
|
37
|
-
tested were not installed on the test system.
|
38
|
-
|
39
|
-
== 1.2 / 2011.07.17
|
40
|
-
* Major Enhancements:
|
41
|
-
* This release supports Ruby 1.9 with UTF-8 encodings. The language files are
|
42
|
-
duplicated for both Ruby 1.8 and 1.9 and the correct version is loaded
|
43
|
-
based on RUBY\_VERSION.
|
44
|
-
* Minor Enhancements:
|
45
|
-
* Making Hungarian and Norwegian language files act like the German language
|
46
|
-
files (both of these languages have two alternative hyphenation tables).
|
47
|
-
* Added a Malasy language file that should work correctly.
|
48
|
-
* Cleaned up the documentation.
|
49
|
-
* Bug Fixes:
|
50
|
-
* Fixed 9807 and 28128 (previously noted as not reproducible; quality
|
51
|
-
reproduction cases were found).
|
52
|
-
* Changes:
|
53
|
-
* Relicensing the core library to the MIT license and attempting to clarify
|
54
|
-
the license situation.
|
55
|
-
* Renaming hyphen to ruby-hyphen.
|
56
|
-
* This is the final release compatible with Ruby 1.8, first release
|
57
|
-
compatible with Ruby 1.9.
|
58
|
-
* Test Coverage:
|
59
|
-
* Tested with all major Ruby releases except IronRuby.
|
60
|
-
* jruby-1.6.3 (1.8.7): passes all tests.
|
61
|
-
* jruby-1.6.3 (1.9.2): fails one UTF-8 related test (see JRUBY-5927).
|
62
|
-
* macruby-0.10 (1.9.2): passes all tests. Segfault with "rake test" (see
|
63
|
-
https://www.macruby.org/trac/ticket/1362 for more information).
|
64
|
-
* maglev-ruby-0.9 (1.8.7): passes all tests.
|
65
|
-
* rubinius-1.2.5 (1.8.7): passes all tests.
|
66
|
-
* ree-1.8.7-2011.03 (1.8.7): passes all tests.
|
67
|
-
* MRI-1.8.7-p352 (1.8.7): passes all tests.
|
68
|
-
* MRI-1.9.2-p290 (1.9.2): passes all tests.
|
69
|
-
|
70
|
-
== 1.0.2 / 2011.02.09
|
71
|
-
* Moved to 'hoe' and GitHub.
|
72
|
-
* Preparing for 2.0 which will be Ruby 1.9-only for UTF-8.
|
73
|
-
* Fixing German support (RubyForge 28498):
|
74
|
-
* Choosing 'de' as a language will load 'de1'. Choosing 'de1' or 'de2' will
|
75
|
-
load properly now, but they will be reported with an ISO language code of
|
76
|
-
'de' (new optional #isocode attribute on a language definition that will
|
77
|
-
override the #iso_language setting of a Text::Hyphen instance if set).
|
78
|
-
* Both 'de1' and 'de2' can be loaded simultaneously now, but the first one
|
79
|
-
loaded will claim the Text::Hyphen::Language::DE constant.
|
80
|
-
* Added test cases for bugs:
|
81
|
-
* RubyForge 9807 (cannot reproduce)
|
82
|
-
* RubyForge 28128 (cannot reproduce)
|
83
|
-
* RubyForge 28498
|
84
|
-
|
85
|
-
== 1.0.1
|
86
|
-
* Minor modification to the RubyGem release of Text::Hyphen to enable the
|
87
|
-
hyphen command-line program.
|
88
|
-
|
89
|
-
== 1.0.0
|
90
|
-
* Initial version based on TeX::Hyphen 0.4.0 (some changes have been
|
91
|
-
backported to TeX::Hyphen 0.5.0).
|
92
|
-
* Incorporated many hyphenation pattern files from CTAN.
|
data/License.rdoc
DELETED
@@ -1,159 +0,0 @@
|
|
1
|
-
== License
|
2
|
-
|
3
|
-
Licensing for Text::Hyphen is unfortunately complex because of the various
|
4
|
-
copyrights and licenses of the source hyphenation files that have been
|
5
|
-
converted to Ruby format. Some of these files are available only under the TeX
|
6
|
-
license and others are available only under the GNU GPL while others are public
|
7
|
-
domain. Each language file has these licenses embedded within the file. Please
|
8
|
-
consult each file's license to ensure that it is compatible with your
|
9
|
-
application.
|
10
|
-
|
11
|
-
The Text::Hyphen library software, the application ruby-hyphen, and the library
|
12
|
-
(gem) as a compilation is licensed under the terms of the MIT license. The
|
13
|
-
files in this distribution covered by this license are in the list below called
|
14
|
-
"Library Files".
|
15
|
-
|
16
|
-
Individual language hyphenation files (in the list called "Language Files") are
|
17
|
-
maintained under the license described in the language file itself; the
|
18
|
-
copyright for these original files is held by the original authors; any
|
19
|
-
mistakes made in conversion of these files to Ruby is attributable to the
|
20
|
-
contributors of the Text::Hyphen package only. If license information is not
|
21
|
-
present in a given Language File, it should be considered under the terms of
|
22
|
-
TeX.
|
23
|
-
|
24
|
-
=== Library License
|
25
|
-
* Copyright Austin Ziegler, 2004–2012
|
26
|
-
|
27
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
28
|
-
this software and associated documentation files (the "Software"), to deal in
|
29
|
-
the Software without restriction, including without limitation the rights to
|
30
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
31
|
-
of the Software, and to permit persons to whom the Software is furnished to do
|
32
|
-
so, subject to the following conditions:
|
33
|
-
|
34
|
-
The above copyright notice and this permission notice shall be included in all
|
35
|
-
copies or substantial portions of the Software.
|
36
|
-
|
37
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
38
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
39
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
40
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
41
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
42
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
43
|
-
SOFTWARE.
|
44
|
-
|
45
|
-
The copyright on the Text::Hyphen application/library and the Ruby
|
46
|
-
translations of hyphenation files belongs to Austin Ziegler. All other
|
47
|
-
copyrights on original versions still stand; Text::Hyphen is a derivative work
|
48
|
-
of these and other projects.
|
49
|
-
|
50
|
-
=== Library Files
|
51
|
-
Note that while this list appears to include language files, these are "loader"
|
52
|
-
files only and do not contain the hyphenation patterns themselves.
|
53
|
-
|
54
|
-
* lib/text-hyphen.rb
|
55
|
-
* lib/text/hyphen.rb
|
56
|
-
* lib/text/hyphen/language.rb
|
57
|
-
* lib/text/hyphen/language/ca.rb
|
58
|
-
* lib/text/hyphen/language/cs.rb
|
59
|
-
* lib/text/hyphen/language/da.rb
|
60
|
-
* lib/text/hyphen/language/de.rb
|
61
|
-
* lib/text/hyphen/language/de1.rb
|
62
|
-
* lib/text/hyphen/language/de2.rb
|
63
|
-
* lib/text/hyphen/language/en_uk.rb
|
64
|
-
* lib/text/hyphen/language/en_us.rb
|
65
|
-
* lib/text/hyphen/language/es.rb
|
66
|
-
* lib/text/hyphen/language/et.rb
|
67
|
-
* lib/text/hyphen/language/eu.rb
|
68
|
-
* lib/text/hyphen/language/fi.rb
|
69
|
-
* lib/text/hyphen/language/fr.rb
|
70
|
-
* lib/text/hyphen/language/ga.rb
|
71
|
-
* lib/text/hyphen/language/hr.rb
|
72
|
-
* lib/text/hyphen/language/hsb.rb
|
73
|
-
* lib/text/hyphen/language/hu.rb
|
74
|
-
* lib/text/hyphen/language/hu1.rb
|
75
|
-
* lib/text/hyphen/language/hu2.rb
|
76
|
-
* lib/text/hyphen/language/ia.rb
|
77
|
-
* lib/text/hyphen/language/id.rb
|
78
|
-
* lib/text/hyphen/language/is.rb
|
79
|
-
* lib/text/hyphen/language/it.rb
|
80
|
-
* lib/text/hyphen/language/la.rb
|
81
|
-
* lib/text/hyphen/language/mn.rb
|
82
|
-
* lib/text/hyphen/language/ms.rb
|
83
|
-
* lib/text/hyphen/language/nl.rb
|
84
|
-
* lib/text/hyphen/language/no.rb
|
85
|
-
* lib/text/hyphen/language/no1.rb
|
86
|
-
* lib/text/hyphen/language/no2.rb
|
87
|
-
* lib/text/hyphen/language/pl.rb
|
88
|
-
* lib/text/hyphen/language/pt.rb
|
89
|
-
* lib/text/hyphen/language/sv.rb
|
90
|
-
* test/data/bug_9807_latin1.rb
|
91
|
-
* test/data/bug_9807_utf-8.rb
|
92
|
-
* test/test_bugs.rb
|
93
|
-
* test/test_text_hyphen.rb
|
94
|
-
* text-hyphen.gemspec
|
95
|
-
* History.rdoc
|
96
|
-
* License.rdoc
|
97
|
-
* README.rdoc
|
98
|
-
* Rakefile
|
99
|
-
* bin/ruby-hyphen
|
100
|
-
|
101
|
-
=== Language Files
|
102
|
-
* lib/text/hyphen/language/1.8/ca.rb
|
103
|
-
* lib/text/hyphen/language/1.8/cs.rb
|
104
|
-
* lib/text/hyphen/language/1.8/da.rb
|
105
|
-
* lib/text/hyphen/language/1.8/de1.rb
|
106
|
-
* lib/text/hyphen/language/1.8/de2.rb
|
107
|
-
* lib/text/hyphen/language/1.8/en_uk.rb
|
108
|
-
* lib/text/hyphen/language/1.8/en_us.rb
|
109
|
-
* lib/text/hyphen/language/1.8/es.rb
|
110
|
-
* lib/text/hyphen/language/1.8/et.rb
|
111
|
-
* lib/text/hyphen/language/1.8/eu.rb
|
112
|
-
* lib/text/hyphen/language/1.8/fi.rb
|
113
|
-
* lib/text/hyphen/language/1.8/fr.rb
|
114
|
-
* lib/text/hyphen/language/1.8/ga.rb
|
115
|
-
* lib/text/hyphen/language/1.8/hr.rb
|
116
|
-
* lib/text/hyphen/language/1.8/hsb.rb
|
117
|
-
* lib/text/hyphen/language/1.8/hu1.rb
|
118
|
-
* lib/text/hyphen/language/1.8/hu2.rb
|
119
|
-
* lib/text/hyphen/language/1.8/ia.rb
|
120
|
-
* lib/text/hyphen/language/1.8/id.rb
|
121
|
-
* lib/text/hyphen/language/1.8/is.rb
|
122
|
-
* lib/text/hyphen/language/1.8/it.rb
|
123
|
-
* lib/text/hyphen/language/1.8/la.rb
|
124
|
-
* lib/text/hyphen/language/1.8/mn.rb
|
125
|
-
* lib/text/hyphen/language/1.8/nl.rb
|
126
|
-
* lib/text/hyphen/language/1.8/no1.rb
|
127
|
-
* lib/text/hyphen/language/1.8/no2.rb
|
128
|
-
* lib/text/hyphen/language/1.8/pl.rb
|
129
|
-
* lib/text/hyphen/language/1.8/pt.rb
|
130
|
-
* lib/text/hyphen/language/1.8/sv.rb
|
131
|
-
* lib/text/hyphen/language/1.9/ca.rb
|
132
|
-
* lib/text/hyphen/language/1.9/cs.rb
|
133
|
-
* lib/text/hyphen/language/1.9/da.rb
|
134
|
-
* lib/text/hyphen/language/1.9/de1.rb
|
135
|
-
* lib/text/hyphen/language/1.9/de2.rb
|
136
|
-
* lib/text/hyphen/language/1.9/en_uk.rb
|
137
|
-
* lib/text/hyphen/language/1.9/en_us.rb
|
138
|
-
* lib/text/hyphen/language/1.9/es.rb
|
139
|
-
* lib/text/hyphen/language/1.9/et.rb
|
140
|
-
* lib/text/hyphen/language/1.9/eu.rb
|
141
|
-
* lib/text/hyphen/language/1.9/fi.rb
|
142
|
-
* lib/text/hyphen/language/1.9/fr.rb
|
143
|
-
* lib/text/hyphen/language/1.9/ga.rb
|
144
|
-
* lib/text/hyphen/language/1.9/hr.rb
|
145
|
-
* lib/text/hyphen/language/1.9/hsb.rb
|
146
|
-
* lib/text/hyphen/language/1.9/hu1.rb
|
147
|
-
* lib/text/hyphen/language/1.9/hu2.rb
|
148
|
-
* lib/text/hyphen/language/1.9/ia.rb
|
149
|
-
* lib/text/hyphen/language/1.9/id.rb
|
150
|
-
* lib/text/hyphen/language/1.9/is.rb
|
151
|
-
* lib/text/hyphen/language/1.9/it.rb
|
152
|
-
* lib/text/hyphen/language/1.9/la.rb
|
153
|
-
* lib/text/hyphen/language/1.9/mn.rb
|
154
|
-
* lib/text/hyphen/language/1.9/nl.rb
|
155
|
-
* lib/text/hyphen/language/1.9/no1.rb
|
156
|
-
* lib/text/hyphen/language/1.9/no2.rb
|
157
|
-
* lib/text/hyphen/language/1.9/pl.rb
|
158
|
-
* lib/text/hyphen/language/1.9/pt.rb
|
159
|
-
* lib/text/hyphen/language/1.9/sv.rb
|