text-hyphen 1.4.1 → 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 +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 +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 +146 -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/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
|
data/README.rdoc
DELETED
@@ -1,95 +0,0 @@
|
|
1
|
-
= text-hyphen
|
2
|
-
|
3
|
-
== Description
|
4
|
-
|
5
|
-
Text::Hyphen is a Ruby library to hyphenate words in various languages using
|
6
|
-
Ruby-fied versions of TeX hyphenation patterns. It will properly hyphenate
|
7
|
-
various words according to the rules of the language the word is written in.
|
8
|
-
The algorithm is based on that of the TeX typesetting system by Donald E.
|
9
|
-
Knuth.
|
10
|
-
|
11
|
-
This is originally based on the Perl implementation of
|
12
|
-
{TeX::Hyphen}[http://search.cpan.org/author/JANPAZ/TeX-Hyphen-0.140/lib/TeX/Hyphen.pm]
|
13
|
-
and the {Ruby port}[http://rubyforge.org/projects/text-format]. The language
|
14
|
-
hyphenation pattern files are based on the sources available from
|
15
|
-
{CTAN}[http://www.ctan.org] as of 2004.12.19 and have been manually translated
|
16
|
-
by Austin Ziegler.
|
17
|
-
|
18
|
-
This is a small feature release adding Russian language support and fixing a
|
19
|
-
bug in the custom hyphen support introduced last version. This release provides
|
20
|
-
both Ruby 1.8.7 and Ruby 1.9.2 support (but please read below). In short, Ruby
|
21
|
-
1.8 support is deprecated and I will not be providing any bug fixes related to
|
22
|
-
Ruby 1.8. New features will be developed and tested against Ruby 1.9 only.
|
23
|
-
|
24
|
-
== Where
|
25
|
-
|
26
|
-
* {RubyForge}[http://rubyforge.org/projects/text-format/]
|
27
|
-
* {RubyGems}[https://rubygems.org/gems/text-hyphen]
|
28
|
-
* {GitHub}[https://github.com/halostatue/text-hyphen/]
|
29
|
-
* {RDoc}[http://rdoc.info/github/halostatue/text-hyphen/master/frames]
|
30
|
-
|
31
|
-
== Synopsis
|
32
|
-
|
33
|
-
require 'text/hyphen'
|
34
|
-
hh = Text::Hyphen.new(:language => 'en_us', :left => 2, :right => 2)
|
35
|
-
# Defaults to the above
|
36
|
-
hh = Text::Hyphen.new
|
37
|
-
|
38
|
-
word = "representation"
|
39
|
-
points = hh.hyphenate(word) #=> [3, 5, 8, 10]
|
40
|
-
puts hh.visualize(word) #=> rep-re-sen-ta-tion
|
41
|
-
|
42
|
-
Both visualize and hyphenate_to methods allow choosing a custom hyphen:
|
43
|
-
|
44
|
-
puts hh.visualize(word, "­") #=> rep­re­sen­ta­tion
|
45
|
-
|
46
|
-
|
47
|
-
Text::Hyphen is truly multilingual, with 29 languages or language variants
|
48
|
-
supported. As an example, consider the difference between the following:
|
49
|
-
|
50
|
-
require 'text/hyphen'
|
51
|
-
# Using left and right minimum values of 0 ensures that you will see all
|
52
|
-
# possible hyphenation points, not just those that meet the minimum width
|
53
|
-
# requirements.
|
54
|
-
en = Text::Hyphen.new(:left => 0, :right => 0)
|
55
|
-
fr = Text::Hyphen.new(:language => "fr", :left => 0, :right => 0)
|
56
|
-
|
57
|
-
puts en.visualise("organiser") #=> or-gan-iser
|
58
|
-
puts fr.visualise("organiser") #=> or-ga-ni-ser
|
59
|
-
|
60
|
-
As you can see, the hyphenation is distinct between the two hyphenators.
|
61
|
-
Additional improvements over TeX::Hyphen include thread safety (except for
|
62
|
-
debug control) and support for UTF-8 under Ruby 1.9.
|
63
|
-
|
64
|
-
== Install
|
65
|
-
gem install text-hyphen
|
66
|
-
|
67
|
-
=== A Note About Ruby 1.8 Support
|
68
|
-
|
69
|
-
I've been saying for a couple of releases that "this is the last major release
|
70
|
-
supporting Ruby 1.8 interpreters. Future versions will only work with Ruby 1.9
|
71
|
-
or later interpreters." Let me clarify my position on this, because removing
|
72
|
-
Ruby 1.8 support requires effort that I am not putting in as of yet.
|
73
|
-
|
74
|
-
* I currently use rbenv and this machine has a version with Ruby 1.8.7
|
75
|
-
installed (and Mac OS X ships with Ruby 1.8.7 anyway).
|
76
|
-
* I will continue to run the test suite against all installed versions of Ruby
|
77
|
-
that I have on this machine.
|
78
|
-
* If you submit a patch or pull request, I do not require 1.8.7 support. Until
|
79
|
-
I decide to move this project from 1.x to 2.x versioning, features that do
|
80
|
-
not support 1.8 must be guarded. If the feature is sufficiently complex, I
|
81
|
-
can be convinced to switch to 2.x.
|
82
|
-
* I will not fix any bugs related to Ruby 1.8.7. I will accept patches or pull
|
83
|
-
requests that fix bugs that others find, however.
|
84
|
-
* I strongly recommend that your gem specification for text-hyphen be '~> 1.4'.
|
85
|
-
|
86
|
-
== Developers
|
87
|
-
|
88
|
-
After checking out the source, run:
|
89
|
-
|
90
|
-
$ rake newb
|
91
|
-
|
92
|
-
This task will install any missing dependencies, run the tests/specs,
|
93
|
-
and generate the RDoc.
|
94
|
-
|
95
|
-
:include: License.rdoc
|
data/text-hyphen.gemspec
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = "text-hyphen"
|
5
|
-
s.version = "1.4"
|
6
|
-
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Austin Ziegler"]
|
9
|
-
s.date = "2012-08-26"
|
10
|
-
s.description = "Text::Hyphen is a Ruby library to hyphenate words in various languages using\nRuby-fied versions of TeX hyphenation patterns. It will properly hyphenate\nvarious words according to the rules of the language the word is written in.\nThe algorithm is based on that of the TeX typesetting system by Donald E.\nKnuth.\n\nThis is originally based on the Perl implementation of\n{TeX::Hyphen}[http://search.cpan.org/author/JANPAZ/TeX-Hyphen-0.140/lib/TeX/Hyphen.pm]\nand the {Ruby port}[http://rubyforge.org/projects/text-format]. The language\nhyphenation pattern files are based on the sources available from\n{CTAN}[http://www.ctan.org] as of 2004.12.19 and have been manually translated\nby Austin Ziegler.\n\nThis is a small feature release adding support for custom hyphens and fixing a\nbug in ruby-hyphen. This release provides both Ruby 1.8.7 and Ruby 1.9.2\nsupport. This is the last major release supporting Ruby 1.8 interpreters.\nFuture versions will only work with Ruby 1.9 or later interpreters."
|
11
|
-
s.email = ["austin@rubyforge.org"]
|
12
|
-
s.executables = ["ruby-hyphen"]
|
13
|
-
s.extra_rdoc_files = ["History.rdoc", "License.rdoc", "Manifest.txt", "README.rdoc", "History.rdoc", "License.rdoc", "README.rdoc"]
|
14
|
-
s.files = [".autotest", "History.rdoc", "License.rdoc", "Manifest.txt", "README.rdoc", "Rakefile", "bin/ruby-hyphen", "lib/text-hyphen.rb", "lib/text/hyphen.rb", "lib/text/hyphen/language.rb", "lib/text/hyphen/language/1.8/ca.rb", "lib/text/hyphen/language/1.8/cs.rb", "lib/text/hyphen/language/1.8/da.rb", "lib/text/hyphen/language/1.8/de1.rb", "lib/text/hyphen/language/1.8/de2.rb", "lib/text/hyphen/language/1.8/en_uk.rb", "lib/text/hyphen/language/1.8/en_us.rb", "lib/text/hyphen/language/1.8/es.rb", "lib/text/hyphen/language/1.8/et.rb", "lib/text/hyphen/language/1.8/eu.rb", "lib/text/hyphen/language/1.8/fi.rb", "lib/text/hyphen/language/1.8/fr.rb", "lib/text/hyphen/language/1.8/ga.rb", "lib/text/hyphen/language/1.8/hr.rb", "lib/text/hyphen/language/1.8/hsb.rb", "lib/text/hyphen/language/1.8/hu1.rb", "lib/text/hyphen/language/1.8/hu2.rb", "lib/text/hyphen/language/1.8/ia.rb", "lib/text/hyphen/language/1.8/id.rb", "lib/text/hyphen/language/1.8/is.rb", "lib/text/hyphen/language/1.8/it.rb", "lib/text/hyphen/language/1.8/la.rb", "lib/text/hyphen/language/1.8/mn.rb", "lib/text/hyphen/language/1.8/nl.rb", "lib/text/hyphen/language/1.8/no1.rb", "lib/text/hyphen/language/1.8/no2.rb", "lib/text/hyphen/language/1.8/pl.rb", "lib/text/hyphen/language/1.8/pt.rb", "lib/text/hyphen/language/1.8/sv.rb", "lib/text/hyphen/language/1.9/ca.rb", "lib/text/hyphen/language/1.9/cs.rb", "lib/text/hyphen/language/1.9/da.rb", "lib/text/hyphen/language/1.9/de1.rb", "lib/text/hyphen/language/1.9/de2.rb", "lib/text/hyphen/language/1.9/en_uk.rb", "lib/text/hyphen/language/1.9/en_us.rb", "lib/text/hyphen/language/1.9/es.rb", "lib/text/hyphen/language/1.9/et.rb", "lib/text/hyphen/language/1.9/eu.rb", "lib/text/hyphen/language/1.9/fi.rb", "lib/text/hyphen/language/1.9/fr.rb", "lib/text/hyphen/language/1.9/ga.rb", "lib/text/hyphen/language/1.9/hr.rb", "lib/text/hyphen/language/1.9/hsb.rb", "lib/text/hyphen/language/1.9/hu1.rb", "lib/text/hyphen/language/1.9/hu2.rb", "lib/text/hyphen/language/1.9/ia.rb", "lib/text/hyphen/language/1.9/id.rb", "lib/text/hyphen/language/1.9/is.rb", "lib/text/hyphen/language/1.9/it.rb", "lib/text/hyphen/language/1.9/la.rb", "lib/text/hyphen/language/1.9/mn.rb", "lib/text/hyphen/language/1.9/nl.rb", "lib/text/hyphen/language/1.9/no1.rb", "lib/text/hyphen/language/1.9/no2.rb", "lib/text/hyphen/language/1.9/pl.rb", "lib/text/hyphen/language/1.9/pt.rb", "lib/text/hyphen/language/1.9/sv.rb", "lib/text/hyphen/language/ca.rb", "lib/text/hyphen/language/cs.rb", "lib/text/hyphen/language/da.rb", "lib/text/hyphen/language/de.rb", "lib/text/hyphen/language/de1.rb", "lib/text/hyphen/language/de2.rb", "lib/text/hyphen/language/en_uk.rb", "lib/text/hyphen/language/en_us.rb", "lib/text/hyphen/language/es.rb", "lib/text/hyphen/language/et.rb", "lib/text/hyphen/language/eu.rb", "lib/text/hyphen/language/fi.rb", "lib/text/hyphen/language/fr.rb", "lib/text/hyphen/language/ga.rb", "lib/text/hyphen/language/hr.rb", "lib/text/hyphen/language/hsb.rb", "lib/text/hyphen/language/hu.rb", "lib/text/hyphen/language/hu1.rb", "lib/text/hyphen/language/hu2.rb", "lib/text/hyphen/language/ia.rb", "lib/text/hyphen/language/id.rb", "lib/text/hyphen/language/is.rb", "lib/text/hyphen/language/it.rb", "lib/text/hyphen/language/la.rb", "lib/text/hyphen/language/mn.rb", "lib/text/hyphen/language/ms.rb", "lib/text/hyphen/language/nl.rb", "lib/text/hyphen/language/no.rb", "lib/text/hyphen/language/no1.rb", "lib/text/hyphen/language/no2.rb", "lib/text/hyphen/language/pl.rb", "lib/text/hyphen/language/pt.rb", "lib/text/hyphen/language/sv.rb", "test/data/bug_9807_latin1.rb", "test/data/bug_9807_utf-8.rb", "test/test_bugs.rb", "test/test_text_hyphen.rb", "text-hyphen.gemspec", ".gemtest"]
|
15
|
-
s.rdoc_options = ["--main", "README.rdoc"]
|
16
|
-
s.require_paths = ["lib"]
|
17
|
-
s.rubyforge_project = "text-format"
|
18
|
-
s.rubygems_version = "1.8.21"
|
19
|
-
s.summary = "Text::Hyphen is a Ruby library to hyphenate words in various languages using Ruby-fied versions of TeX hyphenation patterns"
|
20
|
-
s.test_files = ["test/test_bugs.rb", "test/test_text_hyphen.rb"]
|
21
|
-
|
22
|
-
if s.respond_to? :specification_version then
|
23
|
-
s.specification_version = 3
|
24
|
-
|
25
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
26
|
-
s.add_development_dependency(%q<rubyforge>, [">= 2.0.4"])
|
27
|
-
s.add_development_dependency(%q<rdoc>, ["~> 3.10"])
|
28
|
-
s.add_development_dependency(%q<hoe-doofus>, ["~> 1.0"])
|
29
|
-
s.add_development_dependency(%q<hoe-gemspec>, ["~> 1.0"])
|
30
|
-
s.add_development_dependency(%q<hoe-git>, ["~> 1.0"])
|
31
|
-
s.add_development_dependency(%q<hoe-seattlerb>, ["~> 1.0"])
|
32
|
-
s.add_development_dependency(%q<hoe>, ["~> 3.0"])
|
33
|
-
else
|
34
|
-
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
35
|
-
s.add_dependency(%q<rdoc>, ["~> 3.10"])
|
36
|
-
s.add_dependency(%q<hoe-doofus>, ["~> 1.0"])
|
37
|
-
s.add_dependency(%q<hoe-gemspec>, ["~> 1.0"])
|
38
|
-
s.add_dependency(%q<hoe-git>, ["~> 1.0"])
|
39
|
-
s.add_dependency(%q<hoe-seattlerb>, ["~> 1.0"])
|
40
|
-
s.add_dependency(%q<hoe>, ["~> 3.0"])
|
41
|
-
end
|
42
|
-
else
|
43
|
-
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
44
|
-
s.add_dependency(%q<rdoc>, ["~> 3.10"])
|
45
|
-
s.add_dependency(%q<hoe-doofus>, ["~> 1.0"])
|
46
|
-
s.add_dependency(%q<hoe-gemspec>, ["~> 1.0"])
|
47
|
-
s.add_dependency(%q<hoe-git>, ["~> 1.0"])
|
48
|
-
s.add_dependency(%q<hoe-seattlerb>, ["~> 1.0"])
|
49
|
-
s.add_dependency(%q<hoe>, ["~> 3.0"])
|
50
|
-
end
|
51
|
-
end
|