i18n-inflector 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +23 -0
- data/Gemfile +10 -0
- data/LGPL-LICENSE +169 -0
- data/Manifest.txt +20 -0
- data/README.textile +27 -0
- data/Rakefile +100 -0
- data/docs/COPYING +61 -0
- data/docs/HISTORY +6 -0
- data/docs/LEGAL +11 -0
- data/docs/LGPL-LICENSE +169 -0
- data/docs/README +101 -0
- data/docs/rdoc.css +20 -0
- data/lib/i18n-inflector/inflector.rb +652 -0
- data/lib/i18n-inflector/long_comments.rb +399 -0
- data/lib/i18n-inflector/shortcuts.rb +62 -0
- data/lib/i18n-inflector.rb +5 -0
- data/test/all.rb +8 -0
- data/test/backend/inflection_test.rb +249 -0
- data/test/run_all.rb +21 -0
- data/test/test_helper.rb +32 -0
- data.tar.gz.sig +0 -0
- metadata +156 -0
- metadata.gz.sig +2 -0
data/ChangeLog
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
commit 3ed077e240660ff09e4ff3df5e698f198b8eafbf
|
2
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
3
|
+
Date: Wed Dec 22 04:01:25 2010 +0100
|
4
|
+
|
5
|
+
Prepared for v1.0.0
|
6
|
+
|
7
|
+
commit 3cf24746a9a4e3b41ef9b4ee11334df76607d6b6
|
8
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
9
|
+
Date: Wed Dec 22 04:00:13 2010 +0100
|
10
|
+
|
11
|
+
Documentation fixes
|
12
|
+
|
13
|
+
commit 3ceb7f1aeaa1d682ac3d1ee0d091e5be4caad3b6
|
14
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
15
|
+
Date: Wed Dec 22 03:48:07 2010 +0100
|
16
|
+
|
17
|
+
Fixes in documentation, dependencies and examples
|
18
|
+
|
19
|
+
commit 8f88cedae5b9f15a0e468f568103125933af3f27
|
20
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
21
|
+
Date: Wed Dec 22 02:26:03 2010 +0100
|
22
|
+
|
23
|
+
Initial commit
|
data/Gemfile
ADDED
data/LGPL-LICENSE
ADDED
@@ -0,0 +1,169 @@
|
|
1
|
+
<tt>
|
2
|
+
|
3
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
4
|
+
Version 3, 29 June 2007
|
5
|
+
|
6
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
7
|
+
Everyone is permitted to copy and distribute verbatim copies
|
8
|
+
of this license document, but changing it is not allowed.
|
9
|
+
|
10
|
+
|
11
|
+
This version of the GNU Lesser General Public License incorporates
|
12
|
+
the terms and conditions of version 3 of the GNU General Public
|
13
|
+
License, supplemented by the additional permissions listed below.
|
14
|
+
|
15
|
+
0. Additional Definitions.
|
16
|
+
|
17
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
18
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
19
|
+
General Public License.
|
20
|
+
|
21
|
+
"The Library" refers to a covered work governed by this License,
|
22
|
+
other than an Application or a Combined Work as defined below.
|
23
|
+
|
24
|
+
An "Application" is any work that makes use of an interface provided
|
25
|
+
by the Library, but which is not otherwise based on the Library.
|
26
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
27
|
+
of using an interface provided by the Library.
|
28
|
+
|
29
|
+
A "Combined Work" is a work produced by combining or linking an
|
30
|
+
Application with the Library. The particular version of the Library
|
31
|
+
with which the Combined Work was made is also called the "Linked
|
32
|
+
Version".
|
33
|
+
|
34
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
35
|
+
Corresponding Source for the Combined Work, excluding any source code
|
36
|
+
for portions of the Combined Work that, considered in isolation, are
|
37
|
+
based on the Application, and not on the Linked Version.
|
38
|
+
|
39
|
+
The "Corresponding Application Code" for a Combined Work means the
|
40
|
+
object code and/or source code for the Application, including any data
|
41
|
+
and utility programs needed for reproducing the Combined Work from the
|
42
|
+
Application, but excluding the System Libraries of the Combined Work.
|
43
|
+
|
44
|
+
1. Exception to Section 3 of the GNU GPL.
|
45
|
+
|
46
|
+
You may convey a covered work under sections 3 and 4 of this License
|
47
|
+
without being bound by section 3 of the GNU GPL.
|
48
|
+
|
49
|
+
2. Conveying Modified Versions.
|
50
|
+
|
51
|
+
If you modify a copy of the Library, and, in your modifications, a
|
52
|
+
facility refers to a function or data to be supplied by an Application
|
53
|
+
that uses the facility (other than as an argument passed when the
|
54
|
+
facility is invoked), then you may convey a copy of the modified
|
55
|
+
version:
|
56
|
+
|
57
|
+
a) under this License, provided that you make a good faith effort to
|
58
|
+
ensure that, in the event an Application does not supply the
|
59
|
+
function or data, the facility still operates, and performs
|
60
|
+
whatever part of its purpose remains meaningful, or
|
61
|
+
|
62
|
+
b) under the GNU GPL, with none of the additional permissions of
|
63
|
+
this License applicable to that copy.
|
64
|
+
|
65
|
+
3. Object Code Incorporating Material from Library Header Files.
|
66
|
+
|
67
|
+
The object code form of an Application may incorporate material from
|
68
|
+
a header file that is part of the Library. You may convey such object
|
69
|
+
code under terms of your choice, provided that, if the incorporated
|
70
|
+
material is not limited to numerical parameters, data structure
|
71
|
+
layouts and accessors, or small macros, inline functions and templates
|
72
|
+
(ten or fewer lines in length), you do both of the following:
|
73
|
+
|
74
|
+
a) Give prominent notice with each copy of the object code that the
|
75
|
+
Library is used in it and that the Library and its use are
|
76
|
+
covered by this License.
|
77
|
+
|
78
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
79
|
+
document.
|
80
|
+
|
81
|
+
4. Combined Works.
|
82
|
+
|
83
|
+
You may convey a Combined Work under terms of your choice that,
|
84
|
+
taken together, effectively do not restrict modification of the
|
85
|
+
portions of the Library contained in the Combined Work and reverse
|
86
|
+
engineering for debugging such modifications, if you also do each of
|
87
|
+
the following:
|
88
|
+
|
89
|
+
a) Give prominent notice with each copy of the Combined Work that
|
90
|
+
the Library is used in it and that the Library and its use are
|
91
|
+
covered by this License.
|
92
|
+
|
93
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
94
|
+
document.
|
95
|
+
|
96
|
+
c) For a Combined Work that displays copyright notices during
|
97
|
+
execution, include the copyright notice for the Library among
|
98
|
+
these notices, as well as a reference directing the user to the
|
99
|
+
copies of the GNU GPL and this license document.
|
100
|
+
|
101
|
+
d) Do one of the following:
|
102
|
+
|
103
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
104
|
+
License, and the Corresponding Application Code in a form
|
105
|
+
suitable for, and under terms that permit, the user to
|
106
|
+
recombine or relink the Application with a modified version of
|
107
|
+
the Linked Version to produce a modified Combined Work, in the
|
108
|
+
manner specified by section 6 of the GNU GPL for conveying
|
109
|
+
Corresponding Source.
|
110
|
+
|
111
|
+
1) Use a suitable shared library mechanism for linking with the
|
112
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
113
|
+
a copy of the Library already present on the user's computer
|
114
|
+
system, and (b) will operate properly with a modified version
|
115
|
+
of the Library that is interface-compatible with the Linked
|
116
|
+
Version.
|
117
|
+
|
118
|
+
e) Provide Installation Information, but only if you would otherwise
|
119
|
+
be required to provide such information under section 6 of the
|
120
|
+
GNU GPL, and only to the extent that such information is
|
121
|
+
necessary to install and execute a modified version of the
|
122
|
+
Combined Work produced by recombining or relinking the
|
123
|
+
Application with a modified version of the Linked Version. (If
|
124
|
+
you use option 4d0, the Installation Information must accompany
|
125
|
+
the Minimal Corresponding Source and Corresponding Application
|
126
|
+
Code. If you use option 4d1, you must provide the Installation
|
127
|
+
Information in the manner specified by section 6 of the GNU GPL
|
128
|
+
for conveying Corresponding Source.)
|
129
|
+
|
130
|
+
5. Combined Libraries.
|
131
|
+
|
132
|
+
You may place library facilities that are a work based on the
|
133
|
+
Library side by side in a single library together with other library
|
134
|
+
facilities that are not Applications and are not covered by this
|
135
|
+
License, and convey such a combined library under terms of your
|
136
|
+
choice, if you do both of the following:
|
137
|
+
|
138
|
+
a) Accompany the combined library with a copy of the same work based
|
139
|
+
on the Library, uncombined with any other library facilities,
|
140
|
+
conveyed under the terms of this License.
|
141
|
+
|
142
|
+
b) Give prominent notice with the combined library that part of it
|
143
|
+
is a work based on the Library, and explaining where to find the
|
144
|
+
accompanying uncombined form of the same work.
|
145
|
+
|
146
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
147
|
+
|
148
|
+
The Free Software Foundation may publish revised and/or new versions
|
149
|
+
of the GNU Lesser General Public License from time to time. Such new
|
150
|
+
versions will be similar in spirit to the present version, but may
|
151
|
+
differ in detail to address new problems or concerns.
|
152
|
+
|
153
|
+
Each version is given a distinguishing version number. If the
|
154
|
+
Library as you received it specifies that a certain numbered version
|
155
|
+
of the GNU Lesser General Public License "or any later version"
|
156
|
+
applies to it, you have the option of following the terms and
|
157
|
+
conditions either of that published version or of any later version
|
158
|
+
published by the Free Software Foundation. If the Library as you
|
159
|
+
received it does not specify a version number of the GNU Lesser
|
160
|
+
General Public License, you may choose any version of the GNU Lesser
|
161
|
+
General Public License ever published by the Free Software Foundation.
|
162
|
+
|
163
|
+
If the Library as you received it specifies that a proxy can decide
|
164
|
+
whether future versions of the GNU Lesser General Public License shall
|
165
|
+
apply, that proxy's public statement of acceptance of any version is
|
166
|
+
permanent authorization for you to choose that version for the
|
167
|
+
Library.
|
168
|
+
|
169
|
+
</tt>
|
data/Manifest.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
ChangeLog
|
2
|
+
Gemfile
|
3
|
+
LGPL-LICENSE
|
4
|
+
Manifest.txt
|
5
|
+
README.textile
|
6
|
+
Rakefile
|
7
|
+
docs/COPYING
|
8
|
+
docs/HISTORY
|
9
|
+
docs/LEGAL
|
10
|
+
docs/LGPL-LICENSE
|
11
|
+
docs/README
|
12
|
+
docs/rdoc.css
|
13
|
+
lib/i18n-inflector.rb
|
14
|
+
lib/i18n-inflector/inflector.rb
|
15
|
+
lib/i18n-inflector/long_comments.rb
|
16
|
+
lib/i18n-inflector/shortcuts.rb
|
17
|
+
test/all.rb
|
18
|
+
test/backend/inflection_test.rb
|
19
|
+
test/run_all.rb
|
20
|
+
test/test_helper.rb
|
data/README.textile
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
h1. Ruby I18n-inflector
|
2
|
+
|
3
|
+
Simple inflection support for Ruby's I18n.
|
4
|
+
|
5
|
+
h2. Installation
|
6
|
+
|
7
|
+
gem install i18n-inflector
|
8
|
+
|
9
|
+
h2. Tests
|
10
|
+
|
11
|
+
You can run tests both with
|
12
|
+
|
13
|
+
* `rake test` or just `rake`
|
14
|
+
* run any test file directly, e.g. `ruby -Ilib -Itest test/backend/inflection_test.rb`
|
15
|
+
* run all tests with `ruby -Ilib -Itest test/all.rb`
|
16
|
+
|
17
|
+
You can run all tests against all Gemfiles with
|
18
|
+
|
19
|
+
* `ruby test/run_all.rb`
|
20
|
+
|
21
|
+
h2. Authors
|
22
|
+
|
23
|
+
* "Paweł Wilk":http://randomseed.pl
|
24
|
+
|
25
|
+
h2. License
|
26
|
+
|
27
|
+
LGPL License. See the included docs/LGPL-LICENSE file.
|
data/Rakefile
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# -*- ruby -*-
|
3
|
+
|
4
|
+
$:.unshift File.join(File.dirname(__FILE__), "lib")
|
5
|
+
|
6
|
+
require 'rubygems'
|
7
|
+
gem 'hoe', '>=2.3.0'
|
8
|
+
gem 'hoe-bundler', '>=1.0.0'
|
9
|
+
|
10
|
+
require "rake"
|
11
|
+
require "rake/clean"
|
12
|
+
require "rake/testtask"
|
13
|
+
|
14
|
+
require "fileutils"
|
15
|
+
require 'i18n-inflector'
|
16
|
+
|
17
|
+
require 'hoe'
|
18
|
+
|
19
|
+
task :default => [:test]
|
20
|
+
|
21
|
+
desc "install by setup.rb"
|
22
|
+
task :install do
|
23
|
+
sh "sudo ruby setup.rb install"
|
24
|
+
end
|
25
|
+
|
26
|
+
Rake::TestTask.new(:test) do |t|
|
27
|
+
t.libs << 'lib'
|
28
|
+
t.libs << 'test'
|
29
|
+
t.pattern = "#{File.dirname(__FILE__)}/test/all.rb"
|
30
|
+
t.verbose = true
|
31
|
+
t.warning = true
|
32
|
+
end
|
33
|
+
Rake::Task['test'].comment = "Run all i18n-inflector tests"
|
34
|
+
|
35
|
+
### Gem
|
36
|
+
|
37
|
+
Hoe.plugin :bundler
|
38
|
+
|
39
|
+
Hoe.spec 'i18n-inflector' do
|
40
|
+
self.version = "1.0.0"
|
41
|
+
self.rubyforge_name = 'i18n-inflector'
|
42
|
+
self.summary = 'Simple Inflector backend module for I18n'
|
43
|
+
self.description = 'This backend module for I18n allows you to inflect translations by interpolating patterns.'
|
44
|
+
self.url = 'https://rubygems.org/gems/i18n-inflector/'
|
45
|
+
|
46
|
+
developer "Paweł Wilk", "pw@gnu.org"
|
47
|
+
|
48
|
+
self.remote_rdoc_dir = ''
|
49
|
+
self.rsync_args << '--chmod=a+rX'
|
50
|
+
self.readme_file = 'docs/README'
|
51
|
+
self.history_file = 'docs/HISTORY'
|
52
|
+
|
53
|
+
self.extra_rdoc_files = ["docs/README",
|
54
|
+
"docs/LGPL-LICENSE",
|
55
|
+
"docs/LEGAL", "docs/HISTORY",
|
56
|
+
"docs/COPYING"]
|
57
|
+
|
58
|
+
extra_deps << ["i18n",">= 0.5.0"]
|
59
|
+
extra_dev_deps << ['test_declarative', '>= 0.0.4']
|
60
|
+
|
61
|
+
self.spec_extras['rdoc_options'] = proc do |rdoc_options|
|
62
|
+
rdoc_options << "--title" << "Simple Inflector for I18n"
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
task :docs do
|
67
|
+
|
68
|
+
FileUtils.mv 'doc/rdoc.css', 'doc/rdoc_base.css'
|
69
|
+
FileUtils.cp 'docs/rdoc.css', 'doc/rdoc.css'
|
70
|
+
|
71
|
+
end
|
72
|
+
|
73
|
+
task 'Manifest.txt' do
|
74
|
+
puts 'generating Manifest.txt from git'
|
75
|
+
sh %{git ls-files | grep -v gitignore > Manifest.txt}
|
76
|
+
sh %{git add Manifest.txt}
|
77
|
+
end
|
78
|
+
|
79
|
+
task 'ChangeLog' do
|
80
|
+
sh %{git log > ChangeLog}
|
81
|
+
end
|
82
|
+
|
83
|
+
desc "Fix documentation's file permissions"
|
84
|
+
task :docperm do
|
85
|
+
sh %{chmod -R a+rX doc}
|
86
|
+
end
|
87
|
+
|
88
|
+
### Sign & Publish
|
89
|
+
|
90
|
+
desc "Create signed tag in Git"
|
91
|
+
task :tag do
|
92
|
+
sh %{git tag -u #{I18n::Backend::Inflector::EMAIL} v#{I18n::Backend::Inflector::VERSION} -m 'version #{I18n::Backend::Inflector::VERSION}'}
|
93
|
+
end
|
94
|
+
|
95
|
+
desc "Create external GnuPG signature for Gem"
|
96
|
+
task :gemsign do
|
97
|
+
sh %{gpg -u #{I18n::Backend::Inflector::EMAIL} -ab pkg/#{I18n::Backend::Inflector::NAME}-#{I18n::Backend::Inflector::VERSION}.gem \
|
98
|
+
-o pkg/#{I18n::Backend::Inflector::NAME}-#{I18n::Backend::Inflector::VERSION}.gem.sig}
|
99
|
+
end
|
100
|
+
|
data/docs/COPYING
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
i18n-inflector is copyrighted free software owned by Paweł Wilk
|
2
|
+
(pw@gnu.org). The Owner of this software permits you to
|
3
|
+
redistribute and/or modify the software under either the terms of the LGPL
|
4
|
+
version 3 (see the file {LGPL-LICENSE}[link:docs/LGPL-LICENSE.html]),
|
5
|
+
or the conditions below ("Ruby License"):
|
6
|
+
|
7
|
+
1. You may make and give away verbatim copies of the source form of this
|
8
|
+
software without restriction, provided that you retain ALL of the
|
9
|
+
original copyright notices and associated disclaimers.
|
10
|
+
|
11
|
+
2. You may modify your copy of the software in any way, provided that
|
12
|
+
you do at least ONE of the following:
|
13
|
+
|
14
|
+
a) place your modifications in the Public Domain or otherwise
|
15
|
+
make them Freely Available, such as by posting said
|
16
|
+
modifications to Usenet or an equivalent medium, or by allowing
|
17
|
+
the author to include your modifications in the software.
|
18
|
+
|
19
|
+
b) use the modified software only within your corporation or
|
20
|
+
organization.
|
21
|
+
|
22
|
+
c) give non-standard binaries non-standard names, with
|
23
|
+
instructions on where to get the original software distribution.
|
24
|
+
|
25
|
+
d) make other distribution arrangements with the Owner.
|
26
|
+
|
27
|
+
3. You may distribute the software in object code or binary form,
|
28
|
+
provided that you do at least ONE of the following:
|
29
|
+
|
30
|
+
a) distribute the binaries and library files of the software,
|
31
|
+
together with instructions (in a manual page or equivalent)
|
32
|
+
on where to get the original distribution.
|
33
|
+
|
34
|
+
b) accompany the distribution with the machine-readable source of
|
35
|
+
the software.
|
36
|
+
|
37
|
+
c) give non-standard binaries non-standard names, with
|
38
|
+
instructions on where to get the original software distribution.
|
39
|
+
|
40
|
+
d) make other distribution arrangements with the Owner.
|
41
|
+
|
42
|
+
4. You may modify and include parts of the software into any other
|
43
|
+
software (possibly commercial), provided you comply with the terms in
|
44
|
+
Sections 1, 2, and 3 above. But some files in the distribution
|
45
|
+
are not written by the Owner, so they may be made available to you
|
46
|
+
under different terms.
|
47
|
+
|
48
|
+
For the list of those files and their copying conditions, see the
|
49
|
+
file LEGAL.
|
50
|
+
|
51
|
+
5. The scripts and library files supplied as input to or produced as
|
52
|
+
output from the software do not automatically fall under the
|
53
|
+
copyright of the software, but belong to whoever generated them,
|
54
|
+
and may be sold commercially, and may be aggregated with this
|
55
|
+
software.
|
56
|
+
|
57
|
+
6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
|
58
|
+
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
59
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
60
|
+
PURPOSE.
|
61
|
+
|
data/docs/HISTORY
ADDED
data/docs/LEGAL
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
LEGAL NOTICE INFORMATION
|
2
|
+
------------------------
|
3
|
+
|
4
|
+
i18n-inflector is Copyright (C) 2010 by Paweł Wilk.
|
5
|
+
|
6
|
+
i18n-inflector is copyrighted software owned by Paweł Wilk
|
7
|
+
(pw@gnu.org). You may redistribute and/or modify this
|
8
|
+
software as long as you comply with either the terms of the LGPL
|
9
|
+
(see the file {LGPL-LICENSE}[link:docs/LGPL-LICENSE.html]),
|
10
|
+
or Ruby's license (see the file {COPYING}[link:docs/COPYING.html]).
|
11
|
+
|
data/docs/LGPL-LICENSE
ADDED
@@ -0,0 +1,169 @@
|
|
1
|
+
<tt>
|
2
|
+
|
3
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
4
|
+
Version 3, 29 June 2007
|
5
|
+
|
6
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
7
|
+
Everyone is permitted to copy and distribute verbatim copies
|
8
|
+
of this license document, but changing it is not allowed.
|
9
|
+
|
10
|
+
|
11
|
+
This version of the GNU Lesser General Public License incorporates
|
12
|
+
the terms and conditions of version 3 of the GNU General Public
|
13
|
+
License, supplemented by the additional permissions listed below.
|
14
|
+
|
15
|
+
0. Additional Definitions.
|
16
|
+
|
17
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
18
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
19
|
+
General Public License.
|
20
|
+
|
21
|
+
"The Library" refers to a covered work governed by this License,
|
22
|
+
other than an Application or a Combined Work as defined below.
|
23
|
+
|
24
|
+
An "Application" is any work that makes use of an interface provided
|
25
|
+
by the Library, but which is not otherwise based on the Library.
|
26
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
27
|
+
of using an interface provided by the Library.
|
28
|
+
|
29
|
+
A "Combined Work" is a work produced by combining or linking an
|
30
|
+
Application with the Library. The particular version of the Library
|
31
|
+
with which the Combined Work was made is also called the "Linked
|
32
|
+
Version".
|
33
|
+
|
34
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
35
|
+
Corresponding Source for the Combined Work, excluding any source code
|
36
|
+
for portions of the Combined Work that, considered in isolation, are
|
37
|
+
based on the Application, and not on the Linked Version.
|
38
|
+
|
39
|
+
The "Corresponding Application Code" for a Combined Work means the
|
40
|
+
object code and/or source code for the Application, including any data
|
41
|
+
and utility programs needed for reproducing the Combined Work from the
|
42
|
+
Application, but excluding the System Libraries of the Combined Work.
|
43
|
+
|
44
|
+
1. Exception to Section 3 of the GNU GPL.
|
45
|
+
|
46
|
+
You may convey a covered work under sections 3 and 4 of this License
|
47
|
+
without being bound by section 3 of the GNU GPL.
|
48
|
+
|
49
|
+
2. Conveying Modified Versions.
|
50
|
+
|
51
|
+
If you modify a copy of the Library, and, in your modifications, a
|
52
|
+
facility refers to a function or data to be supplied by an Application
|
53
|
+
that uses the facility (other than as an argument passed when the
|
54
|
+
facility is invoked), then you may convey a copy of the modified
|
55
|
+
version:
|
56
|
+
|
57
|
+
a) under this License, provided that you make a good faith effort to
|
58
|
+
ensure that, in the event an Application does not supply the
|
59
|
+
function or data, the facility still operates, and performs
|
60
|
+
whatever part of its purpose remains meaningful, or
|
61
|
+
|
62
|
+
b) under the GNU GPL, with none of the additional permissions of
|
63
|
+
this License applicable to that copy.
|
64
|
+
|
65
|
+
3. Object Code Incorporating Material from Library Header Files.
|
66
|
+
|
67
|
+
The object code form of an Application may incorporate material from
|
68
|
+
a header file that is part of the Library. You may convey such object
|
69
|
+
code under terms of your choice, provided that, if the incorporated
|
70
|
+
material is not limited to numerical parameters, data structure
|
71
|
+
layouts and accessors, or small macros, inline functions and templates
|
72
|
+
(ten or fewer lines in length), you do both of the following:
|
73
|
+
|
74
|
+
a) Give prominent notice with each copy of the object code that the
|
75
|
+
Library is used in it and that the Library and its use are
|
76
|
+
covered by this License.
|
77
|
+
|
78
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
79
|
+
document.
|
80
|
+
|
81
|
+
4. Combined Works.
|
82
|
+
|
83
|
+
You may convey a Combined Work under terms of your choice that,
|
84
|
+
taken together, effectively do not restrict modification of the
|
85
|
+
portions of the Library contained in the Combined Work and reverse
|
86
|
+
engineering for debugging such modifications, if you also do each of
|
87
|
+
the following:
|
88
|
+
|
89
|
+
a) Give prominent notice with each copy of the Combined Work that
|
90
|
+
the Library is used in it and that the Library and its use are
|
91
|
+
covered by this License.
|
92
|
+
|
93
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
94
|
+
document.
|
95
|
+
|
96
|
+
c) For a Combined Work that displays copyright notices during
|
97
|
+
execution, include the copyright notice for the Library among
|
98
|
+
these notices, as well as a reference directing the user to the
|
99
|
+
copies of the GNU GPL and this license document.
|
100
|
+
|
101
|
+
d) Do one of the following:
|
102
|
+
|
103
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
104
|
+
License, and the Corresponding Application Code in a form
|
105
|
+
suitable for, and under terms that permit, the user to
|
106
|
+
recombine or relink the Application with a modified version of
|
107
|
+
the Linked Version to produce a modified Combined Work, in the
|
108
|
+
manner specified by section 6 of the GNU GPL for conveying
|
109
|
+
Corresponding Source.
|
110
|
+
|
111
|
+
1) Use a suitable shared library mechanism for linking with the
|
112
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
113
|
+
a copy of the Library already present on the user's computer
|
114
|
+
system, and (b) will operate properly with a modified version
|
115
|
+
of the Library that is interface-compatible with the Linked
|
116
|
+
Version.
|
117
|
+
|
118
|
+
e) Provide Installation Information, but only if you would otherwise
|
119
|
+
be required to provide such information under section 6 of the
|
120
|
+
GNU GPL, and only to the extent that such information is
|
121
|
+
necessary to install and execute a modified version of the
|
122
|
+
Combined Work produced by recombining or relinking the
|
123
|
+
Application with a modified version of the Linked Version. (If
|
124
|
+
you use option 4d0, the Installation Information must accompany
|
125
|
+
the Minimal Corresponding Source and Corresponding Application
|
126
|
+
Code. If you use option 4d1, you must provide the Installation
|
127
|
+
Information in the manner specified by section 6 of the GNU GPL
|
128
|
+
for conveying Corresponding Source.)
|
129
|
+
|
130
|
+
5. Combined Libraries.
|
131
|
+
|
132
|
+
You may place library facilities that are a work based on the
|
133
|
+
Library side by side in a single library together with other library
|
134
|
+
facilities that are not Applications and are not covered by this
|
135
|
+
License, and convey such a combined library under terms of your
|
136
|
+
choice, if you do both of the following:
|
137
|
+
|
138
|
+
a) Accompany the combined library with a copy of the same work based
|
139
|
+
on the Library, uncombined with any other library facilities,
|
140
|
+
conveyed under the terms of this License.
|
141
|
+
|
142
|
+
b) Give prominent notice with the combined library that part of it
|
143
|
+
is a work based on the Library, and explaining where to find the
|
144
|
+
accompanying uncombined form of the same work.
|
145
|
+
|
146
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
147
|
+
|
148
|
+
The Free Software Foundation may publish revised and/or new versions
|
149
|
+
of the GNU Lesser General Public License from time to time. Such new
|
150
|
+
versions will be similar in spirit to the present version, but may
|
151
|
+
differ in detail to address new problems or concerns.
|
152
|
+
|
153
|
+
Each version is given a distinguishing version number. If the
|
154
|
+
Library as you received it specifies that a certain numbered version
|
155
|
+
of the GNU Lesser General Public License "or any later version"
|
156
|
+
applies to it, you have the option of following the terms and
|
157
|
+
conditions either of that published version or of any later version
|
158
|
+
published by the Free Software Foundation. If the Library as you
|
159
|
+
received it does not specify a version number of the GNU Lesser
|
160
|
+
General Public License, you may choose any version of the GNU Lesser
|
161
|
+
General Public License ever published by the Free Software Foundation.
|
162
|
+
|
163
|
+
If the Library as you received it specifies that a proxy can decide
|
164
|
+
whether future versions of the GNU Lesser General Public License shall
|
165
|
+
apply, that proxy's public statement of acceptance of any version is
|
166
|
+
permanent authorization for you to choose that version for the
|
167
|
+
Library.
|
168
|
+
|
169
|
+
</tt>
|