text-hyphen 1.4.1 → 1.5.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.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/.standard.yml +5 -0
  3. data/Code-of-Conduct.md +73 -0
  4. data/Contributing.md +68 -0
  5. data/History.md +139 -0
  6. data/Licence.md +159 -0
  7. data/Manifest.txt +12 -5
  8. data/README.md +81 -0
  9. data/Rakefile +68 -19
  10. data/bin/ruby-hyphen +0 -0
  11. data/lib/text/hyphen/language/1.8/de1.rb +1307 -571
  12. data/lib/text/hyphen/language/1.8/en_us.rb +412 -453
  13. data/lib/text/hyphen/language/1.8/fr.rb +128 -334
  14. data/lib/text/hyphen/language/1.8/la.rb +1 -0
  15. data/lib/text/hyphen/language/1.8/lt.rb +115 -0
  16. data/lib/text/hyphen/language/1.8/pt.rb +2 -1
  17. data/lib/text/hyphen/language/1.8/sk.rb +277 -0
  18. data/lib/text/hyphen/language/1.9/ca.rb +2 -1
  19. data/lib/text/hyphen/language/1.9/cs.rb +2 -1
  20. data/lib/text/hyphen/language/1.9/da.rb +2 -1
  21. data/lib/text/hyphen/language/1.9/de1.rb +1382 -646
  22. data/lib/text/hyphen/language/1.9/de2.rb +110 -109
  23. data/lib/text/hyphen/language/1.9/en_uk.rb +2 -1
  24. data/lib/text/hyphen/language/1.9/en_us.rb +412 -454
  25. data/lib/text/hyphen/language/1.9/es.rb +2 -1
  26. data/lib/text/hyphen/language/1.9/et.rb +6 -5
  27. data/lib/text/hyphen/language/1.9/eu.rb +4 -3
  28. data/lib/text/hyphen/language/1.9/fi.rb +3 -2
  29. data/lib/text/hyphen/language/1.9/fr.rb +136 -343
  30. data/lib/text/hyphen/language/1.9/ga.rb +27 -26
  31. data/lib/text/hyphen/language/1.9/hr.rb +6 -5
  32. data/lib/text/hyphen/language/1.9/hsb.rb +3 -2
  33. data/lib/text/hyphen/language/1.9/hu1.rb +3 -2
  34. data/lib/text/hyphen/language/1.9/hu2.rb +5 -4
  35. data/lib/text/hyphen/language/1.9/ia.rb +2 -1
  36. data/lib/text/hyphen/language/1.9/id.rb +8 -7
  37. data/lib/text/hyphen/language/1.9/is.rb +2 -1
  38. data/lib/text/hyphen/language/1.9/it.rb +74 -74
  39. data/lib/text/hyphen/language/1.9/la.rb +54 -53
  40. data/lib/text/hyphen/language/1.9/lt.rb +116 -0
  41. data/lib/text/hyphen/language/1.9/mn.rb +7 -6
  42. data/lib/text/hyphen/language/1.9/nl.rb +2 -1
  43. data/lib/text/hyphen/language/1.9/no1.rb +3 -2
  44. data/lib/text/hyphen/language/1.9/no2.rb +3 -2
  45. data/lib/text/hyphen/language/1.9/pl.rb +2 -1
  46. data/lib/text/hyphen/language/1.9/pt.rb +3 -2
  47. data/lib/text/hyphen/language/1.9/ru.rb +2 -1
  48. data/lib/text/hyphen/language/1.9/sk.rb +280 -0
  49. data/lib/text/hyphen/language/1.9/sv.rb +4 -3
  50. data/lib/text/hyphen/language/cs.rb +1 -1
  51. data/lib/text/hyphen/language/de.rb +2 -1
  52. data/lib/text/hyphen/language/de1.rb +1 -1
  53. data/lib/text/hyphen/language/de2.rb +1 -1
  54. data/lib/text/hyphen/language/en_us.rb +1 -1
  55. data/lib/text/hyphen/language/eu.rb +1 -1
  56. data/lib/text/hyphen/language/fr.rb +1 -1
  57. data/lib/text/hyphen/language/hu.rb +1 -1
  58. data/lib/text/hyphen/language/hu1.rb +1 -1
  59. data/lib/text/hyphen/language/hu2.rb +1 -1
  60. data/lib/text/hyphen/language/is.rb +1 -1
  61. data/lib/text/hyphen/language/lt.rb +4 -0
  62. data/lib/text/hyphen/language/ms.rb +3 -3
  63. data/lib/text/hyphen/language/nl.rb +1 -1
  64. data/lib/text/hyphen/language/no.rb +1 -1
  65. data/lib/text/hyphen/language/sk.rb +4 -0
  66. data/lib/text/hyphen/language.rb +45 -45
  67. data/lib/text/hyphen.rb +139 -97
  68. data/lib/text-hyphen.rb +1 -1
  69. data/test/data/bug_9807_latin1.rb +2 -2
  70. data/test/data/bug_9807_utf-8.rb +1 -1
  71. data/test/test_bugs.rb +14 -13
  72. data/test/test_text_hyphen.rb +31 -21
  73. metadata +146 -96
  74. data/.autotest +0 -23
  75. data/.gemtest +0 -0
  76. data/History.rdoc +0 -99
  77. data/License.rdoc +0 -159
  78. data/README.rdoc +0 -95
  79. data/text-hyphen.gemspec +0 -51
