sanzang 0.0.1

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.
data/HACKING ADDED
@@ -0,0 +1,54 @@
1
+ = Hacking Sanzang
2
+
3
+ == Testing and building
4
+
5
+ * Use "rake test" to run all tests.
6
+ * Use "rake build" to create a gem package in the "dist" directory.
7
+
8
+ == Platforms
9
+
10
+ These programs should work on all platforms with Ruby 1.9 or later. Regular
11
+ testing takes place on GNU/Linux operating systems.
12
+
13
+ == Languages
14
+
15
+ The translation program may not be very useful for all languages. It was
16
+ designed specifically for dealing with the more difficult aspects of
17
+ translating from ancient Chinese. For a language like Sanskrit or Tibetan, it
18
+ may not be so useful. However, the limitations of this program have not yet
19
+ been investigated.
20
+
21
+ == Tables
22
+
23
+ A valid translation table is necessary when using the translator. More
24
+ information on this format is available in the README file. The following
25
+ tokens are reserved: "~|", "|", and "|~", and these should not be used in table
26
+ record data. No "escape sequences" are available for the inclusion of such
27
+ tokens as data.
28
+
29
+ == Multiprocessing
30
+
31
+ Most every Unix-like system supports the fork(2) system call and therefore has
32
+ the potential to run Sanzang in a multiprocessing mode for batches. However,
33
+ each Ruby implementation and port may be different, and Sanzang will check to
34
+ see if the fork method has been implemented before attempting to use the
35
+ "parallel" gem for multiprocessing.
36
+
37
+ Batch mode will print a warning message if it cannot use the "parallel" gem.
38
+ It will then process the batch, but will not utilize multiprocessing, so it
39
+ will run slower. The "mingw" and "mswin" ports of Ruby do not have support for
40
+ fork method, yet the "parallel" library attempts to fork anyhow. To avoid
41
+ potential errors, the translator will not even attempt to use multiprocessing
42
+ on platforms in which the fork method is not implemented.
43
+
44
+ Note that for Windows, the "cygwin" port of Ruby does implement does support
45
+ fork(2) perfectly, so Ruby 1.9+ on Cygwin can utilize the fork method and so
46
+ it supports standard multiprocessing. Therefore, Cygwin is the most robust
47
+ environment for running Sanzang on a Windows PC.
48
+
49
+ == Encodings
50
+
51
+ Converters for several encodings have not yet been implemented by MRI Ruby.
52
+ Most of these are obscure and not widely used anyways. Perhaps the most
53
+ notable is EUC-TW, which is an old Unix encoding for traditional Chinese.
54
+ However, even this most "notable" missing encoding is obscure and unimportant.
data/LICENSE ADDED
@@ -0,0 +1,628 @@
1
+ = GNU GENERAL PUBLIC LICENSE
2
+
3
+ = Version 3, 29 June 2007
4
+
5
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is
6
+ permitted to copy and distribute verbatim copies of this license document, but
7
+ changing it is not allowed.
8
+
9
+ == Preamble
10
+
11
+ The GNU General Public License is a free, copyleft license for software and
12
+ other kinds of works.
13
+
14
+ The licenses for most software and other practical works are designed to take
15
+ away your freedom to share and change the works. By contrast, the GNU General
16
+ Public License is intended to guarantee your freedom to share and change all
17
+ versions of a program--to make sure it remains free software for all its users.
18
+ We, the Free Software Foundation, use the GNU General Public License for most
19
+ of our software; it applies also to any other work released this way by its
20
+ authors. You can apply it to your programs, too.
21
+
22
+ When we speak of free software, we are referring to freedom, not price. Our
23
+ General Public Licenses are designed to make sure that you have the freedom to
24
+ distribute copies of free software (and charge for them if you wish), that you
25
+ receive source code or can get it if you want it, that you can change the
26
+ software or use pieces of it in new free programs, and that you know you can do
27
+ these things.
28
+
29
+ To protect your rights, we need to prevent others from denying you these rights
30
+ or asking you to surrender the rights. Therefore, you have certain
31
+ responsibilities if you distribute copies of the software, or if you modify it:
32
+ responsibilities to respect the freedom of others.
33
+
34
+ For example, if you distribute copies of such a program, whether gratis or for
35
+ a fee, you must pass on to the recipients the same freedoms that you received.
36
+ You must make sure that they, too, receive or can get the source code. And you
37
+ must show them these terms so they know their rights.
38
+
39
+ Developers that use the GNU GPL protect your rights with two steps: (1) assert
40
+ copyright on the software, and (2) offer you this License giving you legal
41
+ permission to copy, distribute and/or modify it.
42
+
43
+ For the developers' and authors' protection, the GPL clearly explains that
44
+ there is no warranty for this free software. For both users' and authors' sake,
45
+ the GPL requires that modified versions be marked as changed, so that their
46
+ problems will not be attributed erroneously to authors of previous versions.
47
+
48
+ Some devices are designed to deny users access to install or run modified
49
+ versions of the software inside them, although the manufacturer can do so. This
50
+ is fundamentally incompatible with the aim of protecting users' freedom to
51
+ change the software. The systematic pattern of such abuse occurs in the area of
52
+ products for individuals to use, which is precisely where it is most
53
+ unacceptable. Therefore, we have designed this version of the GPL to prohibit
54
+ the practice for those products. If such problems arise substantially in other
55
+ domains, we stand ready to extend this provision to those domains in future
56
+ versions of the GPL, as needed to protect the freedom of users.
57
+
58
+ Finally, every program is threatened constantly by software patents. States
59
+ should not allow patents to restrict development and use of software on
60
+ general-purpose computers, but in those that do, we wish to avoid the special
61
+ danger that patents applied to a free program could make it effectively
62
+ proprietary. To prevent this, the GPL assures that patents cannot be used to
63
+ render the program non-free.
64
+
65
+ The precise terms and conditions for copying, distribution and modification
66
+ follow.
67
+
68
+ == TERMS AND CONDITIONS
69
+
70
+ === 0. Definitions.
71
+
72
+ "This License" refers to version 3 of the GNU General Public License.
73
+
74
+ "Copyright" also means copyright-like laws that apply to other kinds of works,
75
+ such as semiconductor masks.
76
+
77
+ "The Program" refers to any copyrightable work licensed under this License.
78
+ Each licensee is addressed as "you". "Licensees" and "recipients" may be
79
+ individuals or organizations.
80
+
81
+ To "modify" a work means to copy from or adapt all or part of the work in a
82
+ fashion requiring copyright permission, other than the making of an exact copy.
83
+ The resulting work is called a "modified version" of the earlier work or a work
84
+ "based on" the earlier work.
85
+
86
+ A "covered work" means either the unmodified Program or a work based on the
87
+ Program.
88
+
89
+ To "propagate" a work means to do anything with it that, without permission,
90
+ would make you directly or secondarily liable for infringement under applicable
91
+ copyright law, except executing it on a computer or modifying a private copy.
92
+ Propagation includes copying, distribution (with or without modification),
93
+ making available to the public, and in some countries other activities as well.
94
+
95
+ To "convey" a work means any kind of propagation that enables other parties to
96
+ make or receive copies. Mere interaction with a user through a computer
97
+ network, with no transfer of a copy, is not conveying.
98
+
99
+ An interactive user interface displays "Appropriate Legal Notices" to the
100
+ extent that it includes a convenient and prominently visible feature that (1)
101
+ displays an appropriate copyright notice, and (2) tells the user that there is
102
+ no warranty for the work (except to the extent that warranties are provided),
103
+ that licensees may convey the work under this License, and how to view a copy
104
+ of this License. If the interface presents a list of user commands or options,
105
+ such as a menu, a prominent item in the list meets this criterion.
106
+
107
+ === 1. Source Code.
108
+
109
+ The "source code" for a work means the preferred form of the work for making
110
+ modifications to it. "Object code" means any non-source form of a work.
111
+
112
+ A "Standard Interface" means an interface that either is an official standard
113
+ defined by a recognized standards body, or, in the case of interfaces specified
114
+ for a particular programming language, one that is widely used among developers
115
+ working in that language.
116
+
117
+ The "System Libraries" of an executable work include anything, other than the
118
+ work as a whole, that (a) is included in the normal form of packaging a Major
119
+ Component, but which is not part of that Major Component, and (b) serves only
120
+ to enable use of the work with that Major Component, or to implement a Standard
121
+ Interface for which an implementation is available to the public in source code
122
+ form. A "Major Component", in this context, means a major essential component
123
+ (kernel, window system, and so on) of the specific operating system (if any) on
124
+ which the executable work runs, or a compiler used to produce the work, or an
125
+ object code interpreter used to run it.
126
+
127
+ The "Corresponding Source" for a work in object code form means all the source
128
+ code needed to generate, install, and (for an executable work) run the object
129
+ code and to modify the work, including scripts to control those activities.
130
+ However, it does not include the work's System Libraries, or general-purpose
131
+ tools or generally available free programs which are used unmodified in
132
+ performing those activities but which are not part of the work. For example,
133
+ Corresponding Source includes interface definition files associated with source
134
+ files for the work, and the source code for shared libraries and dynamically
135
+ linked subprograms that the work is specifically designed to require, such as
136
+ by intimate data communication or control flow between those subprograms and
137
+ other parts of the work.
138
+
139
+ The Corresponding Source need not include anything that users can regenerate
140
+ automatically from other parts of the Corresponding Source.
141
+
142
+ The Corresponding Source for a work in source code form is that same work.
143
+
144
+ === 2. Basic Permissions.
145
+
146
+ All rights granted under this License are granted for the term of copyright on
147
+ the Program, and are irrevocable provided the stated conditions are met. This
148
+ License explicitly affirms your unlimited permission to run the unmodified
149
+ Program. The output from running a covered work is covered by this License only
150
+ if the output, given its content, constitutes a covered work. This License
151
+ acknowledges your rights of fair use or other equivalent, as provided by
152
+ copyright law.
153
+
154
+ You may make, run and propagate covered works that you do not convey, without
155
+ conditions so long as your license otherwise remains in force. You may convey
156
+ covered works to others for the sole purpose of having them make modifications
157
+ exclusively for you, or provide you with facilities for running those works,
158
+ provided that you comply with the terms of this License in conveying all
159
+ material for which you do not control copyright. Those thus making or running
160
+ the covered works for you must do so exclusively on your behalf, under your
161
+ direction and control, on terms that prohibit them from making any copies of
162
+ your copyrighted material outside their relationship with you.
163
+
164
+ Conveying under any other circumstances is permitted solely under the
165
+ conditions stated below. Sublicensing is not allowed; section 10 makes it
166
+ unnecessary.
167
+
168
+ === 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
169
+
170
+ No covered work shall be deemed part of an effective technological measure
171
+ under any applicable law fulfilling obligations under article 11 of the WIPO
172
+ copyright treaty adopted on 20 December 1996, or similar laws prohibiting or
173
+ restricting circumvention of such measures.
174
+
175
+ When you convey a covered work, you waive any legal power to forbid
176
+ circumvention of technological measures to the extent such circumvention is
177
+ effected by exercising rights under this License with respect to the covered
178
+ work, and you disclaim any intention to limit operation or modification of the
179
+ work as a means of enforcing, against the work's users, your or third parties'
180
+ legal rights to forbid circumvention of technological measures.
181
+
182
+ === 4. Conveying Verbatim Copies.
183
+
184
+ You may convey verbatim copies of the Program's source code as you receive it,
185
+ in any medium, provided that you conspicuously and appropriately publish on
186
+ each copy an appropriate copyright notice; keep intact all notices stating that
187
+ this License and any non-permissive terms added in accord with section 7 apply
188
+ to the code; keep intact all notices of the absence of any warranty; and give
189
+ all recipients a copy of this License along with the Program.
190
+
191
+ You may charge any price or no price for each copy that you convey, and you may
192
+ offer support or warranty protection for a fee.
193
+
194
+ === 5. Conveying Modified Source Versions.
195
+
196
+ You may convey a work based on the Program, or the modifications to produce it
197
+ from the Program, in the form of source code under the terms of section 4,
198
+ provided that you also meet all of these conditions:
199
+
200
+ a. The work must carry prominent notices stating that you modified it, and
201
+ giving a relevant date.
202
+
203
+ b. The work must carry prominent notices stating that it is released under this
204
+ License and any conditions added under section 7. This requirement modifies
205
+ the requirement in section 4 to "keep intact all notices".
206
+
207
+ c. You must license the entire work, as a whole, under this License to anyone
208
+ who comes into possession of a copy. This License will therefore apply,
209
+ along with any applicable section 7 additional terms, to the whole of the
210
+ work, and all its parts, regardless of how they are packaged. This License
211
+ gives no permission to license the work in any other way, but it does not
212
+ invalidate such permission if you have separately received it.
213
+
214
+ d. If the work has interactive user interfaces, each must display Appropriate
215
+ Legal Notices; however, if the Program has interactive interfaces that do
216
+ not display Appropriate Legal Notices, your work need not make them do so.
217
+
218
+ A compilation of a covered work with other separate and independent works,
219
+ which are not by their nature extensions of the covered work, and which are not
220
+ combined with it such as to form a larger program, in or on a volume of a
221
+ storage or distribution medium, is called an "aggregate" if the compilation and
222
+ its resulting copyright are not used to limit the access or legal rights of the
223
+ compilation's users beyond what the individual works permit. Inclusion of a
224
+ covered work in an aggregate does not cause this License to apply to the other
225
+ parts of the aggregate.
226
+
227
+ === 6. Conveying Non-Source Forms.
228
+
229
+ You may convey a covered work in object code form under the terms of sections 4
230
+ and 5, provided that you also convey the machine-readable Corresponding Source
231
+ under the terms of this License, in one of these ways:
232
+
233
+ a. Convey the object code in, or embodied in, a physical product (including a
234
+ physical distribution medium), accompanied by the Corresponding Source fixed
235
+ on a durable physical medium customarily used for software interchange.
236
+
237
+ b. Convey the object code in, or embodied in, a physical product (including a
238
+ physical distribution medium), accompanied by a written offer, valid for at
239
+ least three years and valid for as long as you offer spare parts or customer
240
+ support for that product model, to give anyone who possesses the object code
241
+ either (1) a copy of the Corresponding Source for all the software in the
242
+ product that is covered by this License, on a durable physical medium
243
+ customarily used for software interchange, for a price no more than your
244
+ reasonable cost of physically performing this conveying of source, or (2)
245
+ access to copy the Corresponding Source from a network server at no charge.
246
+
247
+ c. Convey individual copies of the object code with a copy of the written offer
248
+ to provide the Corresponding Source. This alternative is allowed only
249
+ occasionally and noncommercially, and only if you received the object code
250
+ with such an offer, in accord with subsection 6b.
251
+
252
+ d. Convey the object code by offering access from a designated place (gratis or
253
+ for a charge), and offer equivalent access to the Corresponding Source in
254
+ the same way through the same place at no further charge. You need not
255
+ require recipients to copy the Corresponding Source along with the object
256
+ code. If the place to copy the object code is a network server, the
257
+ Corresponding Source may be on a different server (operated by you or a
258
+ third party) that supports equivalent copying facilities, provided you
259
+ maintain clear directions next to the object code saying where to find the
260
+ Corresponding Source. Regardless of what server hosts the Corresponding
261
+ Source, you remain obligated to ensure that it is available for as long as
262
+ needed to satisfy these requirements.
263
+
264
+ e. Convey the object code using peer-to-peer transmission, provided you inform
265
+ other peers where the object code and Corresponding Source of the work are
266
+ being offered to the general public at no charge under subsection 6d.
267
+
268
+ A separable portion of the object code, whose source code is excluded from the
269
+ Corresponding Source as a System Library, need not be included in conveying the
270
+ object code work.
271
+
272
+ A "User Product" is either (1) a "consumer product", which means any tangible
273
+ personal property which is normally used for personal, family, or household
274
+ purposes, or (2) anything designed or sold for incorporation into a dwelling.
275
+ In determining whether a product is a consumer product, doubtful cases shall be
276
+ resolved in favor of coverage. For a particular product received by a
277
+ particular user, "normally used" refers to a typical or common use of that
278
+ class of product, regardless of the status of the particular user or of the way
279
+ in which the particular user actually uses, or expects or is expected to use,
280
+ the product. A product is a consumer product regardless of whether the product
281
+ has substantial commercial, industrial or non-consumer uses, unless such uses
282
+ represent the only significant mode of use of the product.
283
+
284
+ "Installation Information" for a User Product means any methods, procedures,
285
+ authorization keys, or other information required to install and execute
286
+ modified versions of a covered work in that User Product from a modified
287
+ version of its Corresponding Source. The information must suffice to ensure
288
+ that the continued functioning of the modified object code is in no case
289
+ prevented or interfered with solely because modification has been made.
290
+
291
+ If you convey an object code work under this section in, or with, or
292
+ specifically for use in, a User Product, and the conveying occurs as part of a
293
+ transaction in which the right of possession and use of the User Product is
294
+ transferred to the recipient in perpetuity or for a fixed term (regardless of
295
+ how the transaction is characterized), the Corresponding Source conveyed under
296
+ this section must be accompanied by the Installation Information. But this
297
+ requirement does not apply if neither you nor any third party retains the
298
+ ability to install modified object code on the User Product (for example, the
299
+ work has been installed in ROM).
300
+
301
+ The requirement to provide Installation Information does not include a
302
+ requirement to continue to provide support service, warranty, or updates for a
303
+ work that has been modified or installed by the recipient, or for the User
304
+ Product in which it has been modified or installed. Access to a network may be
305
+ denied when the modification itself materially and adversely affects the
306
+ operation of the network or violates the rules and protocols for communication
307
+ across the network.
308
+
309
+ Corresponding Source conveyed, and Installation Information provided, in accord
310
+ with this section must be in a format that is publicly documented (and with an
311
+ implementation available to the public in source code form), and must require
312
+ no special password or key for unpacking, reading or copying.
313
+
314
+ === 7. Additional Terms.
315
+
316
+ "Additional permissions" are terms that supplement the terms of this License by
317
+ making exceptions from one or more of its conditions. Additional permissions
318
+ that are applicable to the entire Program shall be treated as though they were
319
+ included in this License, to the extent that they are valid under applicable
320
+ law. If additional permissions apply only to part of the Program, that part may
321
+ be used separately under those permissions, but the entire Program remains
322
+ governed by this License without regard to the additional permissions.
323
+
324
+ When you convey a copy of a covered work, you may at your option remove any
325
+ additional permissions from that copy, or from any part of it. (Additional
326
+ permissions may be written to require their own removal in certain cases when
327
+ you modify the work.) You may place additional permissions on material, added
328
+ by you to a covered work, for which you have or can give appropriate copyright
329
+ permission.
330
+
331
+ Notwithstanding any other provision of this License, for material you add to a
332
+ covered work, you may (if authorized by the copyright holders of that material)
333
+ supplement the terms of this License with terms:
334
+
335
+ a. Disclaiming warranty or limiting liability differently from the terms of
336
+ sections 15 and 16 of this License; or
337
+
338
+ b. Requiring preservation of specified reasonable legal notices or author
339
+ attributions in that material or in the Appropriate Legal Notices displayed
340
+ by works containing it; or
341
+
342
+ c. Prohibiting misrepresentation of the origin of that material, or requiring
343
+ that modified versions of such material be marked in reasonable ways as
344
+ different from the original version; or
345
+
346
+ d. Limiting the use for publicity purposes of names of licensors or authors of
347
+ the material; or
348
+
349
+ e. Declining to grant rights under trademark law for use of some trade names,
350
+ trademarks, or service marks; or
351
+
352
+ f. Requiring indemnification of licensors and authors of that material by
353
+ anyone who conveys the material (or modified versions of it) with
354
+ contractual assumptions of liability to the recipient, for any liability
355
+ that these contractual assumptions directly impose on those licensors and
356
+ authors.
357
+
358
+ All other non-permissive additional terms are considered "further restrictions"
359
+ within the meaning of section 10. If the Program as you received it, or any
360
+ part of it, contains a notice stating that it is governed by this License along
361
+ with a term that is a further restriction, you may remove that term. If a
362
+ license document contains a further restriction but permits relicensing or
363
+ conveying under this License, you may add to a covered work material governed
364
+ by the terms of that license document, provided that the further restriction
365
+ does not survive such relicensing or conveying.
366
+
367
+ If you add terms to a covered work in accord with this section, you must place,
368
+ in the relevant source files, a statement of the additional terms that apply to
369
+ those files, or a notice indicating where to find the applicable terms.
370
+
371
+ Additional terms, permissive or non-permissive, may be stated in the form of a
372
+ separately written license, or stated as exceptions; the above requirements
373
+ apply either way.
374
+
375
+ === 8. Termination.
376
+
377
+ You may not propagate or modify a covered work except as expressly provided
378
+ under this License. Any attempt otherwise to propagate or modify it is void,
379
+ and will automatically terminate your rights under this License (including any
380
+ patent licenses granted under the third paragraph of section 11).
381
+
382
+ However, if you cease all violation of this License, then your license from a
383
+ particular copyright holder is reinstated (a) provisionally, unless and until
384
+ the copyright holder explicitly and finally terminates your license, and (b)
385
+ permanently, if the copyright holder fails to notify you of the violation by
386
+ some reasonable means prior to 60 days after the cessation.
387
+
388
+ Moreover, your license from a particular copyright holder is reinstated
389
+ permanently if the copyright holder notifies you of the violation by some
390
+ reasonable means, this is the first time you have received notice of violation
391
+ of this License (for any work) from that copyright holder, and you cure the
392
+ violation prior to 30 days after your receipt of the notice.
393
+
394
+ Termination of your rights under this section does not terminate the licenses
395
+ of parties who have received copies or rights from you under this License. If
396
+ your rights have been terminated and not permanently reinstated, you do not
397
+ qualify to receive new licenses for the same material under section 10.
398
+
399
+ === 9. Acceptance Not Required for Having Copies.
400
+
401
+ You are not required to accept this License in order to receive or run a copy
402
+ of the Program. Ancillary propagation of a covered work occurring solely as a
403
+ consequence of using peer-to-peer transmission to receive a copy likewise does
404
+ not require acceptance. However, nothing other than this License grants you
405
+ permission to propagate or modify any covered work. These actions infringe
406
+ copyright if you do not accept this License. Therefore, by modifying or
407
+ propagating a covered work, you indicate your acceptance of this License to do
408
+ so.
409
+
410
+ === 10. Automatic Licensing of Downstream Recipients.
411
+
412
+ Each time you convey a covered work, the recipient automatically receives a
413
+ license from the original licensors, to run, modify and propagate that work,
414
+ subject to this License. You are not responsible for enforcing compliance by
415
+ third parties with this License.
416
+
417
+ An "entity transaction" is a transaction transferring control of an
418
+ organization, or substantially all assets of one, or subdividing an
419
+ organization, or merging organizations. If propagation of a covered work
420
+ results from an entity transaction, each party to that transaction who receives
421
+ a copy of the work also receives whatever licenses to the work the party's
422
+ predecessor in interest had or could give under the previous paragraph, plus a
423
+ right to possession of the Corresponding Source of the work from the
424
+ predecessor in interest, if the predecessor has it or can get it with
425
+ reasonable efforts.
426
+
427
+ You may not impose any further restrictions on the exercise of the rights
428
+ granted or affirmed under this License. For example, you may not impose a
429
+ license fee, royalty, or other charge for exercise of rights granted under this
430
+ License, and you may not initiate litigation (including a cross-claim or
431
+ counterclaim in a lawsuit) alleging that any patent claim is infringed by
432
+ making, using, selling, offering for sale, or importing the Program or any
433
+ portion of it.
434
+
435
+ === 11. Patents.
436
+
437
+ A "contributor" is a copyright holder who authorizes use under this License of
438
+ the Program or a work on which the Program is based. The work thus licensed is
439
+ called the contributor's "contributor version".
440
+
441
+ A contributor's "essential patent claims" are all patent claims owned or
442
+ controlled by the contributor, whether already acquired or hereafter acquired,
443
+ that would be infringed by some manner, permitted by this License, of making,
444
+ using, or selling its contributor version, but do not include claims that would
445
+ be infringed only as a consequence of further modification of the contributor
446
+ version. For purposes of this definition, "control" includes the right to grant
447
+ patent sublicenses in a manner consistent with the requirements of this
448
+ License.
449
+
450
+ Each contributor grants you a non-exclusive, worldwide, royalty-free patent
451
+ license under the contributor's essential patent claims, to make, use, sell,
452
+ offer for sale, import and otherwise run, modify and propagate the contents of
453
+ its contributor version.
454
+
455
+ In the following three paragraphs, a "patent license" is any express agreement
456
+ or commitment, however denominated, not to enforce a patent (such as an express
457
+ permission to practice a patent or covenant not to sue for patent
458
+ infringement). To "grant" such a patent license to a party means to make such
459
+ an agreement or commitment not to enforce a patent against the party.
460
+
461
+ If you convey a covered work, knowingly relying on a patent license, and the
462
+ Corresponding Source of the work is not available for anyone to copy, free of
463
+ charge and under the terms of this License, through a publicly available
464
+ network server or other readily accessible means, then you must either (1)
465
+ cause the Corresponding Source to be so available, or (2) arrange to deprive
466
+ yourself of the benefit of the patent license for this particular work, or (3)
467
+ arrange, in a manner consistent with the requirements of this License, to
468
+ extend the patent license to downstream recipients. "Knowingly relying" means
469
+ you have actual knowledge that, but for the patent license, your conveying the
470
+ covered work in a country, or your recipient's use of the covered work in a
471
+ country, would infringe one or more identifiable patents in that country that
472
+ you have reason to believe are valid.
473
+
474
+ If, pursuant to or in connection with a single transaction or arrangement, you
475
+ convey, or propagate by procuring conveyance of, a covered work, and grant a
476
+ patent license to some of the parties receiving the covered work authorizing
477
+ them to use, propagate, modify or convey a specific copy of the covered work,
478
+ then the patent license you grant is automatically extended to all recipients
479
+ of the covered work and works based on it.
480
+
481
+ A patent license is "discriminatory" if it does not include within the scope of
482
+ its coverage, prohibits the exercise of, or is conditioned on the non-exercise
483
+ of one or more of the rights that are specifically granted under this License.
484
+ You may not convey a covered work if you are a party to an arrangement with a
485
+ third party that is in the business of distributing software, under which you
486
+ make payment to the third party based on the extent of your activity of
487
+ conveying the work, and under which the third party grants, to any of the
488
+ parties who would receive the covered work from you, a discriminatory patent
489
+ license (a) in connection with copies of the covered work conveyed by you (or
490
+ copies made from those copies), or (b) primarily for and in connection with
491
+ specific products or compilations that contain the covered work, unless you
492
+ entered into that arrangement, or that patent license was granted, prior to 28
493
+ March 2007.
494
+
495
+ Nothing in this License shall be construed as excluding or limiting any implied
496
+ license or other defenses to infringement that may otherwise be available to
497
+ you under applicable patent law.
498
+
499
+ === 12. No Surrender of Others' Freedom.
500
+
501
+ If conditions are imposed on you (whether by court order, agreement or
502
+ otherwise) that contradict the conditions of this License, they do not excuse
503
+ you from the conditions of this License. If you cannot convey a covered work so
504
+ as to satisfy simultaneously your obligations under this License and any other
505
+ pertinent obligations, then as a consequence you may not convey it at all. For
506
+ example, if you agree to terms that obligate you to collect a royalty for
507
+ further conveying from those to whom you convey the Program, the only way you
508
+ could satisfy both those terms and this License would be to refrain entirely
509
+ from conveying the Program.
510
+
511
+ === 13. Use with the GNU Affero General Public License.
512
+
513
+ Notwithstanding any other provision of this License, you have permission to
514
+ link or combine any covered work with a work licensed under version 3 of the
515
+ GNU Affero General Public License into a single combined work, and to convey
516
+ the resulting work. The terms of this License will continue to apply to the
517
+ part which is the covered work, but the special requirements of the GNU Affero
518
+ General Public License, section 13, concerning interaction through a network
519
+ will apply to the combination as such.
520
+
521
+ === 14. Revised Versions of this License.
522
+
523
+ The Free Software Foundation may publish revised and/or new versions of the GNU
524
+ General Public License from time to time. Such new versions will be similar in
525
+ spirit to the present version, but may differ in detail to address new problems
526
+ or concerns.
527
+
528
+ Each version is given a distinguishing version number. If the Program specifies
529
+ that a certain numbered version of the GNU General Public License "or any later
530
+ version" applies to it, you have the option of following the terms and
531
+ conditions either of that numbered version or of any later version published by
532
+ the Free Software Foundation. If the Program does not specify a version number
533
+ of the GNU General Public License, you may choose any version ever published by
534
+ the Free Software Foundation.
535
+
536
+ If the Program specifies that a proxy can decide which future versions of the
537
+ GNU General Public License can be used, that proxy's public statement of
538
+ acceptance of a version permanently authorizes you to choose that version for
539
+ the Program.
540
+
541
+ Later license versions may give you additional or different permissions.
542
+ However, no additional obligations are imposed on any author or copyright
543
+ holder as a result of your choosing to follow a later version.
544
+
545
+ === 15. Disclaimer of Warranty.
546
+
547
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
548
+ LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER
549
+ PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
550
+ EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
551
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE
552
+ QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
553
+ DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
554
+ CORRECTION.
555
+
556
+ === 16. Limitation of Liability.
557
+
558
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY
559
+ COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS
560
+ PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
561
+ INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
562
+ THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
563
+ INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE
564
+ PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY
565
+ HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
566
+
567
+ === 17. Interpretation of Sections 15 and 16.
568
+
569
+ If the disclaimer of warranty and limitation of liability provided above cannot
570
+ be given local legal effect according to their terms, reviewing courts shall
571
+ apply local law that most closely approximates an absolute waiver of all civil
572
+ liability in connection with the Program, unless a warranty or assumption of
573
+ liability accompanies a copy of the Program in return for a fee.
574
+
575
+ == END OF TERMS AND CONDITIONS
576
+
577
+ === How to Apply These Terms to Your New Programs
578
+
579
+ If you develop a new program, and you want it to be of the greatest possible
580
+ use to the public, the best way to achieve this is to make it free software
581
+ which everyone can redistribute and change under these terms.
582
+
583
+ To do so, attach the following notices to the program. It is safest to attach
584
+ them to the start of each source file to most effectively state the exclusion
585
+ of warranty; and each file should have at least the "copyright" line and a
586
+ pointer to where the full notice is found.
587
+
588
+ <one line to give the program's name and a brief idea of what it does.>
589
+ Copyright (C) <year> <name of author>
590
+
591
+ This program is free software: you can redistribute it and/or modify
592
+ it under the terms of the GNU General Public License as published by
593
+ the Free Software Foundation, either version 3 of the License, or
594
+ (at your option) any later version.
595
+
596
+ This program is distributed in the hope that it will be useful,
597
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
598
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
599
+ GNU General Public License for more details.
600
+
601
+ You should have received a copy of the GNU General Public License
602
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
603
+
604
+ Also add information on how to contact you by electronic and paper mail.
605
+
606
+ If the program does terminal interaction, make it output a short notice like
607
+ this when it starts in an interactive mode:
608
+
609
+ <program> Copyright (C) <year> <name of author>
610
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
611
+ This is free software, and you are welcome to redistribute it
612
+ under certain conditions; type `show c' for details.
613
+
614
+ The hypothetical commands `show w' and `show c' should show the appropriate
615
+ parts of the General Public License. Of course, your program's commands might
616
+ be different; for a GUI interface, you would use an "about box".
617
+
618
+ You should also get your employer (if you work as a programmer) or school, if
619
+ any, to sign a "copyright disclaimer" for the program, if necessary. For more
620
+ information on this, and how to apply and follow the GNU GPL, see
621
+ <http://www.gnu.org/licenses/>.
622
+
623
+ The GNU General Public License does not permit incorporating your program into
624
+ proprietary programs. If your program is a subroutine library, you may consider
625
+ it more useful to permit linking proprietary applications with the library. If
626
+ this is what you want to do, use the GNU Lesser General Public License instead
627
+ of this License. But first, please read
628
+ <http://www.gnu.org/philosophy/why-not-lgpl.html>.