@@ -1,11 +1,12 @@
1
1
  # coding: utf-8
2
- require 'test/unit'
3
- require 'text-hyphen'
2
+
3
+ require "test/unit"
4
+ require "text-hyphen"
4
5
 
5
6
  class TestTextHyphen < Test::Unit::TestCase
6
- WORDS = %w(additional declination going leaving maximizes multiple peter
7
- playback presents programmable representation)
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], # programmable -- 20041220 New hyphenation directives.
19
+ [3, 7, 9], # programmable
19
20
  [3, 5, 8, 10] # representation
20
21
  ]
21
22
 
22
- VISUAL = %w(ad-di-tion-al dec-li-na-tion go-ing leav-ing max-i-mizes
23
- mul-ti-ple pe-ter play-back presents pro-gram-mable
24
- rep-re-sen-ta-tion)
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 = [ %w(addi- tional), %w(dec- lination), %w(go- ing),
27
- %w(leav- ing), %w(maxi- mizes), %w(mul- tiple), %w(pe- ter),
28
- %w(play- back), [nil, 'presents'], %w(pro- grammable),
29
- %w(rep- resentation)]
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 = "&shy;"
32
33
 
33
34
  def test_hyphenate
34
35
  @r = []
35
36
  a = Text::Hyphen.new do |xx|
36
- xx.left = 0
37
- xx.right = 0
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,30 @@ class TestTextHyphen < Test::Unit::TestCase
58
59
  end
59
60
 
60
61
  def test_alt_hyphen_for_visualize
61
- a = Text::Hyphen.new.visualize('backpack', SOFT_HYPHEN)
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('representation', SOFT_HYPHEN)
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('backpack', 5, SOFT_HYPHEN)
70
- assert_equal ["back#{SOFT_HYPHEN}", 'pack'], a
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 => 'ru').visualize('скоропалительный')
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
78
88
  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.4.1
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: 2012-08-27 00:00:00.000000000 Z
11
+ date: 2023-03-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: rdoc
14
+ name: hoe
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
- version: '3.10'
19
+ version: '3.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::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
28
  - !ruby/object:Gem::Version
29
- version: '3.10'
29
+ version: '3.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5'
30
33
  - !ruby/object:Gem::Dependency
31
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
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
46
  version: '1.0'
46
47
  - !ruby/object:Gem::Dependency
47
- name: hoe-gemspec
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.0'
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.0'
60
+ version: '1.1'
61
+ - !ruby/object:Gem::Dependency
62
+ name: hoe-git2
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '1.7'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '1.7'
62
75
  - !ruby/object:Gem::Dependency
63
- name: hoe-git
76
+ name: hoe-rubygems
64
77
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
78
  requirements:
67
- - - ~>
79
+ - - "~>"
68
80
  - !ruby/object:Gem::Version
69
81
  version: '1.0'
70
82
  type: :development
71
83
  prerelease: false
72
84
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
85
  requirements:
75
- - - ~>
86
+ - - "~>"
76
87
  - !ruby/object:Gem::Version
77
88
  version: '1.0'
78
89
  - !ruby/object:Gem::Dependency
79
- name: hoe-seattlerb
90
+ name: test-unit
80
91
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
92
  requirements:
83
- - - ~>
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
125
+ requirement: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
84
128
  - !ruby/object:Gem::Version
85
129
  version: '1.0'
86
130
  type: :development
87
131
  prerelease: false
88
132
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
133
  requirements:
91
- - - ~>
134
+ - - "~>"
92
135
  - !ruby/object:Gem::Version
93
136
  version: '1.0'
94
137
  - !ruby/object:Gem::Dependency
95
- name: hoe
138
+ name: rdoc
96
139
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
140
  requirements:
99
- - - ~>
141
+ - - ">="
100
142
  - !ruby/object:Gem::Version
101
- version: '3.0'
143
+ version: '4.0'
144
+ - - "<"
145
+ - !ruby/object:Gem::Version
146
+ version: '7'
102
147
  type: :development
103
148
  prerelease: false
104
149
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
150
  requirements:
107
- - - ~>
151
+ - - ">="
108
152
  - !ruby/object:Gem::Version
109
- version: '3.0'
110
- description: ! 'Text::Hyphen is a Ruby library to hyphenate words in various languages
111
- using
112
-
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
113
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.
114
176
 
115
- various words according to the rules of the language the word is written in.
116
-
117
- The algorithm is based on that of the TeX typesetting system by Donald E.
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
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.
131
181
 
132
- by Austin Ziegler.
133
-
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.'
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.
144
187
  email:
145
- - austin@rubyforge.org
188
+ - halostatue@gmail.com
146
189
  executables:
147
190
  - ruby-hyphen
148
191
  extensions: []
149
192
  extra_rdoc_files:
150
- - History.rdoc
151
- - License.rdoc
193
+ - Code-of-Conduct.md
194
+ - Contributing.md
195
+ - History.md
196
+ - Licence.md
152
197
  - Manifest.txt
153
- - README.rdoc
198
+ - README.md
154
199
  files:
155
- - .autotest
156
- - History.rdoc
157
- - License.rdoc
200
+ - ".standard.yml"
201
+ - Code-of-Conduct.md
202
+ - Contributing.md
203
+ - History.md
204
+ - Licence.md
158
205
  - Manifest.txt
159
- - README.rdoc
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,38 @@ 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
- - text-hyphen.gemspec
264
- - .gemtest
265
- homepage:
266
- licenses: []
267
- post_install_message:
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:
268
323
  rdoc_options:
269
- - --main
270
- - README.rdoc
324
+ - "--main"
325
+ - README.md
271
326
  require_paths:
272
327
  - lib
273
328
  required_ruby_version: !ruby/object:Gem::Requirement
274
- none: false
275
329
  requirements:
276
- - - ! '>='
330
+ - - ">="
277
331
  - !ruby/object:Gem::Version
278
332
  version: '0'
279
333
  required_rubygems_version: !ruby/object:Gem::Requirement
280
- none: false
281
334
  requirements:
282
- - - ! '>='
335
+ - - ">="
283
336
  - !ruby/object:Gem::Version
284
337
  version: '0'
285
338
  requirements: []
286
- rubyforge_project: text-hyphen
287
- rubygems_version: 1.8.21
288
- signing_key:
289
- specification_version: 3
339
+ rubygems_version: 3.1.6
340
+ signing_key:
341
+ specification_version: 4
290
342
  summary: Text::Hyphen is a Ruby library to hyphenate words in various languages using
291
343
  Ruby-fied versions of TeX hyphenation patterns
292
- test_files:
293
- - test/test_bugs.rb
294
- - 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,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.