""" Suite related queries

@contact: Debian FTPMaster <ftpmaster@debian.org>
@copyright: 2014  Mark Hymers <mhy@debian.org>
@copyright: 2017  Thorsten Alteholz <debian@alteholz.de>
@license: GNU General Public License version 2 or later

@newfield maps: Mapping, Mappings
"""

import bottle
import json

from webregister import QueryRegister

def textApache2():
  text = \
         "License: Apache-2.0\n" \
         " Licensed under the Apache License, Version 2.0 (the \"License\");\n" \
         " you may not use this file except in compliance with the License.\n" \
         " You may obtain a copy of the License at\n" \
         " .\n" \
         "     http://www.apache.org/licenses/LICENSE-2.0\n" \
         " .\n" \
         " Unless required by applicable law or agreed to in writing, software\n" \
         " distributed under the License is distributed on an \"AS IS\" BASIS,\n" \
         " WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n" \
         " See the License for the specific language governing permissions and\n" \
         " limitations under the License.\n" \
         " .\n" \
         " On Debian systems, the complete text of the Apache License 2.0 can\n" \
         " be found in \"/usr/share/common-licenses/Apache-2.0\"\n" 
  return text

def textArtistic20():
  text = \
     "License: Artistic-2.0\n"\
     " The Artistic License 2.0\n"\
     " .\n"\
     " Copyright (c) 2000-2006, The Perl Foundation.\n"\
     " .\n"\
     " Everyone is permitted to copy and distribute verbatim copies of this \n"\
     " license document, but changing it is not allowed.\n"\
     " .\n"\
     " Preamble\n"\
     " .\n"\
     " This license establishes the terms under which a given free software \n"\
     " Package may be copied, modified, distributed, and/or redistributed. \n"\
     " The intent is that the Copyright Holder maintains some artistic \n"\
     " control over the development of that Package while still keeping the \n"\
     " Package available as open source and free software.\n"\
     " .\n"\
     " You are always permitted to make arrangements wholly outside of this \n"\
     " license directly with the Copyright Holder of a given Package.  If \n"\
     " the terms of this license do not permit the full use that you propose \n"\
     " to make of the Package, you should contact the Copyright Holder and \n"\
     " seek a different licensing arrangement. \n"\
     " .\n"\
     " Definitions\n"\
     " .\n"\
     "      \"Copyright Holder\" means the individual(s) or organization(s) \n"\
     " named in the copyright notice for the entire Package.\n"\
     " .\n"\
     "      \"Contributor\" means any party that has contributed code or other \n"\
     " material to the Package, in accordance with the Copyright Holder's \n"\
     " procedures.\n"\
     " .\n"\
     "      \"You\" and \"your\" means any person who would like to copy, \n"\
     " distribute, or modify the Package.\n"\
     " .\n"\
     "      \"Package\" means the collection of files distributed by the \n"\
     " Copyright Holder, and derivatives of that collection and/or of those \n"\
     " files. A given Package may consist of either the Standard Version, or \n"\
     " a Modified Version.\n"\
     " .\n"\
     "      \"Distribute\" means providing a copy of the Package or making it \n"\
     " accessible to anyone else, or in the case of a company or \n"\
     " organization, to others outside of your company or organization.\n"\
     " .\n"\
     "      \"Distributor Fee\" means any fee that you charge for Distributing \n"\
     " this Package or providing support for this Package to another party.  \n"\
     " It does not mean licensing fees.\n"\
     " .\n"\
     "      \"Standard Version\" refers to the Package if it has not been \n"\
     " modified, or has been modified only in ways explicitly requested by \n"\
     " the Copyright Holder.\n"\
     " .\n"\
     "      \"Modified Version\" means the Package, if it has been changed, \n"\
     " and such changes were not explicitly requested by the Copyright \n"\
     " Holder. \n"\
     " .\n"\
     "      \"Original License\" means this Artistic License as Distributed \n"\
     " with the Standard Version of the Package, in its current version or \n"\
     " as it may be modified by The Perl Foundation in the future.\n"\
     " .\n"\
     "      \"Source\" form means the source code, documentation source, and \n"\
     " configuration files for the Package.\n"\
     " .\n"\
     "      \"Compiled\" form means the compiled bytecode, object code, \n"\
     " binary, or any other form resulting from mechanical transformation or \n"\
     " translation of the Source form.\n"\
     " .\n"\
     " Permission for Use and Modification Without Distribution\n"\
     " .\n"\
     " (1) You are permitted to use the Standard Version and create and use \n"\
     " Modified Versions for any purpose without restriction, provided that \n"\
     " you do not Distribute the Modified Version.\n"\
     " .\n"\
     " Permissions for Redistribution of the Standard Version\n"\
     " .\n"\
     " (2) You may Distribute verbatim copies of the Source form of the \n"\
     " Standard Version of this Package in any medium without restriction, \n"\
     " either gratis or for a Distributor Fee, provided that you duplicate \n"\
     " all of the original copyright notices and associated disclaimers.  At \n"\
     " your discretion, such verbatim copies may or may not include a \n"\
     " Compiled form of the Package.\n"\
     " .\n"\
     " (3) You may apply any bug fixes, portability changes, and other \n"\
     " modifications made available from the Copyright Holder.  The \n"\
     " resulting Package will still be considered the Standard Version, and \n"\
     " as such will be subject to the Original License.\n"\
     " .\n"\
     " Distribution of Modified Versions of the Package as Source \n"\
     " .\n"\
     " (4) You may Distribute your Modified Version as Source (either gratis \n"\
     " or for a Distributor Fee, and with or without a Compiled form of the \n"\
     " Modified Version) provided that you clearly document how it differs \n"\
     " from the Standard Version, including, but not limited to, documenting \n"\
     " any non-standard features, executables, or modules, and provided that \n"\
     " you do at least ONE of the following:\n"\
     " .\n"\
     "      (a) make the Modified Version available to the Copyright Holder \n"\
     " of the Standard Version, under the Original License, so that the \n"\
     " Copyright Holder may include your modifications in the Standard \n"\
     " Version.\n"\
     "      (b) ensure that installation of your Modified Version does not \n"\
     " prevent the user installing or running the Standard Version. In \n"\
     " addition, the Modified Version must bear a name that is different \n"\
     " from the name of the Standard Version.\n"\
     "      (c) allow anyone who receives a copy of the Modified Version to \n"\
     " make the Source form of the Modified Version available to others under\n"\
     " .\n"\
     "           (i) the Original License or\n"\
     "           (ii) a license that permits the licensee to freely copy, \n"\
     " modify and redistribute the Modified Version using the same licensing \n"\
     " terms that apply to the copy that the licensee received, and requires \n"\
     " that the Source form of the Modified Version, and of any works \n"\
     " derived from it, be made freely available in that license fees are \n"\
     " prohibited but Distributor Fees are allowed.\n"\
     " .\n"\
     " Distribution of Compiled Forms of the Standard Version or Modified \n"\
     " Versions without the Source\n"\
     " .\n"\
     " (5)  You may Distribute Compiled forms of the Standard Version \n"\
     " without the Source, provided that you include complete instructions \n"\
     " on how to get the Source of the Standard Version.  Such instructions \n"\
     " must be valid at the time of your distribution.  If these \n"\
     " instructions, at any time while you are carrying out such \n"\
     " distribution, become invalid, you must provide new instructions on \n"\
     " demand or cease further distribution. If you provide valid \n"\
     " instructions or cease distribution within thirty days after you \n"\
     " become aware that the instructions are invalid, then you do not \n"\
     " forfeit any of your rights under this license.\n"\
     " .\n"\
     " (6)  You may Distribute a Modified Version in Compiled form without \n"\
     " the Source, provided that you comply with Section 4 with respect to \n"\
     " the Source of the Modified Version.\n"\
     " .\n"\
     " Aggregating or Linking the Package \n"\
     " .\n"\
     " (7)  You may aggregate the Package (either the Standard Version or \n"\
     " Modified Version) with other packages and Distribute the resulting \n"\
     " aggregation provided that you do not charge a licensing fee for the \n"\
     " Package.  Distributor Fees are permitted, and licensing fees for \n"\
     " other components in the aggregation are permitted. The terms of this \n"\
     " license apply to the use and Distribution of the Standard or Modified \n"\
     " Versions as included in the aggregation.\n"\
     " .\n"\
     " (8) You are permitted to link Modified and Standard Versions with \n"\
     " other works, to embed the Package in a larger work of your own, or to \n"\
     " build stand-alone binary or bytecode versions of applications that \n"\
     " include the Package, and Distribute the result without restriction, \n"\
     " provided the result does not expose a direct interface to the Package.\n"\
     " .\n"\
     " Items That are Not Considered Part of a Modified Version \n"\
     " .\n"\
     " (9) Works (including, but not limited to, modules and scripts) that \n"\
     " merely extend or make use of the Package, do not, by themselves, \n"\
     " cause the Package to be a Modified Version.  In addition, such works \n"\
     " are not considered parts of the Package itself, and are not subject \n"\
     " to the terms of this license.\n"\
     " .\n"\
     " General Provisions\n"\
     " .\n"\
     " (10)  Any use, modification, and distribution of the Standard or \n"\
     " Modified Versions is governed by this Artistic License. By using, \n"\
     " modifying or distributing the Package, you accept this license. Do \n"\
     " not use, modify, or distribute the Package, if you do not accept this \n"\
     " license.\n"\
     " .\n"\
     " (11)  If your Modified Version has been derived from a Modified \n"\
     " Version made by someone other than you, you are nevertheless required \n"\
     " to ensure that your Modified Version complies with the requirements \n"\
     " of this license.\n"\
     " .\n"\
     " (12)  This license does not grant you the right to use any trademark, \n"\
     " service mark, tradename, or logo of the Copyright Holder.\n"\
     " .\n"\
     " (13)  This license includes the non-exclusive, worldwide, \n"\
     " free-of-charge patent license to make, have made, use, offer to sell, \n"\
     " sell, import and otherwise transfer the Package with respect to any \n"\
     " patent claims licensable by the Copyright Holder that are necessarily \n"\
     " infringed by the Package. If you institute patent litigation \n"\
     " (including a cross-claim or counterclaim) against any party alleging \n"\
     " that the Package constitutes direct or contributory patent \n"\
     " infringement, then this Artistic License to you shall terminate on \n"\
     " the date that such litigation is filed.\n"\
     " .\n"\
     " (14)  Disclaimer of Warranty:\n"\
     " THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS \"AS \n"\
     " IS\" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED \n"\
     " WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR \n"\
     " NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL \n"\
     " LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL \n"\
     " BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL \n"\
     " DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF \n"\
     " ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"\
     " "
  return text

def textBSL10():
  text = \
     "License: BSL-1.0\n"\
     " Boost Software License - Version 1.0 - August 17th, 2003\n"\
     " .\n"\
     " Permission is hereby granted, free of charge, to any person or \n"\
     " organization obtaining a copy of the software and accompanying \n"\
     " documentation covered by this license (the \"Software\") to use, \n"\
     " reproduce, display, distribute, execute, and transmit the Software, \n"\
     " and to prepare derivative works of the Software, and to permit \n"\
     " third-parties to whom the Software is furnished to do so, all subject \n"\
     " to the following:\n"\
     " .\n"\
     " The copyright notices in the Software and this entire statement, \n"\
     " including the above license grant, this restriction and the following \n"\
     " disclaimer, must be included in all copies of the Software, in whole \n"\
     " or in part, and all derivative works of the Software, unless such \n"\
     " copies or derivative works are solely in the form of \n"\
     " machine-executable object code generated by a source language \n"\
     " processor.\n"\
     " .\n"\
     " THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, \n"\
     " EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF \n"\
     " MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND \n"\
     " NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE \n"\
     " DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER \n"\
     " LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT \n"\
     " OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN \n"\
     " THE SOFTWARE.\n"\
     " "
  return text


def textCC0():
  text = \
     "License: CC0\n"\
     " Creative Commons CC0 1.0 Universal\n"\
     " .\n"\
     " Statement of Purpose\n"\
     " .\n"\
     " The laws of most jurisdictions throughout the world automatically \n"\
     " confer exclusive Copyright and Related Rights (defined below) upon \n"\
     " the creator and subsequent owner(s) (each and all, an \"owner\") of an \n"\
     " original work of authorship and/or a database (each, a \"Work\").\n"\
     " .\n"\
     " Certain owners wish to permanently relinquish those rights to a Work \n"\
     " for the purpose of contributing to a commons of creative, cultural \n"\
     " and scientific works (\"Commons\") that the public can reliably and \n"\
     " without fear of later claims of infringement build upon, modify, \n"\
     " incorporate in other works, reuse and redistribute as freely as \n"\
     " possible in any form whatsoever and for any purposes, including \n"\
     " without limitation commercial purposes. These owners may contribute \n"\
     " to the Commons to promote the ideal of a free culture and the further \n"\
     " production of creative, cultural and scientific works, or to gain \n"\
     " reputation or greater distribution for their Work in part through the \n"\
     " use and efforts of others.\n"\
     " .\n"\
     " For these and/or other purposes and motivations, and without any \n"\
     " expectation of additional consideration or compensation, the person \n"\
     " associating CC0 with a Work (the \"Affirmer\"), to the extent that he \n"\
     " or she is an owner of Copyright and Related Rights in the Work, \n"\
     " voluntarily elects to apply CC0 to the Work and publicly distribute \n"\
     " the Work under its terms, with knowledge of his or her Copyright and \n"\
     " Related Rights in the Work and the meaning and intended legal effect \n"\
     " of CC0 on those rights.\n"\
     " .\n"\
     " 1. Copyright and Related Rights. A Work made available under CC0 may \n"\
     " be protected by copyright and related or neighboring rights \n"\
     " (\"Copyright and Related Rights\"). Copyright and Related Rights \n"\
     " include, but are not limited to, the following:\n"\
     " .\n"\
     "      i. the right to reproduce, adapt, distribute, perform, display, \n"\
     " communicate, and translate a Work;\n"\
     " .\n"\
     "      ii. moral rights retained by the original author(s) and/or \n"\
     " performer(s);\n"\
     " .\n"\
     "      iii. publicity and privacy rights pertaining to a person's image \n"\
     " or likeness depicted in a Work;\n"\
     " .\n"\
     "      iv. rights protecting against unfair competition in regards to a \n"\
     " Work, subject to the limitations in paragraph 4(a), below;\n"\
     " .\n"\
     "      v. rights protecting the extraction, dissemination, use and \n"\
     " reuse of data in a Work;\n"\
     " .\n"\
     "      vi. database rights (such as those arising under Directive \n"\
     " 96/9/EC of the European Parliament and of the Council of 11 March \n"\
     " 1996 on the legal protection of databases, and under any national \n"\
     " implementation thereof, including any amended or successor version of \n"\
     " such directive); and\n"\
     " .\n"\
     "      vii. other similar, equivalent or corresponding rights \n"\
     " throughout the world based on applicable law or treaty, and any \n"\
     " national implementations thereof.\n"\
     " .\n"\
     " 2. Waiver. To the greatest extent permitted by, but not in \n"\
     " contravention of, applicable law, Affirmer hereby overtly, fully, \n"\
     " permanently, irrevocably and unconditionally waives, abandons, and \n"\
     " surrenders all of Affirmer's Copyright and Related Rights and \n"\
     " associated claims and causes of action, whether now known or unknown \n"\
     " (including existing as well as future claims and causes of action), \n"\
     " in the Work (i) in all territories worldwide, (ii) for the maximum \n"\
     " duration provided by applicable law or treaty (including future time \n"\
     " extensions), (iii) in any current or future medium and for any number \n"\
     " of copies, and (iv) for any purpose whatsoever, including without \n"\
     " limitation commercial, advertising or promotional purposes (the \n"\
     " \"Waiver\"). Affirmer makes the Waiver for the benefit of each member \n"\
     " of the public at large and to the detriment of Affirmer's heirs and \n"\
     " successors, fully intending that such Waiver shall not be subject to \n"\
     " revocation, rescission, cancellation, termination, or any other legal \n"\
     " or equitable action to disrupt the quiet enjoyment of the Work by the \n"\
     " public as contemplated by Affirmer's express Statement of Purpose.\n"\
     " .\n"\
     " 3. Public License Fallback. Should any part of the Waiver for any \n"\
     " reason be judged legally invalid or ineffective under applicable law, \n"\
     " then the Waiver shall be preserved to the maximum extent permitted \n"\
     " taking into account Affirmer's express Statement of Purpose. In \n"\
     " addition, to the extent the Waiver is so judged Affirmer hereby \n"\
     " grants to each affected person a royalty-free, non transferable, non \n"\
     " sublicensable, non exclusive, irrevocable and unconditional license \n"\
     " to exercise Affirmer's Copyright and Related Rights in the Work (i) \n"\
     " in all territories worldwide, (ii) for the maximum duration provided \n"\
     " by applicable law or treaty (including future time extensions), (iii) \n"\
     " in any current or future medium and for any number of copies, and \n"\
     " (iv) for any purpose whatsoever, including without limitation \n"\
     " commercial, advertising or promotional purposes (the \"License\"). The \n"\
     " License shall be deemed effective as of the date CC0 was applied by \n"\
     " Affirmer to the Work. Should any part of the License for any reason \n"\
     " be judged legally invalid or ineffective under applicable law, such \n"\
     " partial invalidity or ineffectiveness shall not invalidate the \n"\
     " remainder of the License, and in such case Affirmer hereby affirms \n"\
     " that he or she will not (i) exercise any of his or her remaining \n"\
     " Copyright and Related Rights in the Work or (ii) assert any \n"\
     " associated claims and causes of action with respect to the Work, in \n"\
     " either case contrary to Affirmer's express Statement of Purpose.\n"\
     " .\n"\
     " 4. Limitations and Disclaimers.\n"\
     " .\n"\
     "      a. No trademark or patent rights held by Affirmer are waived, \n"\
     " abandoned, surrendered, licensed or otherwise affected by this \n"\
     " document.\n"\
     " .\n"\
     "      b. Affirmer offers the Work as-is and makes no representations \n"\
     " or warranties of any kind concerning the Work, express, implied, \n"\
     " statutory or otherwise, including without limitation warranties of \n"\
     " title, merchantability, fitness for a particular purpose, non \n"\
     " infringement, or the absence of latent or other defects, accuracy, or \n"\
     " the present or absence of errors, whether or not discoverable, all to \n"\
     " the greatest extent permissible under applicable law.\n"\
     " .\n"\
     "      c. Affirmer disclaims responsibility for clearing rights of \n"\
     " other persons that may apply to the Work or any use thereof, \n"\
     " including without limitation any person's Copyright and Related \n"\
     " Rights in the Work. Further, Affirmer disclaims responsibility for \n"\
     " obtaining any necessary consents, permissions or other rights \n"\
     " required for any use of the Work.\n"\
     " .\n"\
     "      d. Affirmer understands and acknowledges that Creative Commons \n"\
     " is not a party to this document and has no duty or obligation with \n"\
     " respect to this CC0 or use of the Work. \n"\
     " "
  return text

def textCCBY30():
  text = \
     "License: CC-BY-3.0\n"\
     " Creative Commons Attribution 3.0 Unported\n"\
     " .\n"\
     " License\n"\
     " .\n"\
     " THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS \n"\
     " CREATIVE COMMONS PUBLIC LICENSE (\"CCPL\" OR \"LICENSE\"). THE WORK IS \n"\
     " PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE \n"\
     " WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS \n"\
     " PROHIBITED.\n"\
     " .\n"\
     " BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND \n"\
     " AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS \n"\
     " LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU \n"\
     " THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH \n"\
     " TERMS AND CONDITIONS.\n"\
     " .\n"\
     " 1. Definitions\n"\
     " .\n"\
     "      a. \"Adaptation\" means a work based upon the Work, or upon the \n"\
     " Work and other pre-existing works, such as a translation, adaptation, \n"\
     " derivative work, arrangement of music or other alterations of a \n"\
     " literary or artistic work, or phonogram or performance and includes \n"\
     " cinematographic adaptations or any other form in which the Work may \n"\
     " be recast, transformed, or adapted including in any form recognizably \n"\
     " derived from the original, except that a work that constitutes a \n"\
     " Collection will not be considered an Adaptation for the purpose of \n"\
     " this License. For the avoidance of doubt, where the Work is a musical \n"\
     " work, performance or phonogram, the synchronization of the Work in \n"\
     " timed-relation with a moving image (\"synching\") will be considered an \n"\
     " Adaptation for the purpose of this License.\n"\
     " .\n"\
     "      b. \"Collection\" means a collection of literary or artistic \n"\
     " works, such as encyclopedias and anthologies, or performances, \n"\
     " phonograms or broadcasts, or other works or subject matter other than \n"\
     " works listed in Section 1(f) below, which, by reason of the selection \n"\
     " and arrangement of their contents, constitute intellectual creations, \n"\
     " in which the Work is included in its entirety in unmodified form \n"\
     " along with one or more other contributions, each constituting \n"\
     " separate and independent works in themselves, which together are \n"\
     " assembled into a collective whole. A work that constitutes a \n"\
     " Collection will not be considered an Adaptation (as defined above) \n"\
     " for the purposes of this License.\n"\
     " .\n"\
     "      c. \"Distribute\" means to make available to the public the \n"\
     " original and copies of the Work or Adaptation, as appropriate, \n"\
     " through sale or other transfer of ownership.\n"\
     " .\n"\
     "      d. \"Licensor\" means the individual, individuals, entity or \n"\
     " entities that offer(s) the Work under the terms of this License.\n"\
     " .\n"\
     "      e. \"Original Author\" means, in the case of a literary or \n"\
     " artistic work, the individual, individuals, entity or entities who \n"\
     " created the Work or if no individual or entity can be identified, the \n"\
     " publisher; and in addition (i) in the case of a performance the \n"\
     " actors, singers, musicians, dancers, and other persons who act, sing, \n"\
     " deliver, declaim, play in, interpret or otherwise perform literary or \n"\
     " artistic works or expressions of folklore; (ii) in the case of a \n"\
     " phonogram the producer being the person or legal entity who first \n"\
     " fixes the sounds of a performance or other sounds; and, (iii) in the \n"\
     " case of broadcasts, the organization that transmits the broadcast.\n"\
     " .\n"\
     "      f. \"Work\" means the literary and/or artistic work offered under \n"\
     " the terms of this License including without limitation any production \n"\
     " in the literary, scientific and artistic domain, whatever may be the \n"\
     " mode or form of its expression including digital form, such as a \n"\
     " book, pamphlet and other writing; a lecture, address, sermon or other \n"\
     " work of the same nature; a dramatic or dramatico-musical work; a \n"\
     " choreographic work or entertainment in dumb show; a musical \n"\
     " composition with or without words; a cinematographic work to which \n"\
     " are assimilated works expressed by a process analogous to \n"\
     " cinematography; a work of drawing, painting, architecture, sculpture, \n"\
     " engraving or lithography; a photographic work to which are \n"\
     " assimilated works expressed by a process analogous to photography; a \n"\
     " work of applied art; an illustration, map, plan, sketch or \n"\
     " three-dimensional work relative to geography, topography, \n"\
     " architecture or science; a performance; a broadcast; a phonogram; a \n"\
     " compilation of data to the extent it is protected as a copyrightable \n"\
     " work; or a work performed by a variety or circus performer to the \n"\
     " extent it is not otherwise considered a literary or artistic work.\n"\
     " .\n"\
     "      g. \"You\" means an individual or entity exercising rights under \n"\
     " this License who has not previously violated the terms of this \n"\
     " License with respect to the Work, or who has received express \n"\
     " permission from the Licensor to exercise rights under this License \n"\
     " despite a previous violation.\n"\
     " .\n"\
     "      h. \"Publicly Perform\" means to perform public recitations of the \n"\
     " Work and to communicate to the public those public recitations, by \n"\
     " any means or process, including by wire or wireless means or public \n"\
     " digital performances; to make available to the public Works in such a \n"\
     " way that members of the public may access these Works from a place \n"\
     " and at a place individually chosen by them; to perform the Work to \n"\
     " the public by any means or process and the communication to the \n"\
     " public of the performances of the Work, including by public digital \n"\
     " performance; to broadcast and rebroadcast the Work by any means \n"\
     " including signs, sounds or images.\n"\
     " .\n"\
     "      i. \"Reproduce\" means to make copies of the Work by any means \n"\
     " including without limitation by sound or visual recordings and the \n"\
     " right of fixation and reproducing fixations of the Work, including \n"\
     " storage of a protected performance or phonogram in digital form or \n"\
     " other electronic medium.\n"\
     " .\n"\
     " 2. Fair Dealing Rights. Nothing in this License is intended to \n"\
     " reduce, limit, or restrict any uses free from copyright or rights \n"\
     " arising from limitations or exceptions that are provided for in \n"\
     " connection with the copyright protection under copyright law or other \n"\
     " applicable laws.\n"\
     " .\n"\
     " 3. License Grant. Subject to the terms and conditions of this \n"\
     " License, Licensor hereby grants You a worldwide, royalty-free, \n"\
     " non-exclusive, perpetual (for the duration of the applicable \n"\
     " copyright) license to exercise the rights in the Work as stated below:\n"\
     " .\n"\
     "      a. to Reproduce the Work, to incorporate the Work into one or \n"\
     " more Collections, and to Reproduce the Work as incorporated in the \n"\
     " Collections;\n"\
     " .\n"\
     "      b. to create and Reproduce Adaptations provided that any such \n"\
     " Adaptation, including any translation in any medium, takes reasonable \n"\
     " steps to clearly label, demarcate or otherwise identify that changes \n"\
     " were made to the original Work. For example, a translation could be \n"\
     " marked \"The original work was translated from English to Spanish,\" or \n"\
     " a modification could indicate \"The original work has been modified.\";\n"\
     " .\n"\
     "      c. to Distribute and Publicly Perform the Work including as \n"\
     " incorporated in Collections; and,\n"\
     " .\n"\
     "      d. to Distribute and Publicly Perform Adaptations.\n"\
     " .\n"\
     "      e. For the avoidance of doubt:\n"\
     " .\n"\
     "           i. Non-waivable Compulsory License Schemes. In those \n"\
     " jurisdictions in which the right to collect royalties through any \n"\
     " statutory or compulsory licensing scheme cannot be waived, the \n"\
     " Licensor reserves the exclusive right to collect such royalties for \n"\
     " any exercise by You of the rights granted under this License;\n"\
     " .\n"\
     "           ii. Waivable Compulsory License Schemes. In those \n"\
     " jurisdictions in which the right to collect royalties through any \n"\
     " statutory or compulsory licensing scheme can be waived, the Licensor \n"\
     " waives the exclusive right to collect such royalties for any exercise \n"\
     " by You of the rights granted under this License; and,\n"\
     " .\n"\
     "           iii. Voluntary License Schemes. The Licensor waives the \n"\
     " right to collect royalties, whether individually or, in the event \n"\
     " that the Licensor is a member of a collecting society that \n"\
     " administers voluntary licensing schemes, via that society, from any \n"\
     " exercise by You of the rights granted under this License.\n"\
     " .\n"\
     " The above rights may be exercised in all media and formats whether \n"\
     " now known or hereafter devised. The above rights include the right to \n"\
     " make such modifications as are technically necessary to exercise the \n"\
     " rights in other media and formats. Subject to Section 8(f), all \n"\
     " rights not expressly granted by Licensor are hereby reserved. \n"\
     " .\n"\
     " 4. Restrictions. The license granted in Section 3 above is expressly \n"\
     " made subject to and limited by the following restrictions:\n"\
     " .\n"\
     "      a. You may Distribute or Publicly Perform the Work only under \n"\
     " the terms of this License. You must include a copy of, or the Uniform \n"\
     " Resource Identifier (URI) for, this License with every copy of the \n"\
     " Work You Distribute or Publicly Perform. You may not offer or impose \n"\
     " any terms on the Work that restrict the terms of this License or the \n"\
     " ability of the recipient of the Work to exercise the rights granted \n"\
     " to that recipient under the terms of the License. You may not \n"\
     " sublicense the Work. You must keep intact all notices that refer to \n"\
     " this License and to the disclaimer of warranties with every copy of \n"\
     " the Work You Distribute or Publicly Perform. When You Distribute or \n"\
     " Publicly Perform the Work, You may not impose any effective \n"\
     " technological measures on the Work that restrict the ability of a \n"\
     " recipient of the Work from You to exercise the rights granted to that \n"\
     " recipient under the terms of the License. This Section 4(a) applies \n"\
     " to the Work as incorporated in a Collection, but this does not \n"\
     " require the Collection apart from the Work itself to be made subject \n"\
     " to the terms of this License. If You create a Collection, upon notice \n"\
     " from any Licensor You must, to the extent practicable, remove from \n"\
     " the Collection any credit as required by Section 4(b), as requested. \n"\
     " If You create an Adaptation, upon notice from any Licensor You must, \n"\
     " to the extent practicable, remove from the Adaptation any credit as \n"\
     " required by Section 4(b), as requested.\n"\
     " .\n"\
     "      b. If You Distribute, or Publicly Perform the Work or any \n"\
     " Adaptations or Collections, You must, unless a request has been made \n"\
     " pursuant to Section 4(a), keep intact all copyright notices for the \n"\
     " Work and provide, reasonable to the medium or means You are \n"\
     " utilizing: (i) the name of the Original Author (or pseudonym, if \n"\
     " applicable) if supplied, and/or if the Original Author and/or \n"\
     " Licensor designate another party or parties (e.g., a sponsor \n"\
     " institute, publishing entity, journal) for attribution (\"Attribution \n"\
     " Parties\") in Licensor's copyright notice, terms of service or by \n"\
     " other reasonable means, the name of such party or parties; (ii) the \n"\
     " title of the Work if supplied; (iii) to the extent reasonably \n"\
     " practicable, the URI, if any, that Licensor specifies to be \n"\
     " associated with the Work, unless such URI does not refer to the \n"\
     " copyright notice or licensing information for the Work; and (iv) , \n"\
     " consistent with Section 3(b), in the case of an Adaptation, a credit \n"\
     " identifying the use of the Work in the Adaptation (e.g., \"French \n"\
     " translation of the Work by Original Author,\" or \"Screenplay based on \n"\
     " original Work by Original Author\"). The credit required by this \n"\
     " Section 4 (b) may be implemented in any reasonable manner; provided, \n"\
     " however, that in the case of a Adaptation or Collection, at a minimum \n"\
     " such credit will appear, if a credit for all contributing authors of \n"\
     " the Adaptation or Collection appears, then as part of these credits \n"\
     " and in a manner at least as prominent as the credits for the other \n"\
     " contributing authors. For the avoidance of doubt, You may only use \n"\
     " the credit required by this Section for the purpose of attribution in \n"\
     " the manner set out above and, by exercising Your rights under this \n"\
     " License, You may not implicitly or explicitly assert or imply any \n"\
     " connection with, sponsorship or endorsement by the Original Author, \n"\
     " Licensor and/or Attribution Parties, as appropriate, of You or Your \n"\
     " use of the Work, without the separate, express prior written \n"\
     " permission of the Original Author, Licensor and/or Attribution \n"\
     " Parties.\n"\
     " .\n"\
     "      c. Except as otherwise agreed in writing by the Licensor or as \n"\
     " may be otherwise permitted by applicable law, if You Reproduce, \n"\
     " Distribute or Publicly Perform the Work either by itself or as part \n"\
     " of any Adaptations or Collections, You must not distort, mutilate, \n"\
     " modify or take other derogatory action in relation to the Work which \n"\
     " would be prejudicial to the Original Author's honor or reputation. \n"\
     " Licensor agrees that in those jurisdictions (e.g. Japan), in which \n"\
     " any exercise of the right granted in Section 3(b) of this License \n"\
     " (the right to make Adaptations) would be deemed to be a distortion, \n"\
     " mutilation, modification or other derogatory action prejudicial to \n"\
     " the Original Author's honor and reputation, the Licensor will waive \n"\
     " or not assert, as appropriate, this Section, to the fullest extent \n"\
     " permitted by the applicable national law, to enable You to reasonably \n"\
     " exercise Your right under Section 3(b) of this License (right to make \n"\
     " Adaptations) but not otherwise.\n"\
     " .\n"\
     " 5. Representations, Warranties and Disclaimer\n"\
     " .\n"\
     " UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, \n"\
     " LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR \n"\
     " WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, \n"\
     " STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF \n"\
     " TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, \n"\
     " NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, \n"\
     " OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. \n"\
     " SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, \n"\
     " SO SUCH EXCLUSION MAY NOT APPLY TO YOU.\n"\
     " .\n"\
     " 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY \n"\
     " APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY \n"\
     " LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR \n"\
     " EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, \n"\
     " EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n"\
     " .\n"\
     " 7. Termination\n"\
     " .\n"\
     "      a. This License and the rights granted hereunder will terminate \n"\
     " automatically upon any breach by You of the terms of this License. \n"\
     " Individuals or entities who have received Adaptations or Collections \n"\
     " from You under this License, however, will not have their licenses \n"\
     " terminated provided such individuals or entities remain in full \n"\
     " compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will \n"\
     " survive any termination of this License.\n"\
     " .\n"\
     "      b. Subject to the above terms and conditions, the license \n"\
     " granted here is perpetual (for the duration of the applicable \n"\
     " copyright in the Work). Notwithstanding the above, Licensor reserves \n"\
     " the right to release the Work under different license terms or to \n"\
     " stop distributing the Work at any time; provided, however that any \n"\
     " such election will not serve to withdraw this License (or any other \n"\
     " license that has been, or is required to be, granted under the terms \n"\
     " of this License), and this License will continue in full force and \n"\
     " effect unless terminated as stated above.\n"\
     " .\n"\
     " 8. Miscellaneous\n"\
     " .\n"\
     "      a. Each time You Distribute or Publicly Perform the Work or a \n"\
     " Collection, the Licensor offers to the recipient a license to the \n"\
     " Work on the same terms and conditions as the license granted to You \n"\
     " under this License.\n"\
     " .\n"\
     "      b. Each time You Distribute or Publicly Perform an Adaptation, \n"\
     " Licensor offers to the recipient a license to the original Work on \n"\
     " the same terms and conditions as the license granted to You under \n"\
     " this License.\n"\
     " .\n"\
     "      c. If any provision of this License is invalid or unenforceable \n"\
     " under applicable law, it shall not affect the validity or \n"\
     " enforceability of the remainder of the terms of this License, and \n"\
     " without further action by the parties to this agreement, such \n"\
     " provision shall be reformed to the minimum extent necessary to make \n"\
     " such provision valid and enforceable.\n"\
     " .\n"\
     "      d. No term or provision of this License shall be deemed waived \n"\
     " and no breach consented to unless such waiver or consent shall be in \n"\
     " writing and signed by the party to be charged with such waiver or \n"\
     " consent. This License constitutes the entire agreement between the \n"\
     " parties with respect to the Work licensed here. There are no \n"\
     " understandings, agreements or representations with respect to the \n"\
     " Work not specified here. Licensor shall not be bound by any \n"\
     " additional provisions that may appear in any communication from You.\n"\
     " .\n"\
     "      e. This License may not be modified without the mutual written \n"\
     " agreement of the Licensor and You.\n"\
     " .\n"\
     "      f. The rights granted under, and the subject matter referenced, \n"\
     " in this License were drafted utilizing the terminology of the Berne \n"\
     " Convention for the Protection of Literary and Artistic Works (as \n"\
     " amended on September 28, 1979), the Rome Convention of 1961, the WIPO \n"\
     " Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty \n"\
     " of 1996 and the Universal Copyright Convention (as revised on July \n"\
     " 24, 1971). These rights and subject matter take effect in the \n"\
     " relevant jurisdiction in which the License terms are sought to be \n"\
     " enforced according to the corresponding provisions of the \n"\
     " implementation of those treaty provisions in the applicable national \n"\
     " law. If the standard suite of rights granted under applicable \n"\
     " copyright law includes additional rights not granted under this \n"\
     " License, such additional rights are deemed to be included in the \n"\
     " License; this License is not intended to restrict the license of any \n"\
     " rights under applicable law. \n"\
     " .\n"\
     " Creative Commons Notice\n"\
     " .\n"\
     " Creative Commons is not a party to this License, and makes no \n"\
     " warranty whatsoever in connection with the Work. Creative Commons \n"\
     " will not be liable to You or any party on any legal theory for any \n"\
     " damages whatsoever, including without limitation any general, \n"\
     " special, incidental or consequential damages arising in connection to \n"\
     " this license. Notwithstanding the foregoing two (2) sentences, if \n"\
     " Creative Commons has expressly identified itself as the Licensor \n"\
     " hereunder, it shall have all rights and obligations of Licensor.\n"\
     " .\n"\
     " Except for the limited purpose of indicating to the public that the \n"\
     " Work is licensed under the CCPL, Creative Commons does not authorize \n"\
     " the use by either party of the trademark \"Creative Commons\" or any \n"\
     " related trademark or logo of Creative Commons without the prior \n"\
     " written consent of Creative Commons. Any permitted use will be in \n"\
     " compliance with Creative Commons' then-current trademark usage \n"\
     " guidelines, as may be published on its website or otherwise made \n"\
     " available upon request from time to time. For the avoidance of doubt, \n"\
     " this trademark restriction does not form part of this License.\n"\
     " .\n"\
     " Creative Commons may be contacted at http://creativecommons.org/. \n"\
     " "
  return text

def textCCBY40():
  text = \
     "License: CC-BY-4.0\n"\
     " Creative Commons Attribution 4.0 International\n"\
     " .\n"\
     " Using Creative Commons Public Licenses\n"\
     " .\n"\
     " Creative Commons public licenses provide a standard set of terms and \n"\
     " conditions that creators and other rights holders may use to share \n"\
     " original works of authorship and other material subject to copyright \n"\
     " and certain other rights specified in the public license below. The \n"\
     " following considerations are for informational purposes only, are not \n"\
     " exhaustive, and do not form part of our licenses.\n"\
     " .\n"\
     " Considerations for licensors: Our public licenses are intended for \n"\
     " use by those authorized to give the public permission to use material \n"\
     " in ways otherwise restricted by copyright and certain other rights. \n"\
     " Our licenses are irrevocable. Licensors should read and understand \n"\
     " the terms and conditions of the license they choose before applying \n"\
     " it. Licensors should also secure all rights necessary before applying \n"\
     " our licenses so that the public can reuse the material as expected. \n"\
     " Licensors should clearly mark any material not subject to the \n"\
     " license. This includes other CC-licensed material, or material used \n"\
     " under an exception or limitation to copyright. More considerations \n"\
     " for licensors.\n"\
     " .\n"\
     " Considerations for the public: By using one of our public licenses, a \n"\
     " licensor grants the public permission to use the licensed material \n"\
     " under specified terms and conditions. If the licensor\'s permission \n"\
     " is not necessary for any reason-for example, because of any \n"\
     " applicable exception or limitation to copyright-then that use is \n"\
     " not regulated by the license. Our licenses grant only permissions \n"\
     " under copyright and certain other rights that a licensor has \n"\
     " authority to grant. Use of the licensed material may still be \n"\
     " restricted for other reasons, including because others have copyright \n"\
     " or other rights in the material. A licensor may make special \n"\
     " requests, such as asking that all changes be marked or described. \n"\
     " Although not required by our licenses, you are encouraged to respect \n"\
     " those requests where reasonable. More considerations for the public. \n"\
     " <<endOptional>>\n"\
     " .\n"\
     " Creative Commons Attribution 4.0 International Public License\n"\
     " .\n"\
     " By exercising the Licensed Rights (defined below), You accept and \n"\
     " agree to be bound by the terms and conditions of this Creative \n"\
     " Commons Attribution 4.0 International Public License (\"Public \n"\
     " License\"). To the extent this Public License may be interpreted as a \n"\
     " contract, You are granted the Licensed Rights in consideration of \n"\
     " Your acceptance of these terms and conditions, and the Licensor \n"\
     " grants You such rights in consideration of benefits the Licensor \n"\
     " receives from making the Licensed Material available under these \n"\
     " terms and conditions.\n"\
     " .\n"\
     " Section 1 - Definitions.\n"\
     " .\n"\
     "      a.	Adapted Material means material subject to Copyright and \n"\
     " Similar Rights that is derived from or based upon the Licensed \n"\
     " Material and in which the Licensed Material is translated, altered, \n"\
     " arranged, transformed, or otherwise modified in a manner requiring \n"\
     " permission under the Copyright and Similar Rights held by the \n"\
     " Licensor. For purposes of this Public License, where the Licensed \n"\
     " Material is a musical work, performance, or sound recording, Adapted \n"\
     " Material is always produced where the Licensed Material is synched in \n"\
     " timed relation with a moving image.\n"\
     " .\n"\
     "      b.	Adapter's License means the license You apply to Your \n"\
     " Copyright and Similar Rights in Your contributions to Adapted \n"\
     " Material in accordance with the terms and conditions of this Public \n"\
     " License.\n"\
     " .\n"\
     "      c.	Copyright and Similar Rights means copyright and/or similar \n"\
     " rights closely related to copyright including, without limitation, \n"\
     " performance, broadcast, sound recording, and Sui Generis Database \n"\
     " Rights, without regard to how the rights are labeled or categorized. \n"\
     " For purposes of this Public License, the rights specified in Section \n"\
     " 2(b)(1)-(2) are not Copyright and Similar Rights.\n"\
     " .\n"\
     "      d.	Effective Technological Measures means those measures that, \n"\
     " in the absence of proper authority, may not be circumvented under \n"\
     " laws fulfilling obligations under Article 11 of the WIPO Copyright \n"\
     " Treaty adopted on December 20, 1996, and/or similar international \n"\
     " agreements.\n"\
     " .\n"\
     "      e.	Exceptions and Limitations means fair use, fair dealing, \n"\
     " and/or any other exception or limitation to Copyright and Similar \n"\
     " Rights that applies to Your use of the Licensed Material.\n"\
     " .\n"\
     "      f.	Licensed Material means the artistic or literary work, \n"\
     " database, or other material to which the Licensor applied this Public \n"\
     " License.\n"\
     " .\n"\
     "      g.	Licensed Rights means the rights granted to You subject to \n"\
     " the terms and conditions of this Public License, which are limited to \n"\
     " all Copyright and Similar Rights that apply to Your use of the \n"\
     " Licensed Material and that the Licensor has authority to license.\n"\
     " .\n"\
     "      h.	Licensor means the individual(s) or entity(ies) granting \n"\
     " rights under this Public License.\n"\
     " .\n"\
     "      i.	Share means to provide material to the public by any means or \n"\
     " process that requires permission under the Licensed Rights, such as \n"\
     " reproduction, public display, public performance, distribution, \n"\
     " dissemination, communication, or importation, and to make material \n"\
     " available to the public including in ways that members of the public \n"\
     " may access the material from a place and at a time individually \n"\
     " chosen by them.\n"\
     " .\n"\
     "      j.	Sui Generis Database Rights means rights other than copyright \n"\
     " resulting from Directive 96/9/EC of the European Parliament and of \n"\
     " the Council of 11 March 1996 on the legal protection of databases, as \n"\
     " amended and/or succeeded, as well as other essentially equivalent \n"\
     " rights anywhere in the world.\n"\
     " .\n"\
     "      k.	You means the individual or entity exercising the Licensed \n"\
     " Rights under this Public License. Your has a corresponding meaning.\n"\
     " .\n"\
     " Section 2 - Scope.\n"\
     " .\n"\
     "      a.	License grant.\n"\
     " .\n"\
     "           1. Subject to the terms and conditions of this Public \n"\
     " License, the Licensor hereby grants You a worldwide, royalty-free, \n"\
     " non-sublicensable, non-exclusive, irrevocable license to exercise the \n"\
     " Licensed Rights in the Licensed Material to:\n"\
     " .\n"\
     "                A. reproduce and Share the Licensed Material, in whole \n"\
     " or in part; and     \n"\
     " .\n"\
     "                B. produce, reproduce, and Share Adapted Material.\n"\
     " .\n"\
     "           2. Exceptions and Limitations. For the avoidance of doubt, \n"\
     " where Exceptions and Limitations apply to Your use, this Public \n"\
     " License does not apply, and You do not need to comply with its terms \n"\
     " and conditions.\n"\
     " .\n"\
     "           3. Term. The term of this Public License is specified in \n"\
     " Section 6(a).\n"\
     " .\n"\
     "           4. Media and formats; technical modifications allowed. The \n"\
     " Licensor authorizes You to exercise the Licensed Rights in all media \n"\
     " and formats whether now known or hereafter created, and to make \n"\
     " technical modifications necessary to do so. The Licensor waives \n"\
     " and/or agrees not to assert any right or authority to forbid You from \n"\
     " making technical modifications necessary to exercise the Licensed \n"\
     " Rights, including technical modifications necessary to circumvent \n"\
     " Effective Technological Measures. For purposes of this Public \n"\
     " License, simply making modifications authorized by this Section \n"\
     " 2(a)(4) never produces Adapted Material.\n"\
     " .\n"\
     "           5. Downstream recipients.\n"\
     " .\n"\
     "                A. Offer from the Licensor - Licensed Material. \n"\
     " Every recipient of the Licensed Material automatically receives an \n"\
     " offer from the Licensor to exercise the Licensed Rights under the \n"\
     " terms and conditions of this Public License.\n"\
     " .\n"\
     "                B. No downstream restrictions. You may not offer or \n"\
     " impose any additional or different terms or conditions on, or apply \n"\
     " any Effective Technological Measures to, the Licensed Material if \n"\
     " doing so restricts exercise of the Licensed Rights by any recipient \n"\
     " of the Licensed Material.\n"\
     " .\n"\
     "           6.  No endorsement. Nothing in this Public License \n"\
     " constitutes or may be construed as permission to assert or imply that \n"\
     " You are, or that Your use of the Licensed Material is, connected \n"\
     " with, or sponsored, endorsed, or granted official status by, the \n"\
     " Licensor or others designated to receive attribution as provided in \n"\
     " Section 3(a)(1)(A)(i).\n"\
     " .\n"\
     " b. Other rights.\n"\
     " .\n"\
     "           1. Moral rights, such as the right of integrity, are not \n"\
     " licensed under this Public License, nor are publicity, privacy, \n"\
     " and/or other similar personality rights; however, to the extent \n"\
     " possible, the Licensor waives and/or agrees not to assert any such \n"\
     " rights held by the Licensor to the limited extent necessary to allow \n"\
     " You to exercise the Licensed Rights, but not otherwise.\n"\
     " .\n"\
     "           2. Patent and trademark rights are not licensed under this \n"\
     " Public License.\n"\
     " .\n"\
     "           3. To the extent possible, the Licensor waives any right to \n"\
     " collect royalties from You for the exercise of the Licensed Rights, \n"\
     " whether directly or through a collecting society under any voluntary \n"\
     " or waivable statutory or compulsory licensing scheme. In all other \n"\
     " cases the Licensor expressly reserves any right to collect such \n"\
     " royalties.   \n"\
     " .\n"\
     " Section 3 - License Conditions.\n"\
     " .\n"\
     " Your exercise of the Licensed Rights is expressly made subject to the \n"\
     " following conditions.\n"\
     " .\n"\
     "      a.	Attribution.\n"\
     " .\n"\
     "           1. If You Share the Licensed Material (including in \n"\
     " modified form), You must:\n"\
     " .\n"\
     "                A. retain the following if it is supplied by the \n"\
     " Licensor with the Licensed Material:\n"\
     " .\n"\
     "                     i. identification of the creator(s) of the \n"\
     " Licensed Material and any others designated to receive attribution, \n"\
     " in any reasonable manner requested by the Licensor (including by \n"\
     " pseudonym if designated);\n"\
     " .\n"\
     "                     ii. a copyright notice;\n"\
     " .\n"\
     "                     iii. a notice that refers to this Public License;\n"\
     " .\n"\
     "                     iv.	a notice that refers to the disclaimer of \n"\
     " warranties;\n"\
     " .\n"\
     "                     v. a URI or hyperlink to the Licensed Material to \n"\
     " the extent reasonably practicable;\n"\
     " .\n"\
     "                B. indicate if You modified the Licensed Material and \n"\
     " retain an indication of any previous modifications; and\n"\
     " .\n"\
     "                C. indicate the Licensed Material is licensed under \n"\
     " this Public License, and include the text of, or the URI or hyperlink \n"\
     " to, this Public License.\n"\
     " .\n"\
     "           2. You may satisfy the conditions in Section 3(a)(1) in any \n"\
     " reasonable manner based on the medium, means, and context in which \n"\
     " You Share the Licensed Material. For example, it may be reasonable to \n"\
     " satisfy the conditions by providing a URI or hyperlink to a resource \n"\
     " that includes the required information.\n"\
     " .\n"\
     "           3. If requested by the Licensor, You must remove any of the \n"\
     " information required by Section 3(a)(1)(A) to the extent reasonably \n"\
     " practicable.\n"\
     " .\n"\
     "           4. If You Share Adapted Material You produce, the Adapter's \n"\
     " License You apply must not prevent recipients of the Adapted Material \n"\
     " from complying with this Public License.\n"\
     " .\n"\
     " Section 4 - Sui Generis Database Rights.\n"\
     " .\n"\
     " Where the Licensed Rights include Sui Generis Database Rights that \n"\
     " apply to Your use of the Licensed Material:\n"\
     " .\n"\
     "      a.	for the avoidance of doubt, Section 2(a)(1) grants You the \n"\
     " right to extract, reuse, reproduce, and Share all or a substantial \n"\
     " portion of the contents of the database;\n"\
     " .\n"\
     "      b.	if You include all or a substantial portion of the database \n"\
     " contents in a database in which You have Sui Generis Database Rights, \n"\
     " then the database in which You have Sui Generis Database Rights (but \n"\
     " not its individual contents) is Adapted Material; and\n"\
     " .\n"\
     "      c.	You must comply with the conditions in Section 3(a) if You \n"\
     " Share all or a substantial portion of the contents of the database.\n"\
     " For the avoidance of doubt, this Section 4 supplements and does not \n"\
     " replace Your obligations under this Public License where the Licensed \n"\
     " Rights include other Copyright and Similar Rights.\n"\
     " .\n"\
     " Section 5 - Disclaimer of Warranties and Limitation of Liability.\n"\
     " .\n"\
     "      a.	Unless otherwise separately undertaken by the Licensor, to \n"\
     " the extent possible, the Licensor offers the Licensed Material as-is \n"\
     " and as-available, and makes no representations or warranties of any \n"\
     " kind concerning the Licensed Material, whether express, implied, \n"\
     " statutory, or other. This includes, without limitation, warranties of \n"\
     " title, merchantability, fitness for a particular purpose, \n"\
     " non-infringement, absence of latent or other defects, accuracy, or \n"\
     " the presence or absence of errors, whether or not known or \n"\
     " discoverable. Where disclaimers of warranties are not allowed in full \n"\
     " or in part, this disclaimer may not apply to You.\n"\
     " .\n"\
     "      b.	To the extent possible, in no event will the Licensor be \n"\
     " liable to You on any legal theory (including, without limitation, \n"\
     " negligence) or otherwise for any direct, special, indirect, \n"\
     " incidental, consequential, punitive, exemplary, or other losses, \n"\
     " costs, expenses, or damages arising out of this Public License or use \n"\
     " of the Licensed Material, even if the Licensor has been advised of \n"\
     " the possibility of such losses, costs, expenses, or damages. Where a \n"\
     " limitation of liability is not allowed in full or in part, this \n"\
     " limitation may not apply to You.\n"\
     " .\n"\
     "      c.	The disclaimer of warranties and limitation of liability \n"\
     " provided above shall be interpreted in a manner that, to the extent \n"\
     " possible, most closely approximates an absolute disclaimer and waiver \n"\
     " of all liability.\n"\
     " .\n"\
     " Section 6 - Term and Termination.\n"\
     " .\n"\
     "      a.	This Public License applies for the term of the Copyright and \n"\
     " Similar Rights licensed here. However, if You fail to comply with \n"\
     " this Public License, then Your rights under this Public License \n"\
     " terminate automatically.\n"\
     " .\n"\
     "      b.	Where Your right to use the Licensed Material has terminated \n"\
     " under Section 6(a), it reinstates:\n"\
     " .\n"\
     "           1. automatically as of the date the violation is cured, \n"\
     " provided it is cured within 30 days of Your discovery of the \n"\
     " violation; or\n"\
     " .\n"\
     "           2. upon express reinstatement by the Licensor.\n"\
     " .\n"\
     "      c.	For the avoidance of doubt, this Section 6(b) does not affect \n"\
     " any right the Licensor may have to seek remedies for Your violations \n"\
     " of this Public License.\n"\
     " .\n"\
     "      d.	For the avoidance of doubt, the Licensor may also offer the \n"\
     " Licensed Material under separate terms or conditions or stop \n"\
     " distributing the Licensed Material at any time; however, doing so \n"\
     " will not terminate this Public License.\n"\
     " .\n"\
     "      e.	Sections 1, 5, 6, 7, and 8 survive termination of this Public \n"\
     " License.\n"\
     " .\n"\
     " Section 7 - Other Terms and Conditions.\n"\
     " .\n"\
     "      a.	The Licensor shall not be bound by any additional or \n"\
     " different terms or conditions communicated by You unless expressly \n"\
     " agreed.\n"\
     " .\n"\
     "      b.	Any arrangements, understandings, or agreements regarding the \n"\
     " Licensed Material not stated herein are separate from and independent \n"\
     " of the terms and conditions of this Public License.\n"\
     " .\n"\
     " Section 8 - Interpretation.\n"\
     " .\n"\
     "      a.	For the avoidance of doubt, this Public License does not, and \n"\
     " shall not be interpreted to, reduce, limit, restrict, or impose \n"\
     " conditions on any use of the Licensed Material that could lawfully be \n"\
     " made without permission under this Public License.\n"\
     " .\n"\
     "      b.	To the extent possible, if any provision of this Public \n"\
     " License is deemed unenforceable, it shall be automatically reformed \n"\
     " to the minimum extent necessary to make it enforceable. If the \n"\
     " provision cannot be reformed, it shall be severed from this Public \n"\
     " License without affecting the enforceability of the remaining terms \n"\
     " and conditions.\n"\
     " .\n"\
     "      c.	No term or condition of this Public License will be waived \n"\
     " and no failure to comply consented to unless expressly agreed to by \n"\
     " the Licensor.\n"\
     " .\n"\
     "      d.	Nothing in this Public License constitutes or may be \n"\
     " interpreted as a limitation upon, or waiver of, any privileges and \n"\
     " immunities that apply to the Licensor or You, including from the \n"\
     " legal processes of any jurisdiction or authority.\n"\
     " .\n"\
     " Creative Commons is not a party to its public licenses. \n"\
     " Notwithstanding, Creative Commons may elect to apply one of its \n"\
     " public licenses to material it publishes and in those instances will \n"\
     " be considered the \"Licensor.\" Except for the limited purpose of \n"\
     " indicating that material is shared under a Creative Commons public \n"\
     " license or as otherwise permitted by the Creative Commons policies \n"\
     " published at creativecommons.org/policies, Creative Commons does not \n"\
     " authorize the use of the trademark \"Creative Commons\" or any \n"\
     " other trademark or logo of Creative Commons without its prior written \n"\
     " consent including, without limitation, in connection with any \n"\
     " unauthorized modifications to any of its public licenses or any other \n"\
     " arrangements, understandings, or agreements concerning use of \n"\
     " licensed material. For the avoidance of doubt, this paragraph does \n"\
     " not form part of the public licenses. Creative Commons may be \n"\
     " contacted at creativecommons.org.\n"\
     " "
  return text

def textCCBYSA30():
  text = \
     "License: CC-BY-SA-3.0\n"\
     " Creative Commons Attribution-ShareAlike 3.0 Unported\n"\
     " .\n"\
     " License\n"\
     " .\n"\
     " THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS \n"\
     " CREATIVE COMMONS PUBLIC LICENSE (\"CCPL\" OR \"LICENSE\"). THE WORK IS \n"\
     " PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE \n"\
     " WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS \n"\
     " PROHIBITED.\n"\
     " .\n"\
     " BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND \n"\
     " AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS \n"\
     " LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU \n"\
     " THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH \n"\
     " TERMS AND CONDITIONS.\n"\
     " .\n"\
     " 1. Definitions\n"\
     " .\n"\
     "      a. \"Adaptation\" means a work based upon the Work, or upon the \n"\
     " Work and other pre-existing works, such as a translation, adaptation, \n"\
     " derivative work, arrangement of music or other alterations of a \n"\
     " literary or artistic work, or phonogram or performance and includes \n"\
     " cinematographic adaptations or any other form in which the Work may \n"\
     " be recast, transformed, or adapted including in any form recognizably \n"\
     " derived from the original, except that a work that constitutes a \n"\
     " Collection will not be considered an Adaptation for the purpose of \n"\
     " this License. For the avoidance of doubt, where the Work is a musical \n"\
     " work, performance or phonogram, the synchronization of the Work in \n"\
     " timed-relation with a moving image (\"synching\") will be considered an \n"\
     " Adaptation for the purpose of this License.\n"\
     " .\n"\
     "      b. \"Collection\" means a collection of literary or artistic \n"\
     " works, such as encyclopedias and anthologies, or performances, \n"\
     " phonograms or broadcasts, or other works or subject matter other than \n"\
     " works listed in Section 1(f) below, which, by reason of the selection \n"\
     " and arrangement of their contents, constitute intellectual creations, \n"\
     " in which the Work is included in its entirety in unmodified form \n"\
     " along with one or more other contributions, each constituting \n"\
     " separate and independent works in themselves, which together are \n"\
     " assembled into a collective whole. A work that constitutes a \n"\
     " Collection will not be considered an Adaptation (as defined below) \n"\
     " for the purposes of this License.\n"\
     " .\n"\
     "      c. \"Creative Commons Compatible License\" means a license that is \n"\
     " listed at http://creativecommons.org/compatiblelicenses that has been \n"\
     " approved by Creative Commons as being essentially equivalent to this \n"\
     " License, including, at a minimum, because that license: (i) contains \n"\
     " terms that have the same purpose, meaning and effect as the License \n"\
     " Elements of this License; and, (ii) explicitly permits the \n"\
     " relicensing of adaptations of works made available under that license \n"\
     " under this License or a Creative Commons jurisdiction license with \n"\
     " the same License Elements as this License.\n"\
     " .\n"\
     "      d. \"Distribute\" means to make available to the public the \n"\
     " original and copies of the Work or Adaptation, as appropriate, \n"\
     " through sale or other transfer of ownership.\n"\
     " .\n"\
     "      e. \"License Elements\" means the following high-level license \n"\
     " attributes as selected by Licensor and indicated in the title of this \n"\
     " License: Attribution, ShareAlike.\n"\
     " .\n"\
     "      f. \"Licensor\" means the individual, individuals, entity or \n"\
     " entities that offer(s) the Work under the terms of this License.\n"\
     " .\n"\
     "      g. \"Original Author\" means, in the case of a literary or \n"\
     " artistic work, the individual, individuals, entity or entities who \n"\
     " created the Work or if no individual or entity can be identified, the \n"\
     " publisher; and in addition (i) in the case of a performance the \n"\
     " actors, singers, musicians, dancers, and other persons who act, sing, \n"\
     " deliver, declaim, play in, interpret or otherwise perform literary or \n"\
     " artistic works or expressions of folklore; (ii) in the case of a \n"\
     " phonogram the producer being the person or legal entity who first \n"\
     " fixes the sounds of a performance or other sounds; and, (iii) in the \n"\
     " case of broadcasts, the organization that transmits the broadcast.\n"\
     " .\n"\
     "      h. \"Work\" means the literary and/or artistic work offered under \n"\
     " the terms of this License including without limitation any production \n"\
     " in the literary, scientific and artistic domain, whatever may be the \n"\
     " mode or form of its expression including digital form, such as a \n"\
     " book, pamphlet and other writing; a lecture, address, sermon or other \n"\
     " work of the same nature; a dramatic or dramatico-musical work; a \n"\
     " choreographic work or entertainment in dumb show; a musical \n"\
     " composition with or without words; a cinematographic work to which \n"\
     " are assimilated works expressed by a process analogous to \n"\
     " cinematography; a work of drawing, painting, architecture, sculpture, \n"\
     " engraving or lithography; a photographic work to which are \n"\
     " assimilated works expressed by a process analogous to photography; a \n"\
     " work of applied art; an illustration, map, plan, sketch or \n"\
     " three-dimensional work relative to geography, topography, \n"\
     " architecture or science; a performance; a broadcast; a phonogram; a \n"\
     " compilation of data to the extent it is protected as a copyrightable \n"\
     " work; or a work performed by a variety or circus performer to the \n"\
     " extent it is not otherwise considered a literary or artistic work.\n"\
     " .\n"\
     "      i. \"You\" means an individual or entity exercising rights under \n"\
     " this License who has not previously violated the terms of this \n"\
     " License with respect to the Work, or who has received express \n"\
     " permission from the Licensor to exercise rights under this License \n"\
     " despite a previous violation.\n"\
     " .\n"\
     "      j. \"Publicly Perform\" means to perform public recitations of the \n"\
     " Work and to communicate to the public those public recitations, by \n"\
     " any means or process, including by wire or wireless means or public \n"\
     " digital performances; to make available to the public Works in such a \n"\
     " way that members of the public may access these Works from a place \n"\
     " and at a place individually chosen by them; to perform the Work to \n"\
     " the public by any means or process and the communication to the \n"\
     " public of the performances of the Work, including by public digital \n"\
     " performance; to broadcast and rebroadcast the Work by any means \n"\
     " including signs, sounds or images.\n"\
     " .\n"\
     "      k. \"Reproduce\" means to make copies of the Work by any means \n"\
     " including without limitation by sound or visual recordings and the \n"\
     " right of fixation and reproducing fixations of the Work, including \n"\
     " storage of a protected performance or phonogram in digital form or \n"\
     " other electronic medium.\n"\
     " .\n"\
     " 2. Fair Dealing Rights. Nothing in this License is intended to \n"\
     " reduce, limit, or restrict any uses free from copyright or rights \n"\
     " arising from limitations or exceptions that are provided for in \n"\
     " connection with the copyright protection under copyright law or other \n"\
     " applicable laws.\n"\
     " .\n"\
     " 3. License Grant. Subject to the terms and conditions of this \n"\
     " License, Licensor hereby grants You a worldwide, royalty-free, \n"\
     " non-exclusive, perpetual (for the duration of the applicable \n"\
     " copyright) license to exercise the rights in the Work as stated below:\n"\
     " .\n"\
     "      a. to Reproduce the Work, to incorporate the Work into one or \n"\
     " more Collections, and to Reproduce the Work as incorporated in the \n"\
     " Collections;\n"\
     " .\n"\
     "      b. to create and Reproduce Adaptations provided that any such \n"\
     " Adaptation, including any translation in any medium, takes reasonable \n"\
     " steps to clearly label, demarcate or otherwise identify that changes \n"\
     " were made to the original Work. For example, a translation could be \n"\
     " marked \"The original work was translated from English to Spanish,\" or \n"\
     " a modification could indicate \"The original work has been modified.\";\n"\
     " .\n"\
     "      c. to Distribute and Publicly Perform the Work including as \n"\
     " incorporated in Collections; and,\n"\
     " .\n"\
     "      d. to Distribute and Publicly Perform Adaptations.\n"\
     " .\n"\
     "      e. For the avoidance of doubt:\n"\
     " .\n"\
     "           i. Non-waivable Compulsory License Schemes. In those \n"\
     " jurisdictions in which the right to collect royalties through any \n"\
     " statutory or compulsory licensing scheme cannot be waived, the \n"\
     " Licensor reserves the exclusive right to collect such royalties for \n"\
     " any exercise by You of the rights granted under this License;\n"\
     " .\n"\
     "           ii. Waivable Compulsory License Schemes. In those \n"\
     " jurisdictions in which the right to collect royalties through any \n"\
     " statutory or compulsory licensing scheme can be waived, the Licensor \n"\
     " waives the exclusive right to collect such royalties for any exercise \n"\
     " by You of the rights granted under this License; and,\n"\
     " .\n"\
     "           iii. Voluntary License Schemes. The Licensor waives the \n"\
     " right to collect royalties, whether individually or, in the event \n"\
     " that the Licensor is a member of a collecting society that \n"\
     " administers voluntary licensing schemes, via that society, from any \n"\
     " exercise by You of the rights granted under this License.\n"\
     " .\n"\
     " The above rights may be exercised in all media and formats whether \n"\
     " now known or hereafter devised. The above rights include the right to \n"\
     " make such modifications as are technically necessary to exercise the \n"\
     " rights in other media and formats. Subject to Section 8(f), all \n"\
     " rights not expressly granted by Licensor are hereby reserved.\n"\
     " .\n"\
     " 4. Restrictions. The license granted in Section 3 above is expressly \n"\
     " made subject to and limited by the following restrictions:\n"\
     " .\n"\
     "      a. You may Distribute or Publicly Perform the Work only under \n"\
     " the terms of this License. You must include a copy of, or the Uniform \n"\
     " Resource Identifier (URI) for, this License with every copy of the \n"\
     " Work You Distribute or Publicly Perform. You may not offer or impose \n"\
     " any terms on the Work that restrict the terms of this License or the \n"\
     " ability of the recipient of the Work to exercise the rights granted \n"\
     " to that recipient under the terms of the License. You may not \n"\
     " sublicense the Work. You must keep intact all notices that refer to \n"\
     " this License and to the disclaimer of warranties with every copy of \n"\
     " the Work You Distribute or Publicly Perform. When You Distribute or \n"\
     " Publicly Perform the Work, You may not impose any effective \n"\
     " technological measures on the Work that restrict the ability of a \n"\
     " recipient of the Work from You to exercise the rights granted to that \n"\
     " recipient under the terms of the License. This Section 4(a) applies \n"\
     " to the Work as incorporated in a Collection, but this does not \n"\
     " require the Collection apart from the Work itself to be made subject \n"\
     " to the terms of this License. If You create a Collection, upon notice \n"\
     " from any Licensor You must, to the extent practicable, remove from \n"\
     " the Collection any credit as required by Section 4(c), as requested. \n"\
     " If You create an Adaptation, upon notice from any Licensor You must, \n"\
     " to the extent practicable, remove from the Adaptation any credit as \n"\
     " required by Section 4(c), as requested.\n"\
     " .\n"\
     "      b. You may Distribute or Publicly Perform an Adaptation only \n"\
     " under the terms of: (i) this License; (ii) a later version of this \n"\
     " License with the same License Elements as this License; (iii) a \n"\
     " Creative Commons jurisdiction license (either this or a later license \n"\
     " version) that contains the same License Elements as this License \n"\
     " (e.g., Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons \n"\
     " Compatible License. If you license the Adaptation under one of the \n"\
     " licenses mentioned in (iv), you must comply with the terms of that \n"\
     " license. If you license the Adaptation under the terms of any of the \n"\
     " licenses mentioned in (i), (ii) or (iii) (the \"Applicable License\"), \n"\
     " you must comply with the terms of the Applicable License generally \n"\
     " and the following provisions: (I) You must include a copy of, or the \n"\
     " URI for, the Applicable License with every copy of each Adaptation \n"\
     " You Distribute or Publicly Perform; (II) You may not offer or impose \n"\
     " any terms on the Adaptation that restrict the terms of the Applicable \n"\
     " License or the ability of the recipient of the Adaptation to exercise \n"\
     " the rights granted to that recipient under the terms of the \n"\
     " Applicable License; (III) You must keep intact all notices that refer \n"\
     " to the Applicable License and to the disclaimer of warranties with \n"\
     " every copy of the Work as included in the Adaptation You Distribute \n"\
     " or Publicly Perform; (IV) when You Distribute or Publicly Perform the \n"\
     " Adaptation, You may not impose any effective technological measures \n"\
     " on the Adaptation that restrict the ability of a recipient of the \n"\
     " Adaptation from You to exercise the rights granted to that recipient \n"\
     " under the terms of the Applicable License. This Section 4(b) applies \n"\
     " to the Adaptation as incorporated in a Collection, but this does not \n"\
     " require the Collection apart from the Adaptation itself to be made \n"\
     " subject to the terms of the Applicable License.\n"\
     " .\n"\
     "      c. If You Distribute, or Publicly Perform the Work or any \n"\
     " Adaptations or Collections, You must, unless a request has been made \n"\
     " pursuant to Section 4(a), keep intact all copyright notices for the \n"\
     " Work and provide, reasonable to the medium or means You are \n"\
     " utilizing: (i) the name of the Original Author (or pseudonym, if \n"\
     " applicable) if supplied, and/or if the Original Author and/or \n"\
     " Licensor designate another party or parties (e.g., a sponsor \n"\
     " institute, publishing entity, journal) for attribution (\"Attribution \n"\
     " Parties\") in Licensor's copyright notice, terms of service or by \n"\
     " other reasonable means, the name of such party or parties; (ii) the \n"\
     " title of the Work if supplied; (iii) to the extent reasonably \n"\
     " practicable, the URI, if any, that Licensor specifies to be \n"\
     " associated with the Work, unless such URI does not refer to the \n"\
     " copyright notice or licensing information for the Work; and (iv) , \n"\
     " consistent with Ssection 3(b), in the case of an Adaptation, a credit \n"\
     " identifying the use of the Work in the Adaptation (e.g., \"French \n"\
     " translation of the Work by Original Author,\" or \"Screenplay based on \n"\
     " original Work by Original Author\"). The credit required by this \n"\
     " Section 4(c) may be implemented in any reasonable manner; provided, \n"\
     " however, that in the case of a Adaptation or Collection, at a minimum \n"\
     " such credit will appear, if a credit for all contributing authors of \n"\
     " the Adaptation or Collection appears, then as part of these credits \n"\
     " and in a manner at least as prominent as the credits for the other \n"\
     " contributing authors. For the avoidance of doubt, You may only use \n"\
     " the credit required by this Section for the purpose of attribution in \n"\
     " the manner set out above and, by exercising Your rights under this \n"\
     " License, You may not implicitly or explicitly assert or imply any \n"\
     " connection with, sponsorship or endorsement by the Original Author, \n"\
     " Licensor and/or Attribution Parties, as appropriate, of You or Your \n"\
     " use of the Work, without the separate, express prior written \n"\
     " permission of the Original Author, Licensor and/or Attribution \n"\
     " Parties.\n"\
     " .\n"\
     "      d. Except as otherwise agreed in writing by the Licensor or as \n"\
     " may be otherwise permitted by applicable law, if You Reproduce, \n"\
     " Distribute or Publicly Perform the Work either by itself or as part \n"\
     " of any Adaptations or Collections, You must not distort, mutilate, \n"\
     " modify or take other derogatory action in relation to the Work which \n"\
     " would be prejudicial to the Original Author's honor or reputation. \n"\
     " Licensor agrees that in those jurisdictions (e.g. Japan), in which \n"\
     " any exercise of the right granted in Section 3(b) of this License \n"\
     " (the right to make Adaptations) would be deemed to be a distortion, \n"\
     " mutilation, modification or other derogatory action prejudicial to \n"\
     " the Original Author's honor and reputation, the Licensor will waive \n"\
     " or not assert, as appropriate, this Section, to the fullest extent \n"\
     " permitted by the applicable national law, to enable You to reasonably \n"\
     " exercise Your right under Section 3(b) of this License (right to make \n"\
     " Adaptations) but not otherwise.\n"\
     " .\n"\
     " 5. Representations, Warranties and Disclaimer\n"\
     " .\n"\
     " UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, \n"\
     " LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR \n"\
     " WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, \n"\
     " STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF \n"\
     " TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, \n"\
     " NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, \n"\
     " OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. \n"\
     " SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, \n"\
     " SO SUCH EXCLUSION MAY NOT APPLY TO YOU.\n"\
     " .\n"\
     " 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY \n"\
     " APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY \n"\
     " LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR \n"\
     " EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, \n"\
     " EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n"\
     " .\n"\
     " 7. Termination\n"\
     " .\n"\
     "      a. This License and the rights granted hereunder will terminate \n"\
     " automatically upon any breach by You of the terms of this License. \n"\
     " Individuals or entities who have received Adaptations or Collections \n"\
     " from You under this License, however, will not have their licenses \n"\
     " terminated provided such individuals or entities remain in full \n"\
     " compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will \n"\
     " survive any termination of this License.\n"\
     " .\n"\
     "      b. Subject to the above terms and conditions, the license \n"\
     " granted here is perpetual (for the duration of the applicable \n"\
     " copyright in the Work). Notwithstanding the above, Licensor reserves \n"\
     " the right to release the Work under different license terms or to \n"\
     " stop distributing the Work at any time; provided, however that any \n"\
     " such election will not serve to withdraw this License (or any other \n"\
     " license that has been, or is required to be, granted under the terms \n"\
     " of this License), and this License will continue in full force and \n"\
     " effect unless terminated as stated above.\n"\
     " .\n"\
     " 8. Miscellaneous\n"\
     " .\n"\
     "      a. Each time You Distribute or Publicly Perform the Work or a \n"\
     " Collection, the Licensor offers to the recipient a license to the \n"\
     " Work on the same terms and conditions as the license granted to You \n"\
     " under this License.\n"\
     " .\n"\
     "      b. Each time You Distribute or Publicly Perform an Adaptation, \n"\
     " Licensor offers to the recipient a license to the original Work on \n"\
     " the same terms and conditions as the license granted to You under \n"\
     " this License.\n"\
     " .\n"\
     "      c. If any provision of this License is invalid or unenforceable \n"\
     " under applicable law, it shall not affect the validity or \n"\
     " enforceability of the remainder of the terms of this License, and \n"\
     " without further action by the parties to this agreement, such \n"\
     " provision shall be reformed to the minimum extent necessary to make \n"\
     " such provision valid and enforceable.\n"\
     " .\n"\
     "      d. No term or provision of this License shall be deemed waived \n"\
     " and no breach consented to unless such waiver or consent shall be in \n"\
     " writing and signed by the party to be charged with such waiver or \n"\
     " consent.\n"\
     " .\n"\
     "      e. This License constitutes the entire agreement between the \n"\
     " parties with respect to the Work licensed here. There are no \n"\
     " understandings, agreements or representations with respect to the \n"\
     " Work not specified here. Licensor shall not be bound by any \n"\
     " additional provisions that may appear in any communication from You. \n"\
     " This License may not be modified without the mutual written agreement \n"\
     " of the Licensor and You.\n"\
     " .\n"\
     "      f. The rights granted under, and the subject matter referenced, \n"\
     " in this License were drafted utilizing the terminology of the Berne \n"\
     " Convention for the Protection of Literary and Artistic Works (as \n"\
     " amended on September 28, 1979), the Rome Convention of 1961, the WIPO \n"\
     " Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty \n"\
     " of 1996 and the Universal Copyright Convention (as revised on July \n"\
     " 24, 1971). These rights and subject matter take effect in the \n"\
     " relevant jurisdiction in which the License terms are sought to be \n"\
     " enforced according to the corresponding provisions of the \n"\
     " implementation of those treaty provisions in the applicable national \n"\
     " law. If the standard suite of rights granted under applicable \n"\
     " copyright law includes additional rights not granted under this \n"\
     " License, such additional rights are deemed to be included in the \n"\
     " License; this License is not intended to restrict the license of any \n"\
     " rights under applicable law. \n"\
     " .\n"\
     " Creative Commons Notice\n"\
     " .\n"\
     " Creative Commons is not a party to this License, and makes no \n"\
     " warranty whatsoever in connection with the Work. Creative Commons \n"\
     " will not be liable to You or any party on any legal theory for any \n"\
     " damages whatsoever, including without limitation any general, \n"\
     " special, incidental or consequential damages arising in connection to \n"\
     " this license. Notwithstanding the foregoing two (2) sentences, if \n"\
     " Creative Commons has expressly identified itself as the Licensor \n"\
     " hereunder, it shall have all rights and obligations of Licensor.\n"\
     " .\n"\
     " Except for the limited purpose of indicating to the public that the \n"\
     " Work is licensed under the CCPL, Creative Commons does not authorize \n"\
     " the use by either party of the trademark \"Creative Commons\" or any \n"\
     " related trademark or logo of Creative Commons without the prior \n"\
     " written consent of Creative Commons. Any permitted use will be in \n"\
     " compliance with Creative Commons' then-current trademark usage \n"\
     " guidelines, as may be published on its website or otherwise made \n"\
     " available upon request from time to time. For the avoidance of doubt, \n"\
     " this trademark restriction does not form part of the License.\n"\
     " .\n"\
     " Creative Commons may be contacted at http://creativecommons.org/. \n"\
     " "
  return text

def textCCBYSA40():
  text = \
     "License: CC-BY-SA-4.0\n"\
     " Creative Commons Attribution-ShareAlike 4.0 International\n"\
     " .\n"\
     " Using Creative Commons Public Licenses\n"\
     " .\n"\
     " Creative Commons public licenses provide a standard set of terms and \n"\
     " conditions that creators and other rights holders may use to share \n"\
     " original works of authorship and other material subject to copyright \n"\
     " and certain other rights specified in the public license below. The \n"\
     " following considerations are for informational purposes only, are not \n"\
     " exhaustive, and do not form part of our licenses.\n"\
     " .\n"\
     " Considerations for licensors: Our public licenses are intended for \n"\
     " use by those authorized to give the public permission to use material \n"\
     " in ways otherwise restricted by copyright and certain other rights. \n"\
     " Our licenses are irrevocable. Licensors should read and understand \n"\
     " the terms and conditions of the license they choose before applying \n"\
     " it. Licensors should also secure all rights necessary before applying \n"\
     " our licenses so that the public can reuse the material as expected. \n"\
     " Licensors should clearly mark any material not subject to the \n"\
     " license. This includes other CC-licensed material, or material used \n"\
     " under an exception or limitation to copyright. More considerations \n"\
     " for licensors.\n"\
     " .\n"\
     " Considerations for the public: By using one of our public licenses, a \n"\
     " licensor grants the public permission to use the licensed material \n"\
     " under specified terms and conditions. If the licensor's permission \n"\
     " is not necessary for any reason-for example, because of any \n"\
     " applicable exception or limitation to copyright-then that use is \n"\
     " not regulated by the license. Our licenses grant only permissions \n"\
     " under copyright and certain other rights that a licensor has \n"\
     " authority to grant. Use of the licensed material may still be \n"\
     " restricted for other reasons, including because others have copyright \n"\
     " or other rights in the material. A licensor may make special \n"\
     " requests, such as asking that all changes be marked or described. \n"\
     " .\n"\
     " Although not required by our licenses, you are encouraged to respect \n"\
     " those requests where reasonable. More considerations for the public. \n"\
     " <<endOptional>>\n"\
     " .\n"\
     " Creative Commons Attribution-ShareAlike 4.0 International Public \n"\
     " License\n"\
     " .\n"\
     " By exercising the Licensed Rights (defined below), You accept and \n"\
     " agree to be bound by the terms and conditions of this Creative \n"\
     " Commons Attribution-ShareAlike 4.0 International Public License \n"\
     " (\"Public License\"). To the extent this Public License may be \n"\
     " interpreted as a contract, You are granted the Licensed Rights in \n"\
     " consideration of Your acceptance of these terms and conditions, and \n"\
     " the Licensor grants You such rights in consideration of benefits the \n"\
     " Licensor receives from making the Licensed Material available under \n"\
     " these terms and conditions.\n"\
     " .\n"\
     " Section 1 - Definitions.\n"\
     " .\n"\
     "      a.	Adapted Material means material subject to Copyright and \n"\
     " Similar Rights that is derived from or based upon the Licensed \n"\
     " Material and in which the Licensed Material is translated, altered, \n"\
     " arranged, transformed, or otherwise modified in a manner requiring \n"\
     " permission under the Copyright and Similar Rights held by the \n"\
     " Licensor. For purposes of this Public License, where the Licensed \n"\
     " Material is a musical work, performance, or sound recording, Adapted \n"\
     " Material is always produced where the Licensed Material is synched in \n"\
     " timed relation with a moving image.\n"\
     " .\n"\
     "      b.	Adapter's License means the license You apply to Your \n"\
     " Copyright and Similar Rights in Your contributions to Adapted \n"\
     " Material in accordance with the terms and conditions of this Public \n"\
     " License.\n"\
     " .\n"\
     "      c.	BY-SA Compatible License means a license listed at \n"\
     " creativecommons.org/compatiblelicenses, approved by Creative Commons \n"\
     " as essentially the equivalent of this Public License.\n"\
     " .\n"\
     "      d.	Copyright and Similar Rights means copyright and/or similar \n"\
     " rights closely related to copyright including, without limitation, \n"\
     " performance, broadcast, sound recording, and Sui Generis Database \n"\
     " Rights, without regard to how the rights are labeled or categorized. \n"\
     " For purposes of this Public License, the rights specified in Section \n"\
     " 2(b)(1)-(2) are not Copyright and Similar Rights.\n"\
     " .\n"\
     "      e.	Effective Technological Measures means those measures that, \n"\
     " in the absence of proper authority, may not be circumvented under \n"\
     " laws fulfilling obligations under Article 11 of the WIPO Copyright \n"\
     " Treaty adopted on December 20, 1996, and/or similar international \n"\
     " agreements.\n"\
     " .\n"\
     "      f.	Exceptions and Limitations means fair use, fair dealing, \n"\
     " and/or any other exception or limitation to Copyright and Similar \n"\
     " Rights that applies to Your use of the Licensed Material.\n"\
     " .\n"\
     "      g.	License Elements means the license attributes listed in the \n"\
     " name of a Creative Commons Public License. The License Elements of \n"\
     " this Public License are Attribution and ShareAlike.\n"\
     " .\n"\
     "      h.	Licensed Material means the artistic or literary work, \n"\
     " database, or other material to which the Licensor applied this Public \n"\
     " License.\n"\
     " .\n"\
     "      i.	Licensed Rights means the rights granted to You subject to \n"\
     " the terms and conditions of this Public License, which are limited to \n"\
     " all Copyright and Similar Rights that apply to Your use of the \n"\
     " Licensed Material and that the Licensor has authority to license.\n"\
     " .\n"\
     "      j.	Licensor means the individual(s) or entity(ies) granting \n"\
     " rights under this Public License.\n"\
     " .\n"\
     "      k.	Share means to provide material to the public by any means or \n"\
     " process that requires permission under the Licensed Rights, such as \n"\
     " reproduction, public display, public performance, distribution, \n"\
     " dissemination, communication, or importation, and to make material \n"\
     " available to the public including in ways that members of the public \n"\
     " may access the material from a place and at a time individually \n"\
     " chosen by them.\n"\
     " .\n"\
     "      l.	Sui Generis Database Rights means rights other than copyright \n"\
     " resulting from Directive 96/9/EC of the European Parliament and of \n"\
     " the Council of 11 March 1996 on the legal protection of databases, as \n"\
     " amended and/or succeeded, as well as other essentially equivalent \n"\
     " rights anywhere in the world.\n"\
     " .\n"\
     "      m.	You means the individual or entity exercising the Licensed \n"\
     " Rights under this Public License. Your has a corresponding meaning.\n"\
     " .\n"\
     " Section 2 - Scope.\n"\
     " .\n"\
     "      a.	License grant.\n"\
     " .\n"\
     "           1. Subject to the terms and conditions of this Public \n"\
     " License, the Licensor hereby grants You a worldwide, royalty-free, \n"\
     " non-sublicensable, non-exclusive, irrevocable license to exercise the \n"\
     " Licensed Rights in the Licensed Material to:\n"\
     " .\n"\
     "                A. reproduce and Share the Licensed Material, in whole \n"\
     " or in part; and	\n"\
     " .\n"\
     "                B. produce, reproduce, and Share Adapted Material.\n"\
     " .\n"\
     "           2. Exceptions and Limitations. For the avoidance of doubt, \n"\
     " where Exceptions and Limitations apply to Your use, this Public \n"\
     " License does not apply, and You do not need to comply with its terms \n"\
     " and conditions.\n"\
     " .\n"\
     "           3. Term. The term of this Public License is specified in \n"\
     " Section 6(a).\n"\
     " .\n"\
     "           4. Media and formats; technical modifications allowed. The \n"\
     " Licensor authorizes You to exercise the Licensed Rights in all media \n"\
     " and formats whether now known or hereafter created, and to make \n"\
     " technical modifications necessary to do so. The Licensor waives \n"\
     " and/or agrees not to assert any right or authority to forbid You from \n"\
     " making technical modifications necessary to exercise the Licensed \n"\
     " Rights, including technical modifications necessary to circumvent \n"\
     " Effective Technological Measures. For purposes of this Public \n"\
     " License, simply making modifications authorized by this Section \n"\
     " 2(a)(4) never produces Adapted Material.\n"\
     " .\n"\
     "           5. Downstream recipients.\n"\
     " .\n"\
     "                A. Offer from the Licensor - Licensed Material. \n"\
     " Every recipient of the Licensed Material automatically receives an \n"\
     " offer from the Licensor to exercise the Licensed Rights under the \n"\
     " terms and conditions of this Public License.\n"\
     " .\n"\
     "                B. Additional offer from the Licensor - Adapted \n"\
     " Material. Every recipient of Adapted Material from You automatically \n"\
     " receives an offer from the Licensor to exercise the Licensed Rights \n"\
     " in the Adapted Material under the conditions of the Adapter's \n"\
     " License You apply.\n"\
     " .\n"\
     "                C. No downstream restrictions. You may not offer or \n"\
     " impose any additional or different terms or conditions on, or apply \n"\
     " any Effective Technological Measures to, the Licensed Material if \n"\
     " doing so restricts exercise of the Licensed Rights by any recipient \n"\
     " of the Licensed Material.\n"\
     " .\n"\
     "           6. No endorsement. Nothing in this Public License \n"\
     " constitutes or may be construed as permission to assert or imply that \n"\
     " You are, or that Your use of the Licensed Material is, connected \n"\
     " with, or sponsored, endorsed, or granted official status by, the \n"\
     " Licensor or others designated to receive attribution as provided in \n"\
     " Section 3(a)(1)(A)(i).\n"\
     " .\n"\
     "      b.	Other rights.\n"\
     " .\n"\
     "           1. Moral rights, such as the right of integrity, are not \n"\
     " licensed under this Public License, nor are publicity, privacy, \n"\
     " and/or other similar personality rights; however, to the extent \n"\
     " possible, the Licensor waives and/or agrees not to assert any such \n"\
     " rights held by the Licensor to the limited extent necessary to allow \n"\
     " You to exercise the Licensed Rights, but not otherwise.\n"\
     " .\n"\
     "           2. Patent and trademark rights are not licensed under this \n"\
     " Public License.\n"\
     " .\n"\
     "           3. To the extent possible, the Licensor waives any right to \n"\
     " collect royalties from You for the exercise of the Licensed Rights, \n"\
     " whether directly or through a collecting society under any voluntary \n"\
     " or waivable statutory or compulsory licensing scheme. In all other \n"\
     " cases the Licensor expressly reserves any right to collect such \n"\
     " royalties.\n"\
     " .\n"\
     " Section 3 - License Conditions.\n"\
     " .\n"\
     " Your exercise of the Licensed Rights is expressly made subject to the \n"\
     " following conditions.\n"\
     " .\n"\
     "      a.	Attribution.\n"\
     " .\n"\
     "           1. If You Share the Licensed Material (including in \n"\
     " modified form), You must:\n"\
     " .\n"\
     "                A. retain the following if it is supplied by the \n"\
     " Licensor with the Licensed Material:\n"\
     " .\n"\
     "                     i.	identification of the creator(s) of the \n"\
     " Licensed Material and any others designated to receive attribution, \n"\
     " in any reasonable manner requested by the Licensor (including by \n"\
     " pseudonym if designated);\n"\
     " .\n"\
     "                     ii.	a copyright notice;\n"\
     " .\n"\
     "                     iii. a notice that refers to this Public License;\n"\
     " .\n"\
     "                     iv.	a notice that refers to the disclaimer of \n"\
     " warranties;\n"\
     " .\n"\
     "                     v.	a URI or hyperlink to the Licensed Material \n"\
     " to the extent reasonably practicable;\n"\
     " .\n"\
     "                B. indicate if You modified the Licensed Material and \n"\
     " retain an indication of any previous modifications; and\n"\
     " .\n"\
     "                C. indicate the Licensed Material is licensed under \n"\
     " this Public License, and include the text of, or the URI or hyperlink \n"\
     " to, this Public License.\n"\
     " .\n"\
     "           2. You may satisfy the conditions in Section 3(a)(1) in any \n"\
     " reasonable manner based on the medium, means, and context in which \n"\
     " You Share the Licensed Material. For example, it may be reasonable to \n"\
     " satisfy the conditions by providing a URI or hyperlink to a resource \n"\
     " that includes the required information.\n"\
     " .\n"\
     "           3. If requested by the Licensor, You must remove any of the \n"\
     " information required by Section 3(a)(1)(A) to the extent reasonably \n"\
     " practicable.\n"\
     " .\n"\
     "      b.	ShareAlike.In addition to the conditions in Section 3(a), if \n"\
     " You Share Adapted Material You produce, the following conditions also \n"\
     " apply.\n"\
     " .\n"\
     "           1. The Adapter's License You apply must be a Creative \n"\
     " Commons license with the same License Elements, this version or \n"\
     " later, or a BY-SA Compatible License.\n"\
     " .\n"\
     "           2. You must include the text of, or the URI or hyperlink \n"\
     " to, the Adapter's License You apply. You may satisfy this condition \n"\
     " in any reasonable manner based on the medium, means, and context in \n"\
     " which You Share Adapted Material.\n"\
     " .\n"\
     "           3. You may not offer or impose any additional or different \n"\
     " terms or conditions on, or apply any Effective Technological Measures \n"\
     " to, Adapted Material that restrict exercise of the rights granted \n"\
     " under the Adapter's License You apply.\n"\
     " .\n"\
     " Section 4 - Sui Generis Database Rights.\n"\
     " .\n"\
     " Where the Licensed Rights include Sui Generis Database Rights that \n"\
     " apply to Your use of the Licensed Material:\n"\
     " .\n"\
     "      a.	for the avoidance of doubt, Section 2(a)(1) grants You the \n"\
     " right to extract, reuse, reproduce, and Share all or a substantial \n"\
     " portion of the contents of the database;\n"\
     " .\n"\
     "      b.	if You include all or a substantial portion of the database \n"\
     " contents in a database in which You have Sui Generis Database Rights, \n"\
     " then the database in which You have Sui Generis Database Rights (but \n"\
     " not its individual contents) is Adapted Material, including for \n"\
     " purposes of Section 3(b); and\n"\
     " .\n"\
     "      c.	You must comply with the conditions in Section 3(a) if You \n"\
     " Share all or a substantial portion of the contents of the database.\n"\
     " For the avoidance of doubt, this Section 4 supplements and does not \n"\
     " replace Your obligations under this Public License where the Licensed \n"\
     " Rights include other Copyright and Similar Rights.\n"\
     " .\n"\
     " Section 5 - Disclaimer of Warranties and Limitation of Liability.\n"\
     " .\n"\
     "      a.	Unless otherwise separately undertaken by the Licensor, to \n"\
     " the extent possible, the Licensor offers the Licensed Material as-is \n"\
     " and as-available, and makes no representations or warranties of any \n"\
     " kind concerning the Licensed Material, whether express, implied, \n"\
     " statutory, or other. This includes, without limitation, warranties of \n"\
     " title, merchantability, fitness for a particular purpose, \n"\
     " non-infringement, absence of latent or other defects, accuracy, or \n"\
     " the presence or absence of errors, whether or not known or \n"\
     " discoverable. Where disclaimers of warranties are not allowed in full \n"\
     " or in part, this disclaimer may not apply to You.\n"\
     " .\n"\
     "      b.	To the extent possible, in no event will the Licensor be \n"\
     " liable to You on any legal theory (including, without limitation, \n"\
     " negligence) or otherwise for any direct, special, indirect, \n"\
     " incidental, consequential, punitive, exemplary, or other losses, \n"\
     " costs, expenses, or damages arising out of this Public License or use \n"\
     " of the Licensed Material, even if the Licensor has been advised of \n"\
     " the possibility of such losses, costs, expenses, or damages. Where a \n"\
     " limitation of liability is not allowed in full or in part, this \n"\
     " limitation may not apply to You.\n"\
     " .\n"\
     "      c.	The disclaimer of warranties and limitation of liability \n"\
     " provided above shall be interpreted in a manner that, to the extent \n"\
     " possible, most closely approximates an absolute disclaimer and waiver \n"\
     " of all liability.\n"\
     " .\n"\
     " Section 6 - Term and Termination.\n"\
     " .\n"\
     "      a.	This Public License applies for the term of the Copyright and \n"\
     " Similar Rights licensed here. However, if You fail to comply with \n"\
     " this Public License, then Your rights under this Public License \n"\
     " terminate automatically.\n"\
     " .\n"\
     "      b.	Where Your right to use the Licensed Material has terminated \n"\
     " under Section 6(a), it reinstates:\n"\
     " .\n"\
     "           1. automatically as of the date the violation is cured, \n"\
     " provided it is cured within 30 days of Your discovery of the \n"\
     " violation; or\n"\
     " .\n"\
     "           2. upon express reinstatement by the Licensor.\n"\
     " .\n"\
     "      c.	For the avoidance of doubt, this Section 6(b) does not affect \n"\
     " any right the Licensor may have to seek remedies for Your violations \n"\
     " of this Public License.\n"\
     " .\n"\
     "      d.	For the avoidance of doubt, the Licensor may also offer the \n"\
     " Licensed Material under separate terms or conditions or stop \n"\
     " distributing the Licensed Material at any time; however, doing so \n"\
     " will not terminate this Public License.\n"\
     " .\n"\
     "      e.	Sections 1, 5, 6, 7, and 8 survive termination of this Public \n"\
     " License.\n"\
     " .\n"\
     " Section 7 - Other Terms and Conditions.\n"\
     " .\n"\
     "      a.	The Licensor shall not be bound by any additional or \n"\
     " different terms or conditions communicated by You unless expressly \n"\
     " agreed.\n"\
     " .\n"\
     "      b.	Any arrangements, understandings, or agreements regarding the \n"\
     " Licensed Material not stated herein are separate from and independent \n"\
     " of the terms and conditions of this Public License.\n"\
     " .\n"\
     " Section 8 - Interpretation.\n"\
     " .\n"\
     "      a.	For the avoidance of doubt, this Public License does not, and \n"\
     " shall not be interpreted to, reduce, limit, restrict, or impose \n"\
     " conditions on any use of the Licensed Material that could lawfully be \n"\
     " made without permission under this Public License.\n"\
     " .\n"\
     "      b.	To the extent possible, if any provision of this Public \n"\
     " License is deemed unenforceable, it shall be automatically reformed \n"\
     " to the minimum extent necessary to make it enforceable. If the \n"\
     " provision cannot be reformed, it shall be severed from this Public \n"\
     " License without affecting the enforceability of the remaining terms \n"\
     " and conditions.\n"\
     " .\n"\
     "      c.	No term or condition of this Public License will be waived \n"\
     " and no failure to comply consented to unless expressly agreed to by \n"\
     " the Licensor.\n"\
     " .\n"\
     "      d.	Nothing in this Public License constitutes or may be \n"\
     " interpreted as a limitation upon, or waiver of, any privileges and \n"\
     " immunities that apply to the Licensor or You, including from the \n"\
     " legal processes of any jurisdiction or authority.\n"\
     " .\n"\
     " Creative Commons is not a party to its public licenses. \n"\
     " Notwithstanding, Creative Commons may elect to apply one of its \n"\
     " public licenses to material it publishes and in those instances will \n"\
     " be considered the \"Licensor.\" Except for the limited purpose of \n"\
     " indicating that material is shared under a Creative Commons public \n"\
     " license or as otherwise permitted by the Creative Commons policies \n"\
     " published at creativecommons.org/policies, Creative Commons does not \n"\
     " authorize the use of the trademark \"Creative Commons\" or any \n"\
     " other trademark or logo of Creative Commons without its prior written \n"\
     " consent including, without limitation, in connection with any \n"\
     " unauthorized modifications to any of its public licenses or any other \n"\
     " arrangements, understandings, or agreements concerning use of \n"\
     " licensed material. For the avoidance of doubt, this paragraph does \n"\
     " not form part of the public licenses. Creative Commons may be \n"\
     " contacted at creativecommons.org.\n"\
     " "
  return text

def textCygwin():
  text = \
     "License: Cygwin\n"\
     " Cygwin is free software.  Red Hat, Inc. licenses Cygwin to you under the\n"\
     " terms of the GNU General Public License as published by the Free Software\n"\
     " Foundation; you can redistribute it and/or modify it under the terms of\n"\
     " the GNU General Public License either version 3 of the license, or (at your\n"\
     " option) any later version (GPLv3+), along with the additional permissions\n"\
     " given below.\n"\
     " .\n"\
     " There is NO WARRANTY for this software, express or implied, including\n"\
     " the implied warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n"\
     " PURPOSE.  See the GNU General Public License for more details.\n"\
     " .\n"\
     " You should have received a copy of the GNU General Public License along\n"\
     " with this program.  If not, see <http://gnu.org/licenses/>.\n"\
     " .\n"\
     " .\n"\
     " Additional Permissions:\n"\
     " .\n"\
     " .\n"\
     " 1. Linking Exception.\n"\
     " .\n"\
     " As a special exception to GPLv3+, Red Hat grants you permission to link\n"\
     " software whose sources are distributed under a license that satisfies\n"\
     " the Open Source Definition with libcygwin.a, without libcygwin.a\n"\
     " itself causing the resulting program to be covered by GPLv3+.\n"\
     " .\n"\
     " This means that you can port an Open Source application to Cygwin, and\n"\
     " distribute that executable as if it didn't include a copy of\n"\
     " libcygwin.a linked into it.  Note that this does not apply to the\n"\
     " Cygwin DLL itself.  If you distribute a (possibly modified) version of\n"\
     " the Cygwin DLL, you must adhere to the terms of GPLv3+, including the\n"\
     " requirement to provide sources for the Cygwin DLL, unless you have obtained\n"\
     " a special Cygwin license to distribute the Cygwin DLL in only its binary\n"\
     " form (see below).\n"\
     " .\n"\
     " See http://www.opensource.org/docs/osd/ for the precise Open Source\n"\
     " Definition referenced above.\n"\
     " .\n"\
     " .\n"\
     " 2.  Files Excluded from GPL Coverage.\n"\
     " .\n"\
     " Red Hat grants you permission to distribute Cygwin with the following\n"\
     " files, which are not considered part of Cygwin and are not governed by\n"\
     " GPLv3+, in source or binary form.\n"\
     " .\n"\
     " winsup\testsuite\winsup.api\msgtest.c\n"\
     " winsup\testsuite\winsup.api\semtest.c\n"\
     " winsup\testsuite\winsup.api\shmtest.c\n"\
     " .\n"\
     " Red Hat grants you permission to link or combine code in Cygwin with\n"\
     " code in or corresponding to the following files, which are not\n"\
     " considered part of Cygwin and are not governed by GPLv3+, and to\n"\
     " distribute such combinations under terms of your choice, provided that\n"\
     " such terms are otherwise consistent with the application of GPLv3+ to\n"\
     " Cygwin itself.  You must comply with GPLv3+ with respect to all\n"\
     " portions of such combinations other than those that correspond to or\n"\
     " are derived from such non-Cygwin code but which do not correspond to\n"\
     " or are not derived from Cygwin itself.\n"\
     " .\n"\
     " winsup\cygserver\sysv_shm.cc\n"\
     " .\n"\
     " .\n"\
     " 3.  Alternative License. \n"\
     " .\n"\
     " Red Hat sells a special Cygwin License for customers who are unable to\n"\
     " provide their application in open source code form.  For more\n"\
     " information, please see: http://www.redhat.com/software/cygwin/, or call\n"\
     " +1-866-2REDHAT ext. 45300 (toll-free in the US).\n"\
     " .\n"\
     " Outside the US call your regional Red Hat office, see\n"\
     " http://www.redhat.com/about/contact/ww/\n"\
     " "
  return text


def textEPL10():
  text = \
     "License: EPL-1.0\n"\
     " Eclipse Public License - v 1.0\n"\
     " .\n"\
     " THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE \n"\
     " PUBLIC LICENSE (\"AGREEMENT\"). ANY USE, REPRODUCTION OR DISTRIBUTION \n"\
     " OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.\n"\
     " .\n"\
     " 1. DEFINITIONS\n"\
     " .\n"\
     " \"Contribution\" means:\n"\
     "      a) in the case of the initial Contributor, the initial code and \n"\
     " documentation distributed under this Agreement, and\n"\
     "      b) in the case of each subsequent Contributor:\n"\
     "           i) changes to the Program, and\n"\
     "           ii) additions to the Program;\n"\
     " .\n"\
     " where such changes and/or additions to the Program originate from and \n"\
     " are distributed by that particular Contributor. A Contribution \n"\
     " 'originates' from a Contributor if it was added to the Program by \n"\
     " such Contributor itself or anyone acting on such Contributor's \n"\
     " behalf. Contributions do not include additions to the Program which: \n"\
     " (i) are separate modules of software distributed in conjunction with \n"\
     " the Program under their own license agreement, and (ii) are not \n"\
     " derivative works of the Program.\n"\
     " \"Contributor\" means any person or entity that distributes the Program.\n"\
     " .\n"\
     " \"Licensed Patents\" mean patent claims licensable by a Contributor \n"\
     " which are necessarily infringed by the use or sale of its \n"\
     " Contribution alone or when combined with the Program.\n"\
     " .\n"\
     " \"Program\" means the Contributions distributed in accordance with this \n"\
     " Agreement.\n"\
     " .\n"\
     " \"Recipient\" means anyone who receives the Program under this \n"\
     " Agreement, including all Contributors.\n"\
     " .\n"\
     " 2. GRANT OF RIGHTS\n"\
     " .\n"\
     "      a) Subject to the terms of this Agreement, each Contributor \n"\
     " hereby grants Recipient a non-exclusive, worldwide, royalty-free \n"\
     " copyright license to reproduce, prepare derivative works of, publicly \n"\
     " display, publicly perform, distribute and sublicense the Contribution \n"\
     " of such Contributor, if any, and such derivative works, in source \n"\
     " code and object code form.\n"\
     " .\n"\
     "      b) Subject to the terms of this Agreement, each Contributor \n"\
     " hereby grants Recipient a non-exclusive, worldwide, royalty-free \n"\
     " patent license under Licensed Patents to make, use, sell, offer to \n"\
     " sell, import and otherwise transfer the Contribution of such \n"\
     " Contributor, if any, in source code and object code form. This patent \n"\
     " license shall apply to the combination of the Contribution and the \n"\
     " Program if, at the time the Contribution is added by the Contributor, \n"\
     " such addition of the Contribution causes such combination to be \n"\
     " covered by the Licensed Patents. The patent license shall not apply \n"\
     " to any other combinations which include the Contribution. No hardware \n"\
     " per se is licensed hereunder.\n"\
     " .\n"\
     "      c) Recipient understands that although each Contributor grants \n"\
     " the licenses to its Contributions set forth herein, no assurances are \n"\
     " provided by any Contributor that the Program does not infringe the \n"\
     " patent or other intellectual property rights of any other entity. \n"\
     " Each Contributor disclaims any liability to Recipient for claims \n"\
     " brought by any other entity based on infringement of intellectual \n"\
     " property rights or otherwise. As a condition to exercising the rights \n"\
     " and licenses granted hereunder, each Recipient hereby assumes sole \n"\
     " responsibility to secure any other intellectual property rights \n"\
     " needed, if any. For example, if a third party patent license is \n"\
     " required to allow Recipient to distribute the Program, it is \n"\
     " Recipient's responsibility to acquire that license before \n"\
     " distributing the Program.\n"\
     " .\n"\
     "      d) Each Contributor represents that to its knowledge it has \n"\
     " sufficient copyright rights in its Contribution, if any, to grant the \n"\
     " copyright license set forth in this Agreement.\n"\
     " .\n"\
     " 3. REQUIREMENTS\n"\
     " A Contributor may choose to distribute the Program in object code \n"\
     " form under its own license agreement, provided that:\n"\
     " .\n"\
     "      a) it complies with the terms and conditions of this Agreement; \n"\
     " and\n"\
     " .\n"\
     "      b) its license agreement:\n"\
     "           i) effectively disclaims on behalf of all Contributors all \n"\
     " warranties and conditions, express and implied, including warranties \n"\
     " or conditions of title and non-infringement, and implied warranties \n"\
     " or conditions of merchantability and fitness for a particular purpose;\n"\
     "           ii) effectively excludes on behalf of all Contributors all \n"\
     " liability for damages, including direct, indirect, special, \n"\
     " incidental and consequential damages, such as lost profits;\n"\
     "           iii) states that any provisions which differ from this \n"\
     " Agreement are offered by that Contributor alone and not by any other \n"\
     " party; and\n"\
     "           iv) states that source code for the Program is available \n"\
     " from such Contributor, and informs licensees how to obtain it in a \n"\
     " reasonable manner on or through a medium customarily used for \n"\
     " software exchange.\n"\
     " .\n"\
     " When the Program is made available in source code form:\n"\
     " .\n"\
     "      a) it must be made available under this Agreement; and\n"\
     " .\n"\
     "      b) a copy of this Agreement must be included with each copy of \n"\
     " the Program.\n"\
     " Contributors may not remove or alter any copyright notices contained \n"\
     " within the Program.\n"\
     " .\n"\
     " Each Contributor must identify itself as the originator of its \n"\
     " Contribution, if any, in a manner that reasonably allows subsequent \n"\
     " Recipients to identify the originator of the Contribution.\n"\
     " .\n"\
     " 4. COMMERCIAL DISTRIBUTION\n"\
     " Commercial distributors of software may accept certain \n"\
     " responsibilities with respect to end users, business partners and the \n"\
     " like. While this license is intended to facilitate the commercial use \n"\
     " of the Program, the Contributor who includes the Program in a \n"\
     " commercial product offering should do so in a manner which does not \n"\
     " create potential liability for other Contributors. Therefore, if a \n"\
     " Contributor includes the Program in a commercial product offering, \n"\
     " such Contributor (\"Commercial Contributor\") hereby agrees to defend \n"\
     " and indemnify every other Contributor (\"Indemnified Contributor\") \n"\
     " against any losses, damages and costs (collectively \"Losses\") arising \n"\
     " from claims, lawsuits and other legal actions brought by a third \n"\
     " party against the Indemnified Contributor to the extent caused by the \n"\
     " acts or omissions of such Commercial Contributor in connection with \n"\
     " its distribution of the Program in a commercial product offering. The \n"\
     " obligations in this section do not apply to any claims or Losses \n"\
     " relating to any actual or alleged intellectual property infringement. \n"\
     " In order to qualify, an Indemnified Contributor must: a) promptly \n"\
     " notify the Commercial Contributor in writing of such claim, and b) \n"\
     " allow the Commercial Contributor to control, and cooperate with the \n"\
     " Commercial Contributor in, the defense and any related settlement \n"\
     " negotiations. The Indemnified Contributor may participate in any such \n"\
     " claim at its own expense.\n"\
     " .\n"\
     " For example, a Contributor might include the Program in a commercial \n"\
     " product offering, Product X. That Contributor is then a Commercial \n"\
     " Contributor. If that Commercial Contributor then makes performance \n"\
     " claims, or offers warranties related to Product X, those performance \n"\
     " claims and warranties are such Commercial Contributor's \n"\
     " responsibility alone. Under this section, the Commercial Contributor \n"\
     " would have to defend claims against the other Contributors related to \n"\
     " those performance claims and warranties, and if a court requires any \n"\
     " other Contributor to pay any damages as a result, the Commercial \n"\
     " Contributor must pay those damages.\n"\
     " .\n"\
     " 5. NO WARRANTY\n"\
     " EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS \n"\
     " PROVIDED ON AN \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY \n"\
     " KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY \n"\
     " WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY \n"\
     " OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely \n"\
     " responsible for determining the appropriateness of using and \n"\
     " distributing the Program and assumes all risks associated with its \n"\
     " exercise of rights under this Agreement , including but not limited \n"\
     " to the risks and costs of program errors, compliance with applicable \n"\
     " laws, damage to or loss of data, programs or equipment, and \n"\
     " unavailability or interruption of operations.\n"\
     " .\n"\
     " 6. DISCLAIMER OF LIABILITY\n"\
     " EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT \n"\
     " NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, \n"\
     " INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES \n"\
     " (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON \n"\
     " ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR \n"\
     " TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF \n"\
     " THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS \n"\
     " GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n"\
     " .\n"\
     " 7. GENERAL\n"\
     " .\n"\
     " If any provision of this Agreement is invalid or unenforceable under \n"\
     " applicable law, it shall not affect the validity or enforceability of \n"\
     " the remainder of the terms of this Agreement, and without further \n"\
     " action by the parties hereto, such provision shall be reformed to the \n"\
     " minimum extent necessary to make such provision valid and enforceable.\n"\
     " .\n"\
     " If Recipient institutes patent litigation against any entity \n"\
     " (including a cross-claim or counterclaim in a lawsuit) alleging that \n"\
     " the Program itself (excluding combinations of the Program with other \n"\
     " software or hardware) infringes such Recipient's patent(s), then such \n"\
     " Recipient's rights granted under Section 2(b) shall terminate as of \n"\
     " the date such litigation is filed.\n"\
     " .\n"\
     " All Recipient's rights under this Agreement shall terminate if it \n"\
     " fails to comply with any of the material terms or conditions of this \n"\
     " Agreement and does not cure such failure in a reasonable period of \n"\
     " time after becoming aware of such noncompliance. If all Recipient's \n"\
     " rights under this Agreement terminate, Recipient agrees to cease use \n"\
     " and distribution of the Program as soon as reasonably practicable. \n"\
     " However, Recipient's obligations under this Agreement and any \n"\
     " licenses granted by Recipient relating to the Program shall continue \n"\
     " and survive.\n"\
     " .\n"\
     " Everyone is permitted to copy and distribute copies of this \n"\
     " Agreement, but in order to avoid inconsistency the Agreement is \n"\
     " copyrighted and may only be modified in the following manner. The \n"\
     " Agreement Steward reserves the right to publish new versions \n"\
     " (including revisions) of this Agreement from time to time. No one \n"\
     " other than the Agreement Steward has the right to modify this \n"\
     " Agreement. The Eclipse Foundation is the initial Agreement Steward. \n"\
     " The Eclipse Foundation may assign the responsibility to serve as the \n"\
     " Agreement Steward to a suitable separate entity. Each new version of \n"\
     " the Agreement will be given a distinguishing version number. The \n"\
     " Program (including Contributions) may always be distributed subject \n"\
     " to the version of the Agreement under which it was received. In \n"\
     " addition, after a new version of the Agreement is published, \n"\
     " Contributor may elect to distribute the Program (including its \n"\
     " Contributions) under the new version. Except as expressly stated in \n"\
     " Sections 2(a) and 2(b) above, Recipient receives no rights or \n"\
     " licenses to the intellectual property of any Contributor under this \n"\
     " Agreement, whether expressly, by implication, estoppel or otherwise. \n"\
     " All rights in the Program not expressly granted under this Agreement \n"\
     " are reserved.\n"\
     " .\n"\
     " This Agreement is governed by the laws of the State of New York and \n"\
     " the intellectual property laws of the United States of America. No \n"\
     " party to this Agreement will bring a legal action under this \n"\
     " Agreement more than one year after the cause of action arose. Each \n"\
     " party waives its rights to a jury trial in any resulting litigation.\n"\
     " "
  return text

def textExpat():
  text = \
         "License: Expat\n" \
         " Permission is hereby granted, free of charge, to any person obtaining a copy\n" \
         " of this software and associated documentation files (the \"Software\"), to deal\n" \
         " in the Software without restriction, including without limitation the rights\n" \
         " to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n" \
         " copies of the Software, and to permit persons to whom the Software is\n" \
         " furnished to do so, subject to the following conditions:\n" \
         " .\n" \
         " The above copyright notice and this permission notice shall be included in\n" \
         " all copies or substantial portions of the Software.\n" \
         " .\n" \
         " THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n" \
         " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n" \
         " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n" \
         " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n" \
         " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n" \
         " OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n" \
         " THE SOFTWARE.\n"
  return text

def textGPL2():
  text = \
         "License: GPL-2\n" \
         " This program is free software; you can redistribute it and/or modify it\n" \
         " under the terms of the GNU General Public License, version 2, as\n" \
         " published by the Free Software Foundation.\n" \
         " .\n" \
         " This program is distributed in the hope that it will be useful, but\n" \
         " WITHOUT ANY WARRANTY; without even the implied warranty of\n" \
         " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n" \
         " General Public License for more details.\n" \
         " .\n" \
         " The complete text of the GNU General Public License version 2 can be found in\n" \
         " `/usr/share/common-licenses/GPL-2'.\n" 
  return text

def textGPL2plus():
  text = \
         "License: GPL-2+\n" \
         " This program is free software; you can redistribute it and/or modify\n" \
         " it under the terms of the GNU General Public License as published by\n" \
         " the Free Software Foundation; either version 2 of the License, or\n" \
         " (at your option) any later version.\n" \
         " .\n" \
         " This program is distributed in the hope that it will be useful,\n" \
         " but WITHOUT ANY WARRANTY; without even the implied warranty of\n" \
         " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n" \
         " GNU General Public License for more details.\n" \
         " .\n" \
         " The complete text of the GNU General Public License version 2\n" \
         " can be found in `/usr/share/common-licenses/GPL-2'.\n" 
  return text

def textGPL3():
  text = \
         "License: GPL-3\n" \
         " This program is free software; you can redistribute it and/or modify it\n" \
         " under the terms of the GNU General Public License, version 3, as\n" \
         " published by the Free Software Foundation.\n" \
         " .\n" \
         " This program is distributed in the hope that it will be useful, but\n" \
         " WITHOUT ANY WARRANTY; without even the implied warranty of\n" \
         " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n" \
         " General Public License for more details.\n" \
         " .\n" \
         " The complete text of the GNU General Public License version 3 can be found in\n" \
         " `/usr/share/common-licenses/GPL-3'.\n" 
  return text

def textGPL3plus():
  text = \
         "License: GPL-3+\n" \
         " This program is free software; you can redistribute it and/or modify\n" \
         " it under the terms of the GNU General Public License as published by\n" \
         " the Free Software Foundation; either version 3 of the License, or\n" \
         " (at your option) any later version.\n" \
         " .\n" \
         " This program is distributed in the hope that it will be useful,\n" \
         " but WITHOUT ANY WARRANTY; without even the implied warranty of\n" \
         " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n" \
         " GNU General Public License for more details.\n" \
         " .\n" \
         " The complete text of the GNU General Public License version 3\n" \
         " can be found in `/usr/share/common-licenses/GPL-3'.\n" 
  return text

def textISC():
  text = \
         "License: ISC\n" \
         " Permission to use, copy, modify, and distribute this software for any\n" \
         " purpose with or without fee is hereby granted, provided that the above\n" \
         " copyright notice and this permission notice appear in all copies.\n" \
         " .\n" \
         " THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n" \
         " WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n" \
         " MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n" \
         " ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n" \
         " WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n" \
         " ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n" \
         " OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n" 
  return text

def textLGPL2():
  text = \
         "License: LGPL-2\n" \
         " This library is free software; you can redistribute it and/or\n" \
         " modify it under the terms of the GNU Library General Public\n" \
         " License version 2 as published by the Free Software Foundation.\n" \
         " . \n" \
         " This library is distributed in the hope that it will be useful,\n" \
         " but WITHOUT ANY WARRANTY; without even the implied warranty of\n" \
         " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n" \
         " Library General Public License for more details.\n" \
         " .\n" \
         " The complete text of the GNU Library General Public License version 2\n" \
         " can be found in /usr/share/common-licenses/LGPL-2.\n" 
  return text

def textLGPL2plus():
  text = \
         "License: LGPL-2+\n" \
         " This library is free software; you can redistribute it and/or modify it\n" \
         " under the terms of the GNU Library General Public License as published by\n" \
         " the Free Software Foundation; either version 2 of the License, or (at your\n" \
         " option) any later version.\n" \
         " .\n" \
         " This library is distributed in the hope that it will be useful, but WITHOUT\n" \
         " ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n" \
         " FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public\n" \
         " License for more details.\n" \
         " .\n" \
         " The complete text of the GNU Library General Public License version 2\n" \
         " can be found in /usr/share/common-licenses/LGPL-2.\n" 
  return text
         
def textLGPL21():
  text = \
         "License: LGPL-2.1\n" \
         " This library is free software; you can redistribute it and/or\n" \
         " modify it under the terms of the GNU Library General Public\n" \
         " License version 2.1 as published by the Free Software Foundation.\n" \
         " . \n" \
         " This library is distributed in the hope that it will be useful,\n" \
         " but WITHOUT ANY WARRANTY; without even the implied warranty of\n" \
         " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n" \
         " Library General Public License for more details.\n" \
         " .\n" \
         " The complete text of the GNU Library General Public License version 2.1\n" \
         " can be found in /usr/share/common-licenses/LGPL-2.1.\n" 
  return text

def textLGPL2plus():
  text = \
         "License: LGPL-2+\n" \
         " This library is free software; you can redistribute it and/or modify it\n" \
         " under the terms of the GNU Library General Public License as published by\n" \
         " the Free Software Foundation; either version 2 of the License, or (at your\n" \
         " option) any later version.\n" \
         " .\n" \
         " This library is distributed in the hope that it will be useful, but WITHOUT\n" \
         " ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n" \
         " FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public\n" \
         " License for more details.\n" \
         " .\n" \
         " The complete text of the GNU Library General Public License version 2\n" \
         " can be found in /usr/share/common-licenses/LGPL-2.\n" 
  return text
         
def textLGPL3():
  text = \
         "License: LGPL-3\n" \
         " This library is free software; you can redistribute it and/or\n" \
         " modify it under the terms of the GNU Library General Public\n" \
         " License version 3 as published by the Free Software Foundation.\n" \
         " . \n" \
         " This library is distributed in the hope that it will be useful,\n" \
         " but WITHOUT ANY WARRANTY; without even the implied warranty of\n" \
         " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n" \
         " Library General Public License for more details.\n" \
         " .\n" \
         " The complete text of the GNU Library General Public License version 3\n" \
         " can be found in /usr/share/common-licenses/LGPL-3.\n" 
  return text

def textLGPL3plus():
  text = \
         "License: LGPL-3+\n" \
         " This library is free software; you can redistribute it and/or modify it\n" \
         " under the terms of the GNU Library General Public License as published by\n" \
         " the Free Software Foundation; either version 3 of the License, or (at your\n" \
         " option) any later version.\n" \
         " .\n" \
         " This library is distributed in the hope that it will be useful, but WITHOUT\n" \
         " ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n" \
         " FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public\n" \
         " License for more details.\n" \
         " .\n" \
         " The complete text of the GNU Library General Public License version 3\n" \
         " can be found in /usr/share/common-licenses/LGPL-3.\n" 
  return text

def textLPPL12():
  text = \
     "License: LPPL-1.2\n"\
     " The LaTeX Project Public License \n"\
     " =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n"\
     " .\n"\
     " LPPL Version 1.2 1999-09-03\n"\
     " .\n"\
     " Copyright 1999 LaTeX3 Project \n"\
     " .\n"\
     " Everyone is allowed to distribute verbatim copies of this license \n"\
     " document, but modification of it is not allowed. \n"\
     " .\n"\
     " PREAMBLE \n"\
     " ========\n"\
     " .\n"\
     " The LaTeX Project Public License (LPPL) is the license under which \n"\
     " the base LaTeX distribution is distributed.\n"\
     " .\n"\
     " You may use this license for any program that you have written and \n"\
     " wish to distribute. This license may be particularly suitable if your \n"\
     " program is TeX-related (such as a LaTeX package), but you may use it \n"\
     " even if your program is unrelated to TeX. The section `WHETHER AND \n"\
     " HOW TO DISTRIBUTE PROGRAMS UNDER THIS LICENSE', below, gives \n"\
     " instructions, examples, and recommendations for authors who are \n"\
     " considering distributing their programs under this license.\n"\
     " .\n"\
     " In this license document, `The Program' refers to any program \n"\
     " distributed under this license.\n"\
     " .\n"\
     " This license gives conditions under which The Program may be \n"\
     " distributed and conditions under which modified versions of The \n"\
     " Program may be distributed. Individual files of The Program may bear \n"\
     " supplementary and/or superseding conditions on modification of \n"\
     " themselves and on the distribution of modified versions of \n"\
     " themselves, but *no* file of The Program may bear supplementary or \n"\
     " superseding conditions on the distribution of an unmodified copy of \n"\
     " the file. A distributor wishing to distribute a complete, unmodified \n"\
     " copy of The Program therefore needs to check the conditions only in \n"\
     " this license and nowhere else.\n"\
     " .\n"\
     " Activities other than distribution and/or modification of The Program \n"\
     " are not covered by this license; they are outside its scope. In \n"\
     " particular, the act of running The Program is not restricted.\n"\
     " .\n"\
     " We, the LaTeX3 Project, believe that the conditions below give you \n"\
     " the freedom to make and distribute modified versions of The Program \n"\
     " that conform with whatever technical specifications you wish while \n"\
     " maintaining the availability, integrity, and reliability of The \n"\
     " Program. If you do not see how to achieve your goal while meeting \n"\
     " these conditions, then read the document `cfgguide.tex' in the base \n"\
     " LaTeX distribution for suggestions. \n"\
     " .\n"\
     " CONDITIONS ON DISTRIBUTION AND MODIFICATION \n"\
     " ===========================================\n"\
     " .\n"\
     " You may distribute a complete, unmodified copy of The Program. \n"\
     " Distribution of only part of The Program is not allowed.\n"\
     " .\n"\
     " You may not modify in any way a file of The Program that bears a \n"\
     " legal notice forbidding modification of that file.\n"\
     " .\n"\
     " You may distribute a modified file of The Program if, and only if, \n"\
     " the following eight conditions are met:\n"\
     " .\n"\
     "      1. You must meet any additional conditions borne by the file on \n"\
     " the distribution of a modified version of the file as described below \n"\
     " in the subsection `Additional Conditions on Individual Files of The \n"\
     " Program'. \n"\
     " .\n"\
     "      2. If the file is a LaTeX software file, then you must meet any \n"\
     " applicable additional conditions on the distribution of a modified \n"\
     " version of the file that are described below in the subsection \n"\
     " `Additional Conditions on LaTeX Software Files'. \n"\
     " .\n"\
     "      3. You must not distribute the modified file with the filename \n"\
     " of the original file. \n"\
     " .\n"\
     "      4. In the modified file, you must acknowledge the authorship and \n"\
     " name of the original file, and the name (if any) of the program which \n"\
     " contains it. \n"\
     " .\n"\
     "      5. You must change any identification string in the file to \n"\
     " indicate clearly that the modified file is not part of The Program. \n"\
     " .\n"\
     "      6. You must change any addresses in the modified file for the \n"\
     " reporting of errors in the file or in The Program generally to ensure \n"\
     " that reports for files no longer maintained by the original \n"\
     " maintainers will be directed to the maintainers of the modified \n"\
     " files. \n"\
     " .\n"\
     "      7. You must distribute the modified file under a license that \n"\
     " forbids distribution both of the modified file and of any files \n"\
     " derived from the modified file with the filename of the original \n"\
     " file. \n"\
     " .\n"\
     "      8. You must do either (A) or (B):\n"\
     " .\n"\
     "           (A) distribute a copy of The Program (that is, a complete, \n"\
     " unmodified copy of The Program) together with the modified file; if \n"\
     " your distribution of the modified file is made by offering access to \n"\
     " copy the modified file from a designated place, then offering \n"\
     " equivalent access to copy The Program from the same place meets this \n"\
     " condition, even though third parties are not compelled to copy The \n"\
     " Program along with the modified file;\n"\
     " .\n"\
     "           (B) provide to those who receive the modified file \n"\
     " information that is sufficient for them to obtain a copy of The \n"\
     " Program; for example, you may provide a Uniform Resource Locator \n"\
     " (URL) for a site that you expect will provide them with a copy of The \n"\
     " Program free of charge (either the version from which your \n"\
     " modification is derived, or perhaps a later version).\n"\
     " .\n"\
     " Note that in the above, `distribution' of a file means making the \n"\
     " file available to others by any means. This includes, for instance, \n"\
     " installing the file on any machine in such a way that the file is \n"\
     " accessible by users other than yourself. `Modification' of a file \n"\
     " means any procedure that produces a derivative file under any \n"\
     " applicable law -- that is, a file containing the original file or a \n"\
     " significant portion of it, either verbatim or with modifications \n"\
     " and/or translated into another language.\n"\
     " .\n"\
     " Changing the name of a file (other than as necessitated by the file \n"\
     " conventions of the target file systems) is considered to be a \n"\
     " modification of the file.\n"\
     " .\n"\
     " The distribution conditions in this license do not have to be applied \n"\
     " to files that have been modified in accordance with the above \n"\
     " conditions. Note, however, that Condition 7. does apply to any such \n"\
     " modified file.\n"\
     " .\n"\
     " The conditions above are not intended to prohibit, and hence do not \n"\
     " apply to, the updating, by any method, of a file so that it becomes \n"\
     " identical to the latest version of that file of The Program.\n"\
     " .\n"\
     " .\n"\
     " A Recommendation on Modification Without Distribution \n"\
     " -----------------------------------------------------\n"\
     " .\n"\
     " It is wise never to modify a file of The Program, even for your own \n"\
     " personal use, without also meeting the above eight conditions for \n"\
     " distributing the modified file. While you might intend that such \n"\
     " modified files will never be distributed, often this will happen by \n"\
     " accident -- you may forget that you have modified the file; or it may \n"\
     " not occur to you when allowing others to access the modified file \n"\
     " that you are thus distributing it and violating the conditions of \n"\
     " this license. It is usually in your best interest to keep your copy \n"\
     " of The Program identical with the public one. Many programs provide \n"\
     " ways to control the behavior of that program without altering its \n"\
     " licensed files. \n"\
     " .\n"\
     " Additional Conditions on Individual Files of The Program \n"\
     " --------------------------------------------------------\n"\
     " .\n"\
     " An individual file of The Program may bear additional conditions that \n"\
     " supplement and/or supersede the conditions in this license if, and \n"\
     " only if, such additional conditions exclusively concern modification \n"\
     " of the file or distribution of a modified version of the file. The \n"\
     " conditions on individual files of The Program therefore may differ \n"\
     " only with respect to the kind and extent of modification of those \n"\
     " files that is allowed, and with respect to the distribution of \n"\
     " modified versions of those files. \n"\
     " .\n"\
     " Additional Conditions on LaTeX Software Files \n"\
     " ---------------------------------------------\n"\
     " .\n"\
     " If a file of The Program is intended to be used with LaTeX (that is, \n"\
     " if it is a LaTeX software file), then the following additional \n"\
     " conditions, which supplement and/or supersede the conditions above, \n"\
     " apply to the file according to its filename extension:\n"\
     " .\n"\
     "      - You may not modify any file with filename extension `.ins' \n"\
     " since these are installation files containing the legal notices that \n"\
     " are placed in the files they generate. \n"\
     " .\n"\
     "      - You may distribute modified versions of files with filename \n"\
     " extension `.fd' (LaTeX font definition files) under the standard \n"\
     " conditions of the LPPL as described above. You may also distribute \n"\
     " such modified LaTeX font definition files with their original names \n"\
     " provided that: \n"\
     "           (1) the only changes to the original files either enable \n"\
     " use of available fonts or prevent attempts to access unavailable \n"\
     " fonts; \n"\
     "           (2) you also distribute the original, unmodified files (TeX \n"\
     " input paths can be used to control which set of LaTeX font definition \n"\
     " files is actually used by TeX).\n"\
     " .\n"\
     "      - You may distribute modified versions of files with filename \n"\
     " extension `.cfg' (configuration files) with their original names. The \n"\
     " Program may (and usually will) specify the range of commands that are \n"\
     " allowed in a particular configuration file. \n"\
     " .\n"\
     " Because of portability and exchangeability issues in LaTeX software, \n"\
     " The LaTeX3 Project deprecates the distribution of modified versions \n"\
     " of components of LaTeX or of generally available contributed code for \n"\
     " them, but such distribution can meet the conditions of this license. \n"\
     " .\n"\
     " NO WARRANTY \n"\
     " ===========\n"\
     " .\n"\
     " There is no warranty for The Program. Except when otherwise stated in \n"\
     " writing, The Copyright Holder provides The Program `as is', without \n"\
     " warranty of any kind, either expressed or implied, including, but not \n"\
     " limited to, the implied warranties of merchantability and fitness for \n"\
     " a particular purpose. The entire risk as to the quality and \n"\
     " performance of The Program is with you. Should The Program prove \n"\
     " defective, you assume the cost of all necessary servicing, repair, or \n"\
     " correction.\n"\
     " .\n"\
     " In no event unless agreed to in writing will The Copyright Holder, or \n"\
     " any author named in the files of The Program, or any other party who \n"\
     " may distribute and/or modify The Program as permitted above, be \n"\
     " liable to you for damages, including any general, special, incidental \n"\
     " or consequential damages arising out of any use of The Program or out \n"\
     " of inability to use The Program (including, but not limited to, loss \n"\
     " of data, data being rendered inaccurate, or losses sustained by \n"\
     " anyone as a result of any failure of The Program to operate with any \n"\
     " other programs), even if The Copyright Holder or said author or said \n"\
     " other party has been advised of the possibility of such damages. \n"\
     " .\n"\
     " WHETHER AND HOW TO DISTRIBUTE PROGRAMS UNDER THIS LICENSE \n"\
     " =========================================================\n"\
     " .\n"\
     " This section contains important instructions, examples, and \n"\
     " recommendations for authors who are considering distributing their \n"\
     " programs under this license. These authors are addressed as `you' in \n"\
     " this section. \n"\
     " .\n"\
     " Choosing This License or Another License \n"\
     " ----------------------------------------\n"\
     " .\n"\
     " If for any part of your program you want or need to use \n"\
     " *distribution* conditions that differ from those in this license, \n"\
     " then do not refer to this license anywhere in your program but \n"\
     " instead distribute your program under a different license. You may \n"\
     " use the text of this license as a model for your own license, but \n"\
     " your license should not refer to the LPPL or otherwise give the \n"\
     " impression that your program is distributed under the LPPL.\n"\
     " .\n"\
     " The document `modguide.tex' in the base LaTeX distribution explains \n"\
     " the motivation behind the conditions of this license. It explains, \n"\
     " for example, why distributing LaTeX under the GNU General Public \n"\
     " License (GPL) was considered inappropriate. Even if your program is \n"\
     " unrelated to LaTeX, the discussion in `modguide.tex' may still be \n"\
     " relevant, and authors intending to distribute their programs under \n"\
     " any license are encouraged to read it. \n"\
     " .\n"\
     " How to Use This License \n"\
     " -----------------------\n"\
     " .\n"\
     " To use this license, place in each of the files of your program both \n"\
     " an explicit copyright notice including your name and the year and \n"\
     " also a statement that the distribution and/or modification of the \n"\
     " file is constrained by the conditions in this license.\n"\
     " .\n"\
     " Here is an example of such a notice and statement:\n"\
     " .\n"\
     "      %% pig.dtx \n"\
     "      %% Copyright 2001 M. Y. Name \n"\
     "      % \n"\
     "      % This program may be distributed and/or modified under the \n"\
     "      % conditions of the LaTeX Project Public License, either version \n"\
     " 1.2 \n"\
     "      % of this license or (at your option) any later version. \n"\
     "      % The latest version of this license is in \n"\
     "      % http://www.latex-project.org/lppl.txt \n"\
     "      % and version 1.2 or later is part of all distributions of LaTeX \n"\
     "      % version 1999/12/01 or later. \n"\
     "      % \n"\
     "      % This program consists of the files pig.dtx and pig.ins\n"\
     " .\n"\
     " Given such a notice and statement in a file, the conditions given in \n"\
     " this license document would apply, with `The Program' referring to \n"\
     " the two files `pig.dtx' and `pig.ins', and `The Copyright Holder' \n"\
     " referring to the person `M. Y. Name'. \n"\
     " .\n"\
     " Important Recommendations \n"\
     " -------------------------\n"\
     " .\n"\
     " Defining What Constitutes The Program\n"\
     " .\n"\
     " The LPPL requires that distributions of The Program contain all the \n"\
     " files of The Program. It is therefore important that you provide a \n"\
     " way for the licensee to determine which files constitute The Program. \n"\
     " This could, for example, be achieved by explicitly listing all the \n"\
     " files of The Program near the copyright notice of each file or by \n"\
     " using a line like\n"\
     " .\n"\
     "      % This program consists of all files listed in manifest.txt.\n"\
     " .\n"\
     " in that place. In the absence of an unequivocal list it might be \n"\
     " impossible for the licensee to determine what is considered by you to \n"\
     " comprise The Program.\n"\
     " .\n"\
     " Noting Exceptional Files If The Program contains any files bearing \n"\
     " additional conditions on modification, or on distribution of modified \n"\
     " versions, of those files (other than those listed in `Additional \n"\
     " Conditions on LaTeX Software Files'), then it is recommended that The \n"\
     " Program contain a prominent file that defines the exceptional \n"\
     " conditions, and either lists the exceptional files or defines one or \n"\
     " more categories of exceptional files.\n"\
     " .\n"\
     " Files containing the text of a license (such as this file) are often \n"\
     " examples of files bearing more restrictive conditions on \n"\
     " modification. LaTeX configuration files (with filename extension \n"\
     " `.cfg') are examples of files bearing less restrictive conditions on \n"\
     " the distribution of a modified version of the file. The additional \n"\
     " conditions on LaTeX software given above are examples of declaring a \n"\
     " category of files bearing exceptional additional conditions.\n"\
     " .\n"\
     " "
  return text

def textLPPL13a():
  text = \
     "License: LPPL-1.3a\n"\
     " The LaTeX Project Public License \n"\
     " =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n"\
     " .\n"\
     " LPPL Version 1.3a 2004-10-01\n"\
     " .\n"\
     " Copyright 1999 2002-04 LaTeX3 \n"\
     " Project Everyone is allowed to distribute verbatim copies of this \n"\
     " license document, but modification of it is not allowed. \n"\
     " .\n"\
     " PREAMBLE \n"\
     " ========\n"\
     " .\n"\
     " The LaTeX Project Public License (LPPL) is the primary license under \n"\
     " which the the LaTeX kernel and the base LaTeX packages are \n"\
     " distributed.\n"\
     " .\n"\
     " You may use this license for any work of which you hold the copyright \n"\
     " and which you wish to distribute. This license may be particularly \n"\
     " suitable if your work is TeX-related (such as a LaTeX package), but \n"\
     " you may use it with small modifications even if your work is \n"\
     " unrelated to TeX.\n"\
     " .\n"\
     " The section `WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE', \n"\
     " below, gives instructions, examples, and recommendations for authors \n"\
     " who are considering distributing their works under this license.\n"\
     " .\n"\
     " This license gives conditions under which a work may be distributed \n"\
     " and modified, as well as conditions under which modified versions of \n"\
     " that work may be distributed.\n"\
     " .\n"\
     " We, the LaTeX3 Project, believe that the conditions below give you \n"\
     " the freedom to make and distribute modified versions of your work \n"\
     " that conform with whatever technical specifications you wish while \n"\
     " maintaining the availability, integrity, and reliability of that \n"\
     " work. If you do not see how to achieve your goal while meeting these \n"\
     " conditions, then read the document `cfgguide.tex' and `modguide.tex' \n"\
     " in the base LaTeX distribution for suggestions. \n"\
     " .\n"\
     " DEFINITIONS \n"\
     " ===========\n"\
     " .\n"\
     " In this license document the following terms are used:\n"\
     " .\n"\
     " `Work' Any work being distributed under this License. `Derived Work' \n"\
     " Any work that under any applicable law is derived from the Work.\n"\
     " .\n"\
     " `Modification' Any procedure that produces a Derived Work under any \n"\
     " applicable law -- for example, the production of a file containing an \n"\
     " original file associated with the Work or a significant portion of \n"\
     " such a file, either verbatim or with modifications and/or translated \n"\
     " into another language.\n"\
     " .\n"\
     " `Modify' To apply any procedure that produces a Derived Work under \n"\
     " any applicable law. `Distribution' Making copies of the Work \n"\
     " available from one person to another, in whole or in part. \n"\
     " Distribution includes (but is not limited to) making any electronic \n"\
     " components of the Work accessible by file transfer protocols such as \n"\
     " FTP or HTTP or by shared file systems such as Sun's Network File \n"\
     " System (NFS).\n"\
     " .\n"\
     " `Compiled Work' A version of the Work that has been processed into a \n"\
     " form where it is directly usable on a computer system. This \n"\
     " processing may include using installation facilities provided by the \n"\
     " Work, transformations of the Work, copying of components of the Work, \n"\
     " or other activities. Note that modification of any installation \n"\
     " facilities provided by the Work constitutes modification of the Work.\n"\
     " .\n"\
     " `Current Maintainer' A person or persons nominated as such within the \n"\
     " Work. If there is no such explicit nomination then it is the \n"\
     " `Copyright Holder' under any applicable law.\n"\
     " .\n"\
     " `Base Interpreter' A program or process that is normally needed for \n"\
     " running or interpreting a part or the whole of the Work. A Base \n"\
     " Interpreter may depend on external components but these are not \n"\
     " considered part of the Base Interpreter provided that each external \n"\
     " component clearly identifies itself whenever it is used \n"\
     " interactively. Unless explicitly specified when applying the license \n"\
     " to the Work, the only applicable Base Interpreter is a \n"\
     " \"LaTeX-Format\". \n"\
     " .\n"\
     " CONDITIONS ON DISTRIBUTION AND MODIFICATION \n"\
     " ===========================================\n"\
     " .\n"\
     " 1. Activities other than distribution and/or modification of the Work \n"\
     " are not covered by this license; they are outside its scope. In \n"\
     " particular, the act of running the Work is not restricted and no \n"\
     " requirements are made concerning any offers of support for the Work.\n"\
     " .\n"\
     " 2. You may distribute a complete, unmodified copy of the Work as you \n"\
     " received it. Distribution of only part of the Work is considered \n"\
     " modification of the Work, and no right to distribute such a Derived \n"\
     " Work may be assumed under the terms of this clause.\n"\
     " .\n"\
     " 3. You may distribute a Compiled Work that has been generated from a \n"\
     " complete, unmodified copy of the Work as distributed under Clause 2 \n"\
     " above, as long as that Compiled Work is distributed in such a way \n"\
     " that the recipients may install the Compiled Work on their system \n"\
     " exactly as it would have been installed if they generated a Compiled \n"\
     " Work directly from the Work.\n"\
     " .\n"\
     " 4. If you are the Current Maintainer of the Work, you may, without \n"\
     " restriction, modify the Work, thus creating a Derived Work. You may \n"\
     " also distribute the Derived Work without restriction, including \n"\
     " Compiled Works generated from the Derived Work. Derived Works \n"\
     " distributed in this manner by the Current Maintainer are considered \n"\
     " to be updated versions of the Work.\n"\
     " .\n"\
     " 5. If you are not the Current Maintainer of the Work, you may modify \n"\
     " your copy of the Work, thus creating a Derived Work based on the \n"\
     " Work, and compile this Derived Work, thus creating a Compiled Work \n"\
     " based on the Derived Work.\n"\
     " .\n"\
     " 6. If you are not the Current Maintainer of the Work, you may \n"\
     " distribute a Derived Work provided the following conditions are met \n"\
     " for every component of the Work unless that component clearly states \n"\
     " in the copyright notice that it is exempt from that condition. Only \n"\
     " the Current Maintainer is allowed to add such statements of exemption \n"\
     " to a component of the Work. \n"\
     " .\n"\
     "      a. If a component of this Derived Work can be a direct \n"\
     " replacement for a component of the Work when that component is used \n"\
     " with the Base Interpreter, then, wherever this component of the Work \n"\
     " identifies itself to the user when used interactively with that Base \n"\
     " Interpreter, the replacement component of this Derived Work clearly \n"\
     " and unambiguously identifies itself as a modified version of this \n"\
     " component to the user when used interactively with that Base \n"\
     " Interpreter. \n"\
     " .\n"\
     "      b. Every component of the Derived Work contains prominent \n"\
     " notices detailing the nature of the changes to that component, or a \n"\
     " prominent reference to another file that is distributed as part of \n"\
     " the Derived Work and that contains a complete and accurate log of the \n"\
     " changes. \n"\
     " .\n"\
     "      c. No information in the Derived Work implies that any persons, \n"\
     " including (but not limited to) the authors of the original version of \n"\
     " the Work, provide any support, including (but not limited to) the \n"\
     " reporting and handling of errors, to recipients of the Derived Work \n"\
     " unless those persons have stated explicitly that they do provide such \n"\
     " support for the Derived Work.\n"\
     " .\n"\
     "      d. You distribute at least one of the following with the Derived \n"\
     " Work:\n"\
     " .\n"\
     "           1. A complete, unmodified copy of the Work; if your \n"\
     " distribution of a modified component is made by offering access to \n"\
     " copy the modified component from a designated place, then offering \n"\
     " equivalent access to copy the Work from the same or some similar \n"\
     " place meets this condition, even though third parties are not \n"\
     " compelled to copy the Work along with the modified component;\n"\
     " .\n"\
     "           2. Information that is sufficient to obtain a complete, \n"\
     " unmodified copy of the Work.\n"\
     " .\n"\
     " 7. If you are not the Current Maintainer of the Work, you may \n"\
     " distribute a Compiled Work generated from a Derived Work, as long as \n"\
     " the Derived Work is distributed to all recipients of the Compiled \n"\
     " Work, and as long as the conditions of Clause 6, above, are met with \n"\
     " regard to the Derived Work.\n"\
     " .\n"\
     " 8. The conditions above are not intended to prohibit, and hence do \n"\
     " not apply to, the modification, by any method, of any component so \n"\
     " that it becomes identical to an updated version of that component of \n"\
     " the Work as it is distributed by the Current Maintainer under Clause \n"\
     " 4, above.\n"\
     " .\n"\
     " 9. Distribution of the Work or any Derived Work in an alternative \n"\
     " format, where the Work or that Derived Work (in whole or in part) is \n"\
     " then produced by applying some process to that format, does not relax \n"\
     " or nullify any sections of this license as they pertain to the \n"\
     " results of applying that process. \n"\
     " .\n"\
     " 10. \n"\
     "      a. A Derived Work may be distributed under a different license \n"\
     " provided that license itself honors the conditions listed in Clause 6 \n"\
     " above, in regard to the Work, though it does not have to honor the \n"\
     " rest of the conditions in this license. \n"\
     " .\n"\
     "      b. If a Derived Work is distributed under this license, that \n"\
     " Derived Work must provide sufficient documentation as part of itself \n"\
     " to allow each recipient of that Derived Work to honor the \n"\
     " restrictions in Clause 6 above, concerning changes from the Work.\n"\
     " .\n"\
     " 11. This license places no restrictions on works that are unrelated \n"\
     " to the Work, nor does this license place any restrictions on \n"\
     " aggregating such works with the Work by any means.\n"\
     " .\n"\
     " 12. Nothing in this license is intended to, or may be used to, \n"\
     " prevent complete compliance by all parties with all applicable laws. \n"\
     " .\n"\
     " NO WARRANTY \n"\
     " ===========\n"\
     " .\n"\
     " There is no warranty for the Work. Except when otherwise stated in \n"\
     " writing, the Copyright Holder provides the Work `as is', without \n"\
     " warranty of any kind, either expressed or implied, including, but not \n"\
     " limited to, the implied warranties of merchantability and fitness for \n"\
     " a particular purpose. The entire risk as to the quality and \n"\
     " performance of the Work is with you. Should the Work prove defective, \n"\
     " you assume the cost of all necessary servicing, repair, or correction.\n"\
     " .\n"\
     " In no event unless required by applicable law or agreed to in writing \n"\
     " will The Copyright Holder, or any author named in the components of \n"\
     " the Work, or any other party who may distribute and/or modify the \n"\
     " Work as permitted above, be liable to you for damages, including any \n"\
     " general, special, incidental or consequential damages arising out of \n"\
     " any use of the Work or out of inability to use the Work (including, \n"\
     " but not limited to, loss of data, data being rendered inaccurate, or \n"\
     " losses sustained by anyone as a result of any failure of the Work to \n"\
     " operate with any other programs), even if the Copyright Holder or \n"\
     " said author or said other party has been advised of the possibility \n"\
     " of such damages. \n"\
     " .\n"\
     " MAINTENANCE OF THE WORK \n"\
     " =======================\n"\
     " .\n"\
     " The Work has the status `author-maintained' if the Copyright Holder \n"\
     " explicitly and prominently states near the primary copyright notice \n"\
     " in the Work that the Work can only be maintained by the Copyright \n"\
     " Holder or simply that is `author-maintained'.\n"\
     " .\n"\
     " The Work has the status `maintained' if there is a Current Maintainer \n"\
     " who has indicated in the Work that they are willing to receive error \n"\
     " reports for the Work (for example, by supplying a valid e-mail \n"\
     " address). It is not required for the Current Maintainer to \n"\
     " acknowledge or act upon these error reports.\n"\
     " .\n"\
     " The Work changes from status `maintained' to `unmaintained' if there \n"\
     " is no Current Maintainer, or the person stated to be Current \n"\
     " Maintainer of the work cannot be reached through the indicated means \n"\
     " of communication for a period of six months, and there are no other \n"\
     " significant signs of active maintenance.\n"\
     " .\n"\
     " You can become the Current Maintainer of the Work by agreement with \n"\
     " any existing Current Maintainer to take over this role.\n"\
     " .\n"\
     " If the Work is unmaintained, you can become the Current Maintainer of \n"\
     " the Work through the following steps:\n"\
     " .\n"\
     "      1. Make a reasonable attempt to trace the Current Maintainer \n"\
     " (and the Copyright Holder, if the two differ) through the means of an \n"\
     " Internet or similar search.\n"\
     " .\n"\
     "      2. If this search is successful, then enquire whether the Work \n"\
     " is still maintained.\n"\
     " .\n"\
     "           a. If it is being maintained, then ask the Current \n"\
     " Maintainer to update their communication data within one month. \n"\
     " .\n"\
     "           b. If the search is unsuccessful or no action to resume \n"\
     " active maintenance is taken by the Current Maintainer, then announce \n"\
     " within the pertinent community your intention to take over \n"\
     " maintenance. (If the Work is a LaTeX work, this could be done, for \n"\
     " example, by posting to comp.text.tex.)\n"\
     " .\n"\
     "      3a. If the Current Maintainer is reachable and agrees to pass \n"\
     " maintenance of the Work to you, then this takes effect immediately \n"\
     " upon announcement. \n"\
     " .\n"\
     "      b. If the Current Maintainer is not reachable and the Copyright \n"\
     " Holder agrees that maintenance of the Work be passed to you, then \n"\
     " this takes effect immediately upon announcement. \n"\
     " .\n"\
     "      4. If you make an `intention announcement' as described in 2b. \n"\
     " above and after three months your intention is challenged neither by \n"\
     " the Current Maintainer nor by the Copyright Holder nor by other \n"\
     " people, then you may arrange for the Work to be changed so as to name \n"\
     " you as the (new) Current Maintainer. \n"\
     " .\n"\
     "      5. If the previously unreachable Current Maintainer becomes \n"\
     " reachable once more within three months of a change completed under \n"\
     " the terms of 3b) or 4), then that Current Maintainer must become or \n"\
     " remain the Current Maintainer upon request provided they then update \n"\
     " their communication data within one month.\n"\
     " .\n"\
     " A change in the Current Maintainer does not, of itself, alter the \n"\
     " fact that the Work is distributed under the LPPL license.\n"\
     " .\n"\
     " If you become the Current Maintainer of the Work, you should \n"\
     " immediately provide, within the Work, a prominent and unambiguous \n"\
     " statement of your status as Current Maintainer. You should also \n"\
     " announce your new status to the same pertinent community as in 2b) \n"\
     " above. \n"\
     " .\n"\
     " WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE \n"\
     " ======================================================\n"\
     " .\n"\
     " This section contains important instructions, examples, and \n"\
     " recommendations for authors who are considering distributing their \n"\
     " works under this license. These authors are addressed as `you' in \n"\
     " this section.\n"\
     " .\n"\
     " Choosing This License or Another License \n"\
     " ----------------------------------------\n"\
     " .\n"\
     " If for any part of your work you want or need to use *distribution* \n"\
     " conditions that differ significantly from those in this license, then \n"\
     " do not refer to this license anywhere in your work but, instead, \n"\
     " distribute your work under a different license. You may use the text \n"\
     " of this license as a model for your own license, but your license \n"\
     " should not refer to the LPPL or otherwise give the impression that \n"\
     " your work is distributed under the LPPL.\n"\
     " .\n"\
     " The document `modguide.tex' in the base LaTeX distribution explains \n"\
     " the motivation behind the conditions of this license. It explains, \n"\
     " for example, why distributing LaTeX under the GNU General Public \n"\
     " License (GPL) was considered inappropriate. Even if your work is \n"\
     " unrelated to LaTeX, the discussion in `modguide.tex' may still be \n"\
     " relevant, and authors intending to distribute their works under any \n"\
     " license are encouraged to read it.\n"\
     " .\n"\
     " A Recommendation on Modification Without Distribution \n"\
     " -----------------------------------------------------\n"\
     " .\n"\
     " It is wise never to modify a component of the Work, even for your own \n"\
     " personal use, without also meeting the above conditions for \n"\
     " distributing the modified component. While you might intend that such \n"\
     " modifications will never be distributed, often this will happen by \n"\
     " accident -- you may forget that you have modified that component; or \n"\
     " it may not occur to you when allowing others to access the modified \n"\
     " version that you are thus distributing it and violating the \n"\
     " conditions of this license in ways that could have legal implications \n"\
     " and, worse, cause problems for the community. It is therefore usually \n"\
     " in your best interest to keep your copy of the Work identical with \n"\
     " the public one. Many works provide ways to control the behavior of \n"\
     " that work without altering any of its licensed components.\n"\
     " .\n"\
     " How to Use This License \n"\
     " -----------------------\n"\
     " .\n"\
     " To use this license, place in each of the components of your work \n"\
     " both an explicit copyright notice including your name and the year \n"\
     " the work was authored and/or last substantially modified. Include \n"\
     " also a statement that the distribution and/or modification of that \n"\
     " component is constrained by the conditions in this license.\n"\
     " .\n"\
     " Here is an example of such a notice and statement:\n"\
     " .\n"\
     "      %% pig.dtx \n"\
     "      %% Copyright 2003 M. Y. Name \n"\
     "      % \n"\
     "      % This work may be distributed and/or modified under the \n"\
     "      % conditions of the LaTeX Project Public License, either version \n"\
     " 1.3 \n"\
     "      % of this license or (at your option) any later version. \n"\
     "      % The latest version of this license is in \n"\
     "      % http://www.latex-project.org/lppl.txt \n"\
     "      % and version 1.3 or later is part of all distributions of LaTeX \n"\
     "      % version 2003/12/01 or later. \n"\
     "      % \n"\
     "      % This work has the LPPL maintenance status \"maintained\". \n"\
     "      % \n"\
     "      % This Current Maintainer of this work is M. Y. Name. \n"\
     "      % \n"\
     "      % This work consists of the files pig.dtx and pig.ins % and the \n"\
     " derived file pig.sty.\n"\
     " .\n"\
     " Given such a notice and statement in a file, the conditions given in \n"\
     " this license document would apply, with the `Work' referring to the \n"\
     " three files `pig.dtx', `pig.ins', and `pig.sty' (the last being \n"\
     " generated from `pig.dtx' using `pig.ins'), the `Base Interpreter' \n"\
     " referring to any \"LaTeX-Format\", and both `Copyright Holder' and \n"\
     " `Current Maintainer' referring to the person `M. Y. Name'.\n"\
     " .\n"\
     " If you do not want the Maintenance section of LPPL to apply to your \n"\
     " Work, change \"maintained\" above into \"author-maintained\". However, we \n"\
     " recommend that you use \"maintained\" as the Maintenance section was \n"\
     " added in order to ensure that your Work remains useful to the \n"\
     " community even when you can no longer maintain and support it \n"\
     " yourself. \n"\
     " .\n"\
     " Important Recommendations \n"\
     " -------------------------\n"\
     " .\n"\
     " Defining What Constitutes the Work\n"\
     " .\n"\
     " The LPPL requires that distributions of the Work contain all the \n"\
     " files of the Work. It is therefore important that you provide a way \n"\
     " for the licensee to determine which files constitute the Work. This \n"\
     " could, for example, be achieved by explicitly listing all the files \n"\
     " of the Work near the copyright notice of each file or by using a line \n"\
     " such as:\n"\
     " .\n"\
     "       % This work consists of all files listed in manifest.txt. \n"\
     " .\n"\
     " in that place. In the absence of an unequivocal list it might be \n"\
     " impossible for the licensee to determine what is considered by you to \n"\
     " comprise the Work and, in such a case, the licensee would be entitled \n"\
     " to make reasonable conjectures as to which files comprise the Work.\n"\
     " .\n"\
     " "
  return text

def textLPPL13c():
  text = \
     "License: LPPL-1.3c\n"\
     " The LaTeX Project Public License \n"\
     " =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n"\
     " .\n"\
     " LPPL Version 1.3c 2008-05-04\n"\
     " .\n"\
     " Copyright 1999 2002-2008 LaTeX3 Project \n"\
     " .\n"\
     " Everyone is allowed to distribute verbatim copies of this license \n"\
     " document, but modification of it is not allowed. \n"\
     " .\n"\
     " PREAMBLE \n"\
     " ========\n"\
     " .\n"\
     " The LaTeX Project Public License (LPPL) is the primary license under \n"\
     " which the LaTeX kernel and the base LaTeX packages are distributed.\n"\
     " .\n"\
     " You may use this license for any work of which you hold the copyright \n"\
     " and which you wish to distribute. This license may be particularly \n"\
     " suitable if your work is TeX-related (such as a LaTeX package), but \n"\
     " it is written in such a way that you can use it even if your work is \n"\
     " unrelated to TeX.\n"\
     " .\n"\
     " The section `WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE', \n"\
     " below, gives instructions, examples, and recommendations for authors \n"\
     " who are considering distributing their works under this license.\n"\
     " .\n"\
     " This license gives conditions under which a work may be distributed \n"\
     " and modified, as well as conditions under which modified versions of \n"\
     " that work may be distributed.\n"\
     " .\n"\
     " We, the LaTeX3 Project, believe that the conditions below give you \n"\
     " the freedom to make and distribute modified versions of your work \n"\
     " that conform with whatever technical specifications you wish while \n"\
     " maintaining the availability, integrity, and reliability of that \n"\
     " work. If you do not see how to achieve your goal while meeting these \n"\
     " conditions, then read the document `cfgguide.tex' and `modguide.tex' \n"\
     " in the base LaTeX distribution for suggestions. \n"\
     " .\n"\
     " DEFINITIONS \n"\
     " ===========\n"\
     " .\n"\
     " In this license document the following terms are used:\n"\
     " .\n"\
     " `Work' Any work being distributed under this License. `Derived Work' \n"\
     " Any work that under any applicable law is derived from the Work.\n"\
     " .\n"\
     " `Modification' Any procedure that produces a Derived Work under any \n"\
     " applicable law -- for example, the production of a file containing an \n"\
     " original file associated with the Work or a significant portion of \n"\
     " such a file, either verbatim or with modifications and/or translated \n"\
     " into another language.\n"\
     " .\n"\
     " `Modify' To apply any procedure that produces a Derived Work under \n"\
     " any applicable law. `Distribution' Making copies of the Work \n"\
     " available from one person to another, in whole or in part. \n"\
     " Distribution includes (but is not limited to) making any electronic \n"\
     " components of the Work accessible by file transfer protocols such as \n"\
     " FTP or HTTP or by shared file systems such as Sun's Network File \n"\
     " System (NFS).\n"\
     " .\n"\
     " `Compiled Work' A version of the Work that has been processed into a \n"\
     " form where it is directly usable on a computer system. This \n"\
     " processing may include using installation facilities provided by the \n"\
     " Work, transformations of the Work, copying of components of the Work, \n"\
     " or other activities. Note that modification of any installation \n"\
     " facilities provided by the Work constitutes modification of the Work.\n"\
     " .\n"\
     " `Current Maintainer' A person or persons nominated as such within the \n"\
     " Work. If there is no such explicit nomination then it is the \n"\
     " `Copyright Holder' under any applicable law.\n"\
     " .\n"\
     " `Base Interpreter' A program or process that is normally needed for \n"\
     " running or interpreting a part or the whole of the Work. \n"\
     " .\n"\
     " A Base Interpreter may depend on external components but these are \n"\
     " not considered part of the Base Interpreter provided that each \n"\
     " external component clearly identifies itself whenever it is used \n"\
     " interactively. Unless explicitly specified when applying the license \n"\
     " to the Work, the only applicable Base Interpreter is a `LaTeX-Format' \n"\
     " or in the case of files belonging to the `LaTeX-format' a program \n"\
     " implementing the `TeX language'. \n"\
     " .\n"\
     " CONDITIONS ON DISTRIBUTION AND MODIFICATION \n"\
     " ===========================================\n"\
     " .\n"\
     " 1. Activities other than distribution and/or modification of the Work \n"\
     " are not covered by this license; they are outside its scope. In \n"\
     " particular, the act of running the Work is not restricted and no \n"\
     " requirements are made concerning any offers of support for the Work.\n"\
     " .\n"\
     " 2. You may distribute a complete, unmodified copy of the Work as you \n"\
     " received it. Distribution of only part of the Work is considered \n"\
     " modification of the Work, and no right to distribute such a Derived \n"\
     " Work may be assumed under the terms of this clause.\n"\
     " .\n"\
     " 3. You may distribute a Compiled Work that has been generated from a \n"\
     " complete, unmodified copy of the Work as distributed under Clause 2 \n"\
     " above, as long as that Compiled Work is distributed in such a way \n"\
     " that the recipients may install the Compiled Work on their system \n"\
     " exactly as it would have been installed if they generated a Compiled \n"\
     " Work directly from the Work.\n"\
     " .\n"\
     " 4. If you are the Current Maintainer of the Work, you may, without \n"\
     " restriction, modify the Work, thus creating a Derived Work. You may \n"\
     " also distribute the Derived Work without restriction, including \n"\
     " Compiled Works generated from the Derived Work. Derived Works \n"\
     " distributed in this manner by the Current Maintainer are considered \n"\
     " to be updated versions of the Work.\n"\
     " .\n"\
     " 5. If you are not the Current Maintainer of the Work, you may modify \n"\
     " your copy of the Work, thus creating a Derived Work based on the \n"\
     " Work, and compile this Derived Work, thus creating a Compiled Work \n"\
     " based on the Derived Work.\n"\
     " .\n"\
     " 6. If you are not the Current Maintainer of the Work, you may \n"\
     " distribute a Derived Work provided the following conditions are met \n"\
     " for every component of the Work unless that component clearly states \n"\
     " in the copyright notice that it is exempt from that condition. Only \n"\
     " the Current Maintainer is allowed to add such statements of exemption \n"\
     " to a component of the Work. \n"\
     " .\n"\
     "      a. If a component of this Derived Work can be a direct \n"\
     " replacement for a component of the Work when that component is used \n"\
     " with the Base Interpreter, then, wherever this component of the Work \n"\
     " identifies itself to the user when used interactively with that Base \n"\
     " Interpreter, the replacement component of this Derived Work clearly \n"\
     " and unambiguously identifies itself as a modified version of this \n"\
     " component to the user when used interactively with that Base \n"\
     " Interpreter. \n"\
     " .\n"\
     "      b. Every component of the Derived Work contains prominent \n"\
     " notices detailing the nature of the changes to that component, or a \n"\
     " prominent reference to another file that is distributed as part of \n"\
     " the Derived Work and that contains a complete and accurate log of the \n"\
     " changes. \n"\
     " .\n"\
     "      c. No information in the Derived Work implies that any persons, \n"\
     " including (but not limited to) the authors of the original version of \n"\
     " the Work, provide any support, including (but not limited to) the \n"\
     " reporting and handling of errors, to recipients of the Derived Work \n"\
     " unless those persons have stated explicitly that they do provide such \n"\
     " support for the Derived Work.\n"\
     " .\n"\
     "      d. You distribute at least one of the following with the Derived \n"\
     " Work:\n"\
     " .\n"\
     "           1. A complete, unmodified copy of the Work; if your \n"\
     " distribution of a modified component is made by offering access to \n"\
     " copy the modified component from a designated place, then offering \n"\
     " equivalent access to copy the Work from the same or some similar \n"\
     " place meets this condition, even though third parties are not \n"\
     " compelled to copy the Work along with the modified component;\n"\
     " .\n"\
     "           2. Information that is sufficient to obtain a complete, \n"\
     " unmodified copy of the Work.\n"\
     " .\n"\
     " 7. If you are not the Current Maintainer of the Work, you may \n"\
     " distribute a Compiled Work generated from a Derived Work, as long as \n"\
     " the Derived Work is distributed to all recipients of the Compiled \n"\
     " Work, and as long as the conditions of Clause 6, above, are met with \n"\
     " regard to the Derived Work.\n"\
     " .\n"\
     " 8. The conditions above are not intended to prohibit, and hence do \n"\
     " not apply to, the modification, by any method, of any component so \n"\
     " that it becomes identical to an updated version of that component of \n"\
     " the Work as it is distributed by the Current Maintainer under Clause \n"\
     " 4, above.\n"\
     " .\n"\
     " 9. Distribution of the Work or any Derived Work in an alternative \n"\
     " format, where the Work or that Derived Work (in whole or in part) is \n"\
     " then produced by applying some process to that format, does not relax \n"\
     " or nullify any sections of this license as they pertain to the \n"\
     " results of applying that process. \n"\
     " .\n"\
     " 10. \n"\
     "      a. A Derived Work may be distributed under a different license \n"\
     " provided that license itself honors the conditions listed in Clause 6 \n"\
     " above, in regard to the Work, though it does not have to honor the \n"\
     " rest of the conditions in this license. \n"\
     " .\n"\
     "      b. If a Derived Work is distributed under a different license, \n"\
     " that Derived Work must provide sufficient documentation as part of \n"\
     " itself to allow each recipient of that Derived Work to honor the \n"\
     " restrictions in Clause 6 above, concerning changes from the Work.\n"\
     " .\n"\
     " 11. This license places no restrictions on works that are unrelated \n"\
     " to the Work, nor does this license place any restrictions on \n"\
     " aggregating such works with the Work by any means.\n"\
     " .\n"\
     " 12. Nothing in this license is intended to, or may be used to, \n"\
     " prevent complete compliance by all parties with all applicable laws. \n"\
     " .\n"\
     " NO WARRANTY \n"\
     " ===========\n"\
     " .\n"\
     " There is no warranty for the Work. Except when otherwise stated in \n"\
     " writing, the Copyright Holder provides the Work `as is', without \n"\
     " warranty of any kind, either expressed or implied, including, but not \n"\
     " limited to, the implied warranties of merchantability and fitness for \n"\
     " a particular purpose. The entire risk as to the quality and \n"\
     " performance of the Work is with you. Should the Work prove defective, \n"\
     " you assume the cost of all necessary servicing, repair, or correction.\n"\
     " .\n"\
     " In no event unless required by applicable law or agreed to in writing \n"\
     " will The Copyright Holder, or any author named in the components of \n"\
     " the Work, or any other party who may distribute and/or modify the \n"\
     " Work as permitted above, be liable to you for damages, including any \n"\
     " general, special, incidental or consequential damages arising out of \n"\
     " any use of the Work or out of inability to use the Work (including, \n"\
     " but not limited to, loss of data, data being rendered inaccurate, or \n"\
     " losses sustained by anyone as a result of any failure of the Work to \n"\
     " operate with any other programs), even if the Copyright Holder or \n"\
     " said author or said other party has been advised of the possibility \n"\
     " of such damages. \n"\
     " .\n"\
     " MAINTENANCE OF THE WORK \n"\
     " =======================\n"\
     " .\n"\
     " The Work has the status `author-maintained' if the Copyright Holder \n"\
     " explicitly and prominently states near the primary copyright notice \n"\
     " in the Work that the Work can only be maintained by the Copyright \n"\
     " Holder or simply that it is `author-maintained'.\n"\
     " .\n"\
     " The Work has the status `maintained' if there is a Current Maintainer \n"\
     " who has indicated in the Work that they are willing to receive error \n"\
     " reports for the Work (for example, by supplying a valid e-mail \n"\
     " address). It is not required for the Current Maintainer to \n"\
     " acknowledge or act upon these error reports.\n"\
     " .\n"\
     " The Work changes from status `maintained' to `unmaintained' if there \n"\
     " is no Current Maintainer, or the person stated to be Current \n"\
     " Maintainer of the work cannot be reached through the indicated means \n"\
     " of communication for a period of six months, and there are no other \n"\
     " significant signs of active maintenance.\n"\
     " .\n"\
     " You can become the Current Maintainer of the Work by agreement with \n"\
     " any existing Current Maintainer to take over this role.\n"\
     " .\n"\
     " If the Work is unmaintained, you can become the Current Maintainer of \n"\
     " the Work through the following steps:\n"\
     " .\n"\
     " 1. Make a reasonable attempt to trace the Current Maintainer (and the \n"\
     " Copyright Holder, if the two differ) through the means of an Internet \n"\
     " or similar search.\n"\
     " .\n"\
     " 2. If this search is successful, then enquire whether the Work is \n"\
     " still maintained.\n"\
     " .\n"\
     "      a. If it is being maintained, then ask the Current Maintainer to \n"\
     " update their communication data within one month. \n"\
     " .\n"\
     "      b. If the search is unsuccessful or no action to resume active \n"\
     " maintenance is taken by the Current Maintainer, then announce within \n"\
     " the pertinent community your intention to take over maintenance. (If \n"\
     " the Work is a LaTeX work, this could be done, for example, by posting \n"\
     " to comp.text.tex.)\n"\
     " .\n"\
     " 3a. If the Current Maintainer is reachable and agrees to pass \n"\
     " maintenance of the Work to you, then this takes effect immediately \n"\
     " upon announcement. \n"\
     " .\n"\
     " b. If the Current Maintainer is not reachable and the Copyright \n"\
     " Holder agrees that maintenance of the Work be passed to you, then \n"\
     " this takes effect immediately upon announcement. \n"\
     " .\n"\
     " 4. If you make an `intention announcement' as described in 2b. above \n"\
     " and after three months your intention is challenged neither by the \n"\
     " Current Maintainer nor by the Copyright Holder nor by other people, \n"\
     " then you may arrange for the Work to be changed so as to name you as \n"\
     " the (new) Current Maintainer. \n"\
     " .\n"\
     " 5. If the previously unreachable Current Maintainer becomes reachable \n"\
     " once more within three months of a change completed under the terms \n"\
     " of 3b) or 4), then that Current Maintainer must become or remain the \n"\
     " Current Maintainer upon request provided they then update their \n"\
     " communication data within one month.\n"\
     " .\n"\
     " A change in the Current Maintainer does not, of itself, alter the \n"\
     " fact that the Work is distributed under the LPPL license.\n"\
     " .\n"\
     " If you become the Current Maintainer of the Work, you should \n"\
     " immediately provide, within the Work, a prominent and unambiguous \n"\
     " statement of your status as Current Maintainer. You should also \n"\
     " announce your new status to the same pertinent community as in 2b) \n"\
     " above. \n"\
     " .\n"\
     " WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE \n"\
     " ======================================================\n"\
     " .\n"\
     " This section contains important instructions, examples, and \n"\
     " recommendations for authors who are considering distributing their \n"\
     " works under this license. These authors are addressed as `you' in \n"\
     " this section.\n"\
     " .\n"\
     " Choosing This License or Another License \n"\
     " ----------------------------------------\n"\
     " .\n"\
     " If for any part of your work you want or need to use *distribution* \n"\
     " conditions that differ significantly from those in this license, then \n"\
     " do not refer to this license anywhere in your work but, instead, \n"\
     " distribute your work under a different license. You may use the text \n"\
     " of this license as a model for your own license, but your license \n"\
     " should not refer to the LPPL or otherwise give the impression that \n"\
     " your work is distributed under the LPPL.\n"\
     " .\n"\
     " The document `modguide.tex' in the base LaTeX distribution explains \n"\
     " the motivation behind the conditions of this license. It explains, \n"\
     " for example, why distributing LaTeX under the GNU General Public \n"\
     " License (GPL) was considered inappropriate. Even if your work is \n"\
     " unrelated to LaTeX, the discussion in `modguide.tex' may still be \n"\
     " relevant, and authors intending to distribute their works under any \n"\
     " license are encouraged to read it.\n"\
     " .\n"\
     " A Recommendation on Modification Without Distribution \n"\
     " -----------------------------------------------------\n"\
     " .\n"\
     " It is wise never to modify a component of the Work, even for your own \n"\
     " personal use, without also meeting the above conditions for \n"\
     " distributing the modified component. While you might intend that such \n"\
     " modifications will never be distributed, often this will happen by \n"\
     " accident -- you may forget that you have modified that component; or \n"\
     " it may not occur to you when allowing others to access the modified \n"\
     " version that you are thus distributing it and violating the \n"\
     " conditions of this license in ways that could have legal implications \n"\
     " and, worse, cause problems for the community. It is therefore usually \n"\
     " in your best interest to keep your copy of the Work identical with \n"\
     " the public one. Many works provide ways to control the behavior of \n"\
     " that work without altering any of its licensed components.\n"\
     " .\n"\
     " How to Use This License \n"\
     " -----------------------\n"\
     " .\n"\
     " To use this license, place in each of the components of your work \n"\
     " both an explicit copyright notice including your name and the year \n"\
     " the work was authored and/or last substantially modified. Include \n"\
     " also a statement that the distribution and/or modification of that \n"\
     " component is constrained by the conditions in this license.\n"\
     " .\n"\
     " Here is an example of such a notice and statement:\n"\
     " .\n"\
     "      %% pig.dtx \n"\
     "      %% Copyright 2005 M. Y. Name \n"\
     "      % \n"\
     "      % This work may be distributed and/or modified under the \n"\
     "      % conditions of the LaTeX Project Public License, either version \n"\
     " 1.3 \n"\
     "      % of this license or (at your option) any later version. \n"\
     "      % The latest version of this license is in \n"\
     "      % http://www.latex-project.org/lppl.txt \n"\
     "      % and version 1.3 or later is part of all distributions of LaTeX \n"\
     "      % version 2005/12/01 or later. \n"\
     "      % \n"\
     "      % This work has the LPPL maintenance status `maintained'. \n"\
     "      % \n"\
     "      % The Current Maintainer of this work is M. Y. Name. \n"\
     "      % \n"\
     "      % This work consists of the files pig.dtx and pig.ins \n"\
     "      % and the derived file pig.sty.\n"\
     " .\n"\
     " Given such a notice and statement in a file, the conditions given in \n"\
     " this license document would apply, with the `Work' referring to the \n"\
     " three files `pig.dtx', `pig.ins', and `pig.sty' (the last being \n"\
     " generated from `pig.dtx' using `pig.ins'), the `Base Interpreter' \n"\
     " referring to any `LaTeX-Format', and both `Copyright Holder' and \n"\
     " `Current Maintainer' referring to the person `M. Y. Name'.\n"\
     " .\n"\
     " If you do not want the Maintenance section of LPPL to apply to your \n"\
     " Work, change `maintained' above into `author-maintained'. However, we \n"\
     " recommend that you use `maintained', as the Maintenance section was \n"\
     " added in order to ensure that your Work remains useful to the \n"\
     " community even when you can no longer maintain and support it \n"\
     " yourself.\n"\
     " .\n"\
     " Derived Works That Are Not Replacements \n"\
     " ---------------------------------------\n"\
     " .\n"\
     " Several clauses of the LPPL specify means to provide reliability and \n"\
     " stability for the user community. They therefore concern themselves \n"\
     " with the case that a Derived Work is intended to be used as a \n"\
     " (compatible or incompatible) replacement of the original Work. If \n"\
     " this is not the case (e.g., if a few lines of code are reused for a \n"\
     " completely different task), then clauses 6b and 6d shall not apply. \n"\
     " .\n"\
     " Important Recommendations \n"\
     " -------------------------\n"\
     " .\n"\
     " Defining What Constitutes the Work\n"\
     " .\n"\
     " The LPPL requires that distributions of the Work contain all the \n"\
     " files of the Work. It is therefore important that you provide a way \n"\
     " for the licensee to determine which files constitute the Work. This \n"\
     " could, for example, be achieved by explicitly listing all the files \n"\
     " of the Work near the copyright notice of each file or by using a line \n"\
     " such as:\n"\
     " .\n"\
     "      % This work consists of all files listed in manifest.txt. \n"\
     " .\n"\
     " in that place. In the absence of an unequivocal list it might be \n"\
     " impossible for the licensee to determine what is considered by you to \n"\
     " comprise the Work and, in such a case, the licensee would be entitled \n"\
     " to make reasonable conjectures as to which files comprise the Work. \n"\
     " "
  return text

def textMPL10():
  text = \
     "License: MPL-1.0\n"\
     " MOZILLA PUBLIC LICENSE\n"\
     " Version 1.0\n"\
     " .\n"\
     " 1. Definitions.\n"\
     " .\n"\
     "      1.1. ``Contributor'' means each entity that creates or contributes to \n"\
     " the creation of Modifications.\n"\
     " .\n"\
     "      1.2. ``Contributor Version'' means the combination of the Original \n"\
     " Code, prior Modifications used by a Contributor, and the Modifications made \n"\
     " by that particular Contributor.\n"\
     " .\n"\
     "      1.3. ``Covered Code'' means the Original Code or Modifications or the \n"\
     " combination of the Original Code and Modifications, in each case including \n"\
     " portions thereof.\n"\
     " .\n"\
     "      1.4. ``Electronic Distribution Mechanism'' means a mechanism generally \n"\
     " accepted in the software development community for the electronic transfer \n"\
     " of data.\n"\
     " .\n"\
     "      1.5. ``Executable'' means Covered Code in any form other than Source \n"\
     " Code.\n"\
     " .\n"\
     "      1.6. ``Initial Developer'' means the individual or entity identified as \n"\
     " the Initial Developer in the Source Code notice required by Exhibit A.\n"\
     " .\n"\
     "      1.7. ``Larger Work'' means a work which combines Covered Code or \n"\
     " portions thereof with code not governed by the terms of this License.\n"\
     " .\n"\
     "      1.8. ``License'' means this document.\n"\
     " .\n"\
     "      1.9. ``Modifications'' means any addition to or deletion from the \n"\
     " substance or structure of either the Original Code or any previous \n"\
     " Modifications. When Covered Code is released as a series of files, a \n"\
     " Modification is:\n"\
     " .\n"\
     "           A. Any addition to or deletion from the contents of a file \n"\
     " containing Original Code or previous Modifications.\n"\
     " .\n"\
     "           B. Any new file that contains any part of the Original Code or \n"\
     " previous Modifications.\n"\
     " .\n"\
     "      1.10. ``Original Code'' means Source Code of computer software code \n"\
     " which is described in the Source Code notice required by Exhibit A as \n"\
     " Original Code, and which, at the time of its release under this License is \n"\
     " not already Covered Code governed by this License.\n"\
     " .\n"\
     "      1.11. ``Source Code'' means the preferred form of the Covered Code for \n"\
     " making modifications to it, including all modules it contains, plus any \n"\
     " associated interface definition files, scripts used to control compilation \n"\
     " and installation of an Executable, or a list of source code differential \n"\
     " comparisons against either the Original Code or another well known, \n"\
     " available Covered Code of the Contributor's choice. The Source Code can be \n"\
     " in a compressed or archival form, provided the appropriate decompression or \n"\
     " de-archiving software is widely available for no charge.\n"\
     " .\n"\
     "      1.12. ``You'' means an individual or a legal entity exercising rights \n"\
     " under, and complying with all of the terms of, this License or a future \n"\
     " version of this License issued under Section 6.1. For legal entities, \n"\
     " ``You'' includes any entity which controls, is controlled by, or is under \n"\
     " common control with You. For purposes of this definition, ``control'' means \n"\
     " (a) the power, direct or indirect, to cause the direction or management of \n"\
     " such entity, whether by contract or otherwise, or (b) ownership of fifty \n"\
     " percent (50%) or more of the outstanding shares or beneficial ownership of \n"\
     " such entity.\n"\
     " .\n"\
     " 2. Source Code License.\n"\
     " .\n"\
     "      2.1. The Initial Developer Grant. \n"\
     " The Initial Developer hereby grants You a world-wide, royalty-free, \n"\
     " non-exclusive license, subject to third party intellectual property claims:\n"\
     " .\n"\
     "           (a) to use, reproduce, modify, display, perform, sublicense and \n"\
     " distribute the Original Code (or portions thereof) with or without \n"\
     " Modifications, or as part of a Larger Work; and\n"\
     " .\n"\
     "           (b) under patents now or hereafter owned or controlled by Initial \n"\
     " Developer, to make, have made, use and sell (``Utilize'') the Original Code \n"\
     " (or portions thereof), but solely to the extent that any such patent is \n"\
     " reasonably necessary to enable You to Utilize 	the Original Code (or \n"\
     " portions thereof) and not to any greater extent that may be necessary to \n"\
     " Utilize further Modifications or combinations.\n"\
     " .\n"\
     "      2.2. Contributor Grant. \n"\
     " Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive \n"\
     " license, subject to third party intellectual property claims:\n"\
     " .\n"\
     "           (a) to use, reproduce, modify, display, perform, sublicense and \n"\
     " distribute the Modifications created by such Contributor (or portions \n"\
     " thereof) either on an unmodified basis, with other Modifications, as Covered \n"\
     " Code or as part of a Larger Work; and\n"\
     " .\n"\
     "           (b) under patents now or hereafter owned or controlled by \n"\
     " Contributor, to Utilize the Contributor Version (or portions thereof), but \n"\
     " solely to the extent that any such patent is reasonably necessary to enable \n"\
     " You to Utilize the Contributor Version (or portions 	thereof), and not to \n"\
     " any greater extent that may be necessary to Utilize further Modifications or \n"\
     " combinations.\n"\
     " .\n"\
     " 3. Distribution Obligations.\n"\
     " .\n"\
     "      3.1. Application of License. \n"\
     "      The Modifications which You create or to which You contribute are \n"\
     " governed by the terms of this License, including without limitation Section \n"\
     " 2.2. The Source Code version of Covered Code may be distributed only under \n"\
     " the terms of this License or a future version of this License released under \n"\
     " Section 6.1, and You must include a copy of this License with every copy of \n"\
     " the Source Code You distribute. You may not offer or impose any terms on any \n"\
     " Source Code version that alters or restricts the applicable version of this \n"\
     " License or the recipients' rights hereunder. However, You may include an \n"\
     " additional document offering the additional rights described in Section 3.5.\n"\
     " .\n"\
     "      3.2. Availability of Source Code. \n"\
     "      Any Modification which You create or to which You contribute must be \n"\
     " made available in Source Code form under the terms of this License either on \n"\
     " the same media as an Executable version or via an accepted Electronic \n"\
     " Distribution Mechanism to anyone to whom you made an Executable version \n"\
     " available; and if made available via Electronic Distribution Mechanism, must \n"\
     " remain available for at least twelve (12) months after the date it initially \n"\
     " became available, or at least six (6) months after a subsequent version of \n"\
     " that particular Modification has been made available to such recipients. You \n"\
     " are responsible for ensuring that the Source Code version remains available \n"\
     " even if the Electronic Distribution Mechanism is maintained by a third party.\n"\
     " .\n"\
     "      3.3. Description of Modifications. \n"\
     "      You must cause all Covered Code to which you contribute to contain a \n"\
     " file documenting the changes You made to create that Covered Code and the \n"\
     " date of any change. You must include a prominent statement that the \n"\
     " Modification is derived, directly or indirectly, from Original Code provided \n"\
     " by the Initial Developer and including the name of the Initial Developer in \n"\
     " (a) the Source Code, and (b) in any notice in an Executable version or \n"\
     " related documentation in which You describe the origin or ownership of the \n"\
     " Covered Code.\n"\
     " .\n"\
     "      3.4. Intellectual Property Matters\n"\
     " .\n"\
     "           (a) Third Party Claims. \n"\
     "           If You have knowledge that a party claims an intellectual property \n"\
     " right in particular functionality or code (or its utilization under this \n"\
     " License), you must include a text file with the source code distribution \n"\
     " titled ``LEGAL'' which describes the claim and the party making the claim in \n"\
     " sufficient detail that a recipient will know whom to contact. If you obtain \n"\
     " such knowledge after You make Your Modification available as described in \n"\
     " Section 3.2, You shall promptly modify the LEGAL file in all copies You make \n"\
     " available thereafter and shall take other steps (such as notifying \n"\
     " appropriate mailing lists or newsgroups) reasonably calculated to inform \n"\
     " those who received the Covered Code that new knowledge has been obtained.\n"\
     " .\n"\
     "           (b) Contributor APIs. \n"\
     "           If Your Modification is an application programming interface and \n"\
     " You own or control patents which are reasonably necessary to implement that \n"\
     " API, you must also include this information in the LEGAL file.\n"\
     " .\n"\
     "      3.5. Required Notices. \n"\
     "      You must duplicate the notice in Exhibit A in each file of the Source \n"\
     " Code, and this License in any documentation for the Source Code, where You \n"\
     " describe recipients' rights relating to Covered Code. If You created one or \n"\
     " more Modification(s), You may add your name as a Contributor to the notice \n"\
     " described in Exhibit A. If it is not possible to put such notice in a \n"\
     " particular Source Code file due to its structure, then you must include such \n"\
     " notice in a location (such as a relevant directory file) where a user would \n"\
     " be likely to look for such a notice. You may choose to offer, and to charge \n"\
     " a fee for, warranty, support, indemnity or liability obligations to one or \n"\
     " more recipients of Covered Code. However, You may do so only on Your own \n"\
     " behalf, and not on behalf of the Initial Developer or any Contributor. You \n"\
     " must make it absolutely clear than any such warranty, support, indemnity or \n"\
     " liability obligation is offered by You alone, and You hereby agree to \n"\
     " indemnify the Initial Developer and every Contributor for any liability \n"\
     " incurred by the Initial Developer or such Contributor as a result of \n"\
     " warranty, support, indemnity or liability terms You offer.\n"\
     " .\n"\
     "      3.6. Distribution of Executable Versions. \n"\
     "      You may distribute Covered Code in Executable form only if the \n"\
     " requirements of Section 3.1-3.5 have been met for that Covered Code, and if \n"\
     " You include a notice stating that the Source Code version of the Covered \n"\
     " Code is available under the terms of this License, including a description \n"\
     " of how and where You have fulfilled the obligations of Section 3.2. The \n"\
     " notice must be conspicuously included in any notice in an Executable \n"\
     " version, related documentation or collateral in which You describe \n"\
     " recipients' rights relating to the Covered Code. You may distribute the \n"\
     " Executable version of Covered Code under a license of Your choice, which may \n"\
     " contain terms different from this License, provided that You are in \n"\
     " compliance with the terms of this License and that the license for the \n"\
     " Executable version does not attempt to limit or alter the recipient's rights \n"\
     " in the Source Code version from the rights set forth in this License. If You \n"\
     " distribute the Executable version under a different license You must make it \n"\
     " absolutely clear that any terms which differ from this License are offered \n"\
     " by You alone, not by the Initial Developer or any Contributor. You hereby \n"\
     " agree to indemnify the Initial Developer and every Contributor for any \n"\
     " liability incurred by the Initial Developer or such Contributor as a result \n"\
     " of any such terms You offer.\n"\
     " .\n"\
     "      3.7. Larger Works. \n"\
     "      You may create a Larger Work by combining Covered Code with other code \n"\
     " not governed by the terms of this License and distribute the Larger Work as \n"\
     " a single product. In such a case, You must make sure the requirements of \n"\
     " this License are fulfilled for the Covered Code.\n"\
     " .\n"\
     " 4. Inability to Comply Due to Statute or Regulation.\n"\
     " If it is impossible for You to comply with any of the terms of this License \n"\
     " with respect to some or all of the Covered Code due to statute or regulation \n"\
     " then You must: (a) comply with the terms of this License to the maximum \n"\
     " extent possible; and (b) describe the limitations and the code they affect. \n"\
     " Such description must be included in the LEGAL file described in Section 3.4 \n"\
     " and must be included with all distributions of the Source Code. Except to \n"\
     " the extent prohibited by statute or regulation, such description must be \n"\
     " sufficiently detailed for a recipient of ordinary skill to be able to \n"\
     " understand it.\n"\
     " .\n"\
     " 5. Application of this License.\n"\
     " This License applies to code to which the Initial Developer has attached the \n"\
     " notice in Exhibit A, and to related Covered Code.\n"\
     " .\n"\
     " 6. Versions of the License.\n"\
     " .\n"\
     "      6.1. New Versions. \n"\
     "      Netscape Communications Corporation (``Netscape'') may publish revised \n"\
     " and/or new versions of the License from time to time. Each version will be \n"\
     " given a distinguishing version number.\n"\
     " .\n"\
     "      6.2. Effect of New Versions. \n"\
     "      Once Covered Code has been published under a particular version of the \n"\
     " License, You may always continue to use it under the terms of that version. \n"\
     " You may also choose to use such Covered Code under the terms of any \n"\
     " subsequent version of the License published by Netscape. No one other than \n"\
     " Netscape has the right to modify the terms applicable to Covered Code \n"\
     " created under this License.\n"\
     " .\n"\
     "      6.3. Derivative Works. \n"\
     "      If you create or use a modified version of this License (which you may \n"\
     " only do in order to apply it to code which is not already Covered Code \n"\
     " governed by this License), you must (a) rename Your license so that the \n"\
     " phrases ``Mozilla'', ``MOZILLAPL'', ``MOZPL'', ``Netscape'', ``NPL'' or any \n"\
     " confusingly similar phrase do not appear anywhere in your license and (b) \n"\
     " otherwise make it clear that your version of the license contains terms \n"\
     " which differ from the Mozilla Public License and Netscape Public License. \n"\
     " (Filling in the name of the Initial Developer, Original Code or Contributor \n"\
     " in the notice described in Exhibit A shall not of themselves be deemed to be \n"\
     " modifications of this License.)\n"\
     " .\n"\
     " 7. DISCLAIMER OF WARRANTY.\n"\
     " COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN ``AS IS'' BASIS, WITHOUT \n"\
     " WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT \n"\
     " LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, \n"\
     " MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE \n"\
     " RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. \n"\
     " SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL \n"\
     " DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY \n"\
     " SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN \n"\
     " ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED \n"\
     " HEREUNDER EXCEPT UNDER THIS DISCLAIMER.\n"\
     " .\n"\
     " 8. TERMINATION.\n"\
     " This License and the rights granted hereunder will terminate automatically \n"\
     " if You fail to comply with terms herein and fail to cure such breach within \n"\
     " 30 days of becoming aware of the breach. All sublicenses to the Covered Code \n"\
     " which are properly granted shall survive any termination of this License. \n"\
     " Provisions which, by their nature, must remain in effect beyond the \n"\
     " termination of this License shall survive.\n"\
     " .\n"\
     " 9. LIMITATION OF LIABILITY.\n"\
     " UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING \n"\
     " NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE INITIAL DEVELOPER, ANY OTHER \n"\
     " CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, OR ANY SUPPLIER OF ANY OF \n"\
     " SUCH PARTIES, BE LIABLE TO YOU OR ANY OTHER PERSON FOR ANY INDIRECT, \n"\
     " SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, \n"\
     " WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER \n"\
     " FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, \n"\
     " EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH \n"\
     " DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH \n"\
     " OR PERSONAL INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT \n"\
     " APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW \n"\
     " THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THAT \n"\
     " EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.\n"\
     " .\n"\
     " 10. U.S. GOVERNMENT END USERS.\n"\
     " The Covered Code is a ``commercial item,'' as that term is defined in 48 \n"\
     " C.F.R. 2.101 (Oct. 1995), consisting of ``commercial computer software'' and \n"\
     " ``commercial computer software documentation,'' as such terms are used in 48 \n"\
     " C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. \n"\
     " 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users \n"\
     " acquire Covered Code with only those rights set forth herein.\n"\
     " .\n"\
     " 11. MISCELLANEOUS.\n"\
     " This License represents the complete agreement concerning subject matter \n"\
     " hereof. If any provision of this License is held to be unenforceable, such \n"\
     " provision shall be reformed only to the extent necessary to make it \n"\
     " enforceable. This License shall be governed by California law provisions \n"\
     " (except to the extent applicable law, if any, provides otherwise), excluding \n"\
     " its conflict-of-law provisions. With respect to disputes in which at least \n"\
     " one party is a citizen of, or an entity chartered or registered to do \n"\
     " business in, the United States of America: (a) unless otherwise agreed in \n"\
     " writing, all disputes relating to this License (excepting any dispute \n"\
     " relating to intellectual property rights) shall be subject to final and \n"\
     " binding arbitration, with the losing party paying all costs of arbitration; \n"\
     " (b) any arbitration relating to this Agreement shall be held in Santa Clara \n"\
     " County, California, under the auspices of JAMS/EndDispute; and (c) any \n"\
     " litigation relating to this Agreement shall be subject to the jurisdiction \n"\
     " of the Federal Courts of the Northern District of California, with venue \n"\
     " lying in Santa Clara County, California, with the losing party responsible \n"\
     " for costs, including without limitation, court costs and reasonable \n"\
     " attorneys fees and expenses. The application of the United Nations \n"\
     " Convention on Contracts for the International Sale of Goods is expressly \n"\
     " excluded. Any law or regulation which provides that the language of a \n"\
     " contract shall be construed against the drafter shall not apply to this \n"\
     " License.\n"\
     " .\n"\
     " 12. RESPONSIBILITY FOR CLAIMS.\n"\
     " Except in cases where another Contributor has failed to comply with Section \n"\
     " 3.4, You are responsible for damages arising, directly or indirectly, out of \n"\
     " Your utilization of rights under this License, based on the number of copies \n"\
     " of Covered Code you made available, the revenues you received from utilizing \n"\
     " such rights, and other relevant factors. You agree to work with affected \n"\
     " parties to distribute responsibility on an equitable basis.\n"\
     " .\n"\
     " EXHIBIT A.\n"\
     " .\n"\
     " ``The contents of this file are subject to the Mozilla Public License \n"\
     " Version 1.0 (the \"License\"); you may not use this file except in compliance \n"\
     " with the License. You may obtain a copy of the License at \n"\
     " http://www.mozilla.org/MPL/\n"\
     " .\n"\
     " Software distributed under the License is distributed on an \"AS IS\" basis, \n"\
     " WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for \n"\
     " the specific language governing rights and limitations under the License.\n"\
     " .\n"\
     " The Original Code is ______________________________________.\n"\
     " .\n"\
     " The Initial Developer of the Original Code is ________________________. \n"\
     " Portions created by ______________________ are Copyright (C) ______ \n"\
     " _______________________. All Rights Reserved.\n"\
     " .\n"\
     " Contributor(s): ______________________________________.''\n"\
     " "
  return text

def textMPL11():
  text = \
     "License: MPL-1.1\n"\
     " Mozilla Public License Version 1.1\n"\
     " .\n"\
     " 1. Definitions.\n"\
     " .\n"\
     "      1.0.1. \"Commercial Use\" means distribution or otherwise making the \n"\
     " Covered Code available to a third party.\n"\
     " .\n"\
     "      1.1. \"Contributor\" means each entity that creates or contributes to the \n"\
     " creation of Modifications.\n"\
     " .\n"\
     "      1.2. \"Contributor Version\" means the combination of the Original Code, \n"\
     " prior Modifications used by a Contributor, and the Modifications made by \n"\
     " that particular Contributor.\n"\
     " .\n"\
     "      1.3. \"Covered Code\" means the Original Code or Modifications or the \n"\
     " combination of the Original Code and Modifications, in each case including \n"\
     " portions thereof.\n"\
     " .\n"\
     "      1.4. \"Electronic Distribution Mechanism\" means a mechanism generally \n"\
     " accepted in the software development community for the electronic transfer \n"\
     " of data.\n"\
     " .\n"\
     "      1.5. \"Executable\" means Covered Code in any form other than Source Code.\n"\
     " .\n"\
     "      1.6. \"Initial Developer\" means the individual or entity identified as \n"\
     " the Initial Developer in the Source Code notice required by Exhibit A.\n"\
     " .\n"\
     "      1.7. \"Larger Work\" means a work which combines Covered Code or portions \n"\
     " thereof with code not governed by the terms of this License.\n"\
     " .\n"\
     "      1.8. \"License\" means this document.\n"\
     " .\n"\
     "      1.8.1. \"Licensable\" means having the right to grant, to the maximum \n"\
     " extent possible, whether at the time of the initial grant or subsequently \n"\
     " acquired, any and all of the rights conveyed herein.\n"\
     " .\n"\
     "      1.9. \"Modifications\" means any addition to or deletion from the \n"\
     " substance or structure of either the Original Code or any previous \n"\
     " Modifications. When Covered Code is released as a series of files, a \n"\
     " Modification is:\n"\
     " Any addition to or deletion from the contents of a file containing Original \n"\
     " Code or previous Modifications.\n"\
     " Any new file that contains any part of the Original Code or previous \n"\
     " Modifications.\n"\
     " .\n"\
     "      1.10. \"Original Code\" means Source Code of computer software code which \n"\
     " is described in the Source Code notice required by Exhibit A as Original \n"\
     " Code, and which, at the time of its release under this License is not \n"\
     " already Covered Code governed by this License.\n"\
     " .\n"\
     "      1.10.1. \"Patent Claims\" means any patent claim(s), now owned or \n"\
     " hereafter acquired, including without limitation, method, process, and \n"\
     " apparatus claims, in any patent Licensable by grantor.\n"\
     " .\n"\
     "      1.11. \"Source Code\" means the preferred form of the Covered Code for \n"\
     " making modifications to it, including all modules it contains, plus any \n"\
     " associated interface definition files, scripts used to control compilation \n"\
     " and installation of an Executable, or source code differential comparisons \n"\
     " against either the Original Code or another well known, available Covered \n"\
     " Code of the Contributor's choice. The Source Code can be in a compressed or \n"\
     " archival form, provided the appropriate decompression or de-archiving \n"\
     " software is widely available for no charge.\n"\
     " .\n"\
     "      1.12. \"You\" (or \"Your\") means an individual or a legal entity \n"\
     " exercising rights under, and complying with all of the terms of, this \n"\
     " License or a future version of this License issued under Section 6.1. For \n"\
     " legal entities, \"You\" includes any entity which controls, is controlled by, \n"\
     " or is under common control with You. For purposes of this definition, \n"\
     " \"control\" means (a) the power, direct or indirect, to cause the direction or \n"\
     " management of such entity, whether by contract or otherwise, or (b) \n"\
     " ownership of more than fifty percent (50%) of the outstanding shares or \n"\
     " beneficial ownership of such entity.\n"\
     " .\n"\
     " 2. Source Code License.\n"\
     " .\n"\
     "      2.1. The Initial Developer Grant. The Initial Developer hereby grants \n"\
     " You a world-wide, royalty-free, non-exclusive license, subject to third \n"\
     " party intellectual property claims:\n"\
     " .\n"\
     "           a. under intellectual property rights (other than patent or \n"\
     " trademark) Licensable by Initial Developer to use, reproduce, modify, \n"\
     " display, perform, sublicense and distribute the Original Code (or portions \n"\
     " thereof) with or without Modifications, and/or as part of a Larger Work; and\n"\
     "           b. under Patents Claims infringed by the making, using or selling \n"\
     " of Original Code, to make, have made, use, practice, sell, and offer for \n"\
     " sale, and/or otherwise dispose of the Original Code (or portions thereof).\n"\
     "           c. the licenses granted in this Section 2.1 (a) and (b) are \n"\
     " effective on the date Initial Developer first distributes Original Code \n"\
     " under the terms of this License.\n"\
     "           d. Notwithstanding Section 2.1 (b) above, no patent license is \n"\
     " granted: 1) for code that You delete from the Original Code; 2) separate \n"\
     " from the Original Code; or 3) for infringements caused by: i) the \n"\
     " modification of the Original Code or ii) the combination of the Original \n"\
     " Code with other software or devices.\n"\
     " .\n"\
     "      2.2. Contributor Grant. Subject to third party intellectual property \n"\
     " claims, each Contributor hereby grants You a world-wide, royalty-free, \n"\
     " non-exclusive license\n"\
     " .\n"\
     "           a. under intellectual property rights (other than patent or \n"\
     " trademark) Licensable by Contributor, to use, reproduce, modify, display, \n"\
     " perform, sublicense and distribute the Modifications created by such \n"\
     " Contributor (or portions thereof) either on an unmodified basis, with other \n"\
     " Modifications, as Covered Code and/or as part of a Larger Work; and\n"\
     "           b. under Patent Claims infringed by the making, using, or selling \n"\
     " of Modifications made by that Contributor either alone and/or in combination \n"\
     " with its Contributor Version (or portions of such combination), to make, \n"\
     " use, sell, offer for sale, have made, and/or otherwise dispose of: 1) \n"\
     " Modifications made by that Contributor (or portions thereof); and 2) the \n"\
     " combination of Modifications made by that Contributor with its Contributor \n"\
     " Version (or portions of such combination).\n"\
     "           c. the licenses granted in Sections 2.2 (a) and 2.2 (b) are \n"\
     " effective on the date Contributor first makes Commercial Use of the Covered \n"\
     " Code.\n"\
     "           d. Notwithstanding Section 2.2 (b) above, no patent license is \n"\
     " granted: 1) for any code that Contributor has deleted from the Contributor \n"\
     " Version; 2) separate from the Contributor Version; 3) for infringements \n"\
     " caused by: i) third party modifications of Contributor Version or ii) the \n"\
     " combination of Modifications made by that Contributor with other software \n"\
     " (except as part of the Contributor Version) or other devices; or 4) under \n"\
     " Patent Claims infringed by Covered Code in the absence of Modifications made \n"\
     " by that Contributor.\n"\
     " .\n"\
     " 3. Distribution Obligations.\n"\
     " .\n"\
     "      3.1. Application of License. The Modifications which You create or to \n"\
     " which You contribute are governed by the terms of this License, including \n"\
     " without limitation Section 2.2. The Source Code version of Covered Code may \n"\
     " be distributed only under the terms of this License or a future version of \n"\
     " this License released under Section 6.1, and You must include a copy of this \n"\
     " License with every copy of the Source Code You distribute. You may not offer \n"\
     " or impose any terms on any Source Code version that alters or restricts the \n"\
     " applicable version of this License or the recipients' rights hereunder. \n"\
     " However, You may include an additional document offering the additional \n"\
     " rights described in Section 3.5.\n"\
     " .\n"\
     "      3.2. Availability of Source Code. Any Modification which You create or \n"\
     " to which You contribute must be made available in Source Code form under the \n"\
     " terms of this License either on the same media as an Executable version or \n"\
     " via an accepted Electronic Distribution Mechanism to anyone to whom you made \n"\
     " an Executable version available; and if made available via Electronic \n"\
     " Distribution Mechanism, must remain available for at least twelve (12) \n"\
     " months after the date it initially became available, or at least six (6) \n"\
     " months after a subsequent version of that particular Modification has been \n"\
     " made available to such recipients. You are responsible for ensuring that the \n"\
     " Source Code version remains available even if the Electronic Distribution \n"\
     " Mechanism is maintained by a third party.\n"\
     " .\n"\
     "      3.3. Description of Modifications. You must cause all Covered Code to \n"\
     " which You contribute to contain a file documenting the changes You made to \n"\
     " create that Covered Code and the date of any change. You must include a \n"\
     " prominent statement that the Modification is derived, directly or \n"\
     " indirectly, from Original Code provided by the Initial Developer and \n"\
     " including the name of the Initial Developer in (a) the Source Code, and (b) \n"\
     " in any notice in an Executable version or related documentation in which You \n"\
     " describe the origin or ownership of the Covered Code.\n"\
     " .\n"\
     "      3.4. Intellectual Property Matters\n"\
     " .\n"\
     "           (a) Third Party Claims\n"\
     "           If Contributor has knowledge that a license under a third party's \n"\
     " intellectual property rights is required to exercise the rights granted by \n"\
     " such Contributor under Sections 2.1 or 2.2, Contributor must include a text \n"\
     " file with the Source Code distribution titled \"LEGAL\" which describes the \n"\
     " claim and the party making the claim in sufficient detail that a recipient \n"\
     " will know whom to contact. If Contributor obtains such knowledge after the \n"\
     " Modification is made available as described in Section 3.2, Contributor \n"\
     " shall promptly modify the LEGAL file in all copies Contributor makes \n"\
     " available thereafter and shall take other steps (such as notifying \n"\
     " appropriate mailing lists or newsgroups) reasonably calculated to inform \n"\
     " those who received the Covered Code that new knowledge has been obtained.\n"\
     " .\n"\
     "           (b) Contributor APIs\n"\
     "           If Contributor's Modifications include an application programming \n"\
     " interface and Contributor has knowledge of patent licenses which are \n"\
     " reasonably necessary to implement that API, Contributor must also include \n"\
     " this information in the LEGAL file.\n"\
     " .\n"\
     "           (c) Representations.\n"\
     "           Contributor represents that, except as disclosed pursuant to \n"\
     " Section 3.4 (a) above, Contributor believes that Contributor's Modifications \n"\
     " are Contributor's original creation(s) and/or Contributor has sufficient \n"\
     " rights to grant the rights conveyed by this License.\n"\
     " .\n"\
     "      3.5. Required Notices. You must duplicate the notice in Exhibit A in \n"\
     " each file of the Source Code. If it is not possible to put such notice in a \n"\
     " particular Source Code file due to its structure, then You must include such \n"\
     " notice in a location (such as a relevant directory) where a user would be \n"\
     " likely to look for such a notice. If You created one or more Modification(s) \n"\
     " You may add your name as a Contributor to the notice described in Exhibit A. \n"\
     " You must also duplicate this License in any documentation for the Source \n"\
     " Code where You describe recipients' rights or ownership rights relating to \n"\
     " Covered Code. You may choose to offer, and to charge a fee for, warranty, \n"\
     " support, indemnity or liability obligations to one or more recipients of \n"\
     " Covered Code. However, You may do so only on Your own behalf, and not on \n"\
     " behalf of the Initial Developer or any Contributor. You must make it \n"\
     " absolutely clear than any such warranty, support, indemnity or liability \n"\
     " obligation is offered by You alone, and You hereby agree to indemnify the \n"\
     " Initial Developer and every Contributor for any liability incurred by the \n"\
     " Initial Developer or such Contributor as a result of warranty, support, \n"\
     " indemnity or liability terms You offer.\n"\
     " .\n"\
     "      3.6. Distribution of Executable Versions. You may distribute Covered \n"\
     " Code in Executable form only if the requirements of Sections 3.1, 3.2, 3.3, \n"\
     " 3.4 and 3.5 have been met for that Covered Code, and if You include a notice \n"\
     " stating that the Source Code version of the Covered Code is available under \n"\
     " the terms of this License, including a description of how and where You have \n"\
     " fulfilled the obligations of Section 3.2. The notice must be conspicuously \n"\
     " included in any notice in an Executable version, related documentation or \n"\
     " collateral in which You describe recipients' rights relating to the Covered \n"\
     " Code. You may distribute the Executable version of Covered Code or ownership \n"\
     " rights under a license of Your choice, which may contain terms different \n"\
     " from this License, provided that You are in compliance with the terms of \n"\
     " this License and that the license for the Executable version does not \n"\
     " attempt to limit or alter the recipient's rights in the Source Code version \n"\
     " from the rights set forth in this License. If You distribute the Executable \n"\
     " version under a different license You must make it absolutely clear that any \n"\
     " terms which differ from this License are offered by You alone, not by the \n"\
     " Initial Developer or any Contributor. You hereby agree to indemnify the \n"\
     " Initial Developer and every Contributor for any liability incurred by the \n"\
     " Initial Developer or such Contributor as a result of any such terms You \n"\
     " offer.\n"\
     " .\n"\
     "      3.7. Larger Works. You may create a Larger Work by combining Covered \n"\
     " Code with other code not governed by the terms of this License and \n"\
     " distribute the Larger Work as a single product. In such a case, You must \n"\
     " make sure the requirements of this License are fulfilled for the Covered \n"\
     " Code.\n"\
     " .\n"\
     " 4. Inability to Comply Due to Statute or Regulation.\n"\
     " .\n"\
     " If it is impossible for You to comply with any of the terms of this License \n"\
     " with respect to some or all of the Covered Code due to statute, judicial \n"\
     " order, or regulation then You must: (a) comply with the terms of this \n"\
     " License to the maximum extent possible; and (b) describe the limitations and \n"\
     " the code they affect. Such description must be included in the LEGAL file \n"\
     " described in Section 3.4 and must be included with all distributions of the \n"\
     " Source Code. Except to the extent prohibited by statute or regulation, such \n"\
     " description must be sufficiently detailed for a recipient of ordinary skill \n"\
     " to be able to understand it.\n"\
     " .\n"\
     " 5. Application of this License.\n"\
     " This License applies to code to which the Initial Developer has attached the \n"\
     " notice in Exhibit A and to related Covered Code.\n"\
     " .\n"\
     " 6. Versions of the License.\n"\
     " .\n"\
     "      6.1. New Versions\n"\
     "      Netscape Communications Corporation (\"Netscape\") may publish revised \n"\
     " and/or new versions of the License from time to time. Each version will be \n"\
     " given a distinguishing version number.\n"\
     " .\n"\
     "      6.2. Effect of New Versions\n"\
     "      Once Covered Code has been published under a particular version of the \n"\
     " License, You may always continue to use it under the terms of that version. \n"\
     " You may also choose to use such Covered Code under the terms of any \n"\
     " subsequent version of the License published by Netscape. No one other than \n"\
     " Netscape has the right to modify the terms applicable to Covered Code \n"\
     " created under this License.\n"\
     " .\n"\
     "      6.3. Derivative Works\n"\
     "      If You create or use a modified version of this License (which you may \n"\
     " only do in order to apply it to code which is not already Covered Code \n"\
     " governed by this License), You must (a) rename Your license so that the \n"\
     " phrases \"Mozilla\", \"MOZILLAPL\", \"MOZPL\", \"Netscape\", \"MPL\", \"NPL\" or any \n"\
     " confusingly similar phrase do not appear in your license (except to note \n"\
     " that your license differs from this License) and (b) otherwise make it clear \n"\
     " that Your version of the license contains terms which differ from the \n"\
     " Mozilla Public License and Netscape Public License. (Filling in the name of \n"\
     " the Initial Developer, Original Code or Contributor in the notice described \n"\
     " in Exhibit A shall not of themselves be deemed to be modifications of this \n"\
     " License.)\n"\
     " .\n"\
     " 7. DISCLAIMER OF WARRANTY\n"\
     " COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN \"AS IS\" BASIS, WITHOUT \n"\
     " WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT \n"\
     " LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, \n"\
     " MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE \n"\
     " RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. \n"\
     " SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL \n"\
     " DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY \n"\
     " SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN \n"\
     " ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED \n"\
     " HEREUNDER EXCEPT UNDER THIS DISCLAIMER.\n"\
     " .\n"\
     " 8. Termination\n"\
     " .\n"\
     "      8.1. This License and the rights granted hereunder will terminate \n"\
     " automatically if You fail to comply with terms herein and fail to cure such \n"\
     " breach within 30 days of becoming aware of the breach. All sublicenses to \n"\
     " the Covered Code which are properly granted shall survive any termination of \n"\
     " this License. Provisions which, by their nature, must remain in effect \n"\
     " beyond the termination of this License shall survive.\n"\
     " .\n"\
     "      8.2. If You initiate litigation by asserting a patent infringement \n"\
     " claim (excluding declatory judgment actions) against Initial Developer or a \n"\
     " Contributor (the Initial Developer or Contributor against whom You file such \n"\
     " action is referred to as \"Participant\") alleging that:\n"\
     " .\n"\
     "           a. such Participant's Contributor Version directly or indirectly \n"\
     " infringes any patent, then any and all rights granted by such Participant to \n"\
     " You under Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice \n"\
     " from Participant terminate prospectively, unless if within 60 days after \n"\
     " receipt of notice You either: (i) agree in writing to pay Participant a \n"\
     " mutually agreeable reasonable royalty for Your past and future use of \n"\
     " Modifications made by such Participant, or (ii) withdraw Your litigation \n"\
     " claim with respect to the Contributor Version against such Participant. If \n"\
     " within 60 days of notice, a reasonable royalty and payment arrangement are \n"\
     " not mutually agreed upon in writing by the parties or the litigation claim \n"\
     " is not withdrawn, the rights granted by Participant to You under Sections \n"\
     " 2.1 and/or 2.2 automatically terminate at the expiration of the 60 day \n"\
     " notice period specified above.\n"\
     "           b. any software, hardware, or device, other than such \n"\
     " Participant's Contributor Version, directly or indirectly infringes any \n"\
     " patent, then any rights granted to You by such Participant under Sections \n"\
     " 2.1(b) and 2.2(b) are revoked effective as of the date You first made, used, \n"\
     " sold, distributed, or had made, Modifications made by that Participant.\n"\
     " .\n"\
     "      8.3. If You assert a patent infringement claim against Participant \n"\
     " alleging that such Participant's Contributor Version directly or indirectly \n"\
     " infringes any patent where such claim is resolved (such as by license or \n"\
     " settlement) prior to the initiation of patent infringement litigation, then \n"\
     " the reasonable value of the licenses granted by such Participant under \n"\
     " Sections 2.1 or 2.2 shall be taken into account in determining the amount or \n"\
     " value of any payment or license.\n"\
     " .\n"\
     "      8.4. In the event of termination under Sections 8.1 or 8.2 above, all \n"\
     " end user license agreements (excluding distributors and resellers) which \n"\
     " have been validly granted by You or any distributor hereunder prior to \n"\
     " termination shall survive termination.\n"\
     " .\n"\
     " 9. LIMITATION OF LIABILITY\n"\
     " UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING \n"\
     " NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY \n"\
     " OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, OR ANY SUPPLIER OF \n"\
     " ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, \n"\
     " INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT \n"\
     " LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR \n"\
     " MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH \n"\
     " PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS \n"\
     " LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL \n"\
     " INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW \n"\
     " PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR \n"\
     " LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND \n"\
     " LIMITATION MAY NOT APPLY TO YOU.\n"\
     " .\n"\
     " 10. U.S. government end users\n"\
     " The Covered Code is a \"commercial item,\" as that term is defined in 48 \n"\
     " C.F.R. 2.101 (Oct. 1995), consisting of \"commercial computer software\" and \n"\
     " \"commercial computer software documentation,\" as such terms are used in 48 \n"\
     " C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. \n"\
     " 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users \n"\
     " acquire Covered Code with only those rights set forth herein.\n"\
     " .\n"\
     " 11. Miscellaneous\n"\
     " This License represents the complete agreement concerning subject matter \n"\
     " hereof. If any provision of this License is held to be unenforceable, such \n"\
     " provision shall be reformed only to the extent necessary to make it \n"\
     " enforceable. This License shall be governed by California law provisions \n"\
     " (except to the extent applicable law, if any, provides otherwise), excluding \n"\
     " its conflict-of-law provisions. With respect to disputes in which at least \n"\
     " one party is a citizen of, or an entity chartered or registered to do \n"\
     " business in the United States of America, any litigation relating to this \n"\
     " License shall be subject to the jurisdiction of the Federal Courts of the \n"\
     " Northern District of California, with venue lying in Santa Clara County, \n"\
     " California, with the losing party responsible for costs, including without \n"\
     " limitation, court costs and reasonable attorneys' fees and expenses. The \n"\
     " application of the United Nations Convention on Contracts for the \n"\
     " International Sale of Goods is expressly excluded. Any law or regulation \n"\
     " which provides that the language of a contract shall be construed against \n"\
     " the drafter shall not apply to this License.\n"\
     " .\n"\
     " 12. Responsibility for claims\n"\
     " As between Initial Developer and the Contributors, each party is responsible \n"\
     " for claims and damages arising, directly or indirectly, out of its \n"\
     " utilization of rights under this License and You agree to work with Initial \n"\
     " Developer and Contributors to distribute such responsibility on an equitable \n"\
     " basis. Nothing herein is intended or shall be deemed to constitute any \n"\
     " admission of liability.\n"\
     " .\n"\
     " 13. Multiple-licensed code\n"\
     " Initial Developer may designate portions of the Covered Code as \n"\
     " \"Multiple-Licensed\". \"Multiple-Licensed\" means that the Initial Developer \n"\
     " permits you to utilize portions of the Covered Code under Your choice of the \n"\
     " MPL or the alternative licenses, if any, specified by the Initial Developer \n"\
     " in the file described in Exhibit A.\n"\
     " .\n"\
     " Exhibit A - Mozilla Public License.\n"\
     " .\n"\
     " \"The contents of this file are subject to the Mozilla Public License Version \n"\
     " 1.1 (the \"License\"); you may not use this file except in compliance with the \n"\
     " License. You may obtain a copy of the License at http://www.mozilla.org/MPL/\n"\
     " .\n"\
     " Software distributed under the License is distributed on an \"AS IS\" basis, \n"\
     " WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for \n"\
     " the specific language governing rights and limitations under the License.\n"\
     " .\n"\
     " The Original Code is ______________________________________.\n"\
     " .\n"\
     " The Initial Developer of the Original Code is ________________________.\n"\
     " Portions created by ______________________ are Copyright (C) ______\n"\
     " _______________________. All Rights Reserved.\n"\
     " .\n"\
     " Contributor(s): ______________________________________.\n"\
     " .\n"\
     " Alternatively, the contents of this file may be used under the terms of the \n"\
     " _____ license (the  \"[___] License\"), in which case the provisions of \n"\
     " [______] License are applicable instead of those above. If you wish to allow \n"\
     " use of your version of this file only under the terms of the [____] License \n"\
     " and not to allow others to use your version of this file under the MPL, \n"\
     " indicate your decision by deleting the provisions above and replace them \n"\
     " with the notice and other provisions required by the [___] License. If you \n"\
     " do not delete the provisions above, a recipient may use your version of this \n"\
     " file under either the MPL or the [___] License.\"\n"\
     " .\n"\
     " NOTE: The text of this Exhibit A may differ slightly from the text of the \n"\
     " notices in the Source Code files of the Original Code. You should use the \n"\
     " text of this Exhibit A rather than the text found in the Original Code \n"\
     " Source Code for Your Modifications.\n"\
     " "
  return text

def textMPL20():
  text = \
     "License: MPL-2.0\n"\
     " Mozilla Public License Version 2.0 \n"\
     " .\n"\
     " 1. Definitions\n"\
     " .\n"\
     "      1.1. \"Contributor\" means each individual or legal entity that creates, \n"\
     " contributes to the creation of, or owns Covered Software.\n"\
     " .\n"\
     "      1.2. \"Contributor Version\" means the combination of the Contributions \n"\
     " of others (if any) used by a Contributor and that particular Contributor's \n"\
     " Contribution.\n"\
     " .\n"\
     "      1.3. \"Contribution\" means Covered Software of a particular Contributor.\n"\
     " .\n"\
     "      1.4. \"Covered Software\" means Source Code Form to which the initial \n"\
     " Contributor has attached the notice in Exhibit A, the Executable Form of \n"\
     " such Source Code Form, and Modifications of such Source Code Form, in each \n"\
     " case including portions thereof.\n"\
     " .\n"\
     "      1.5. \"Incompatible With Secondary Licenses\" means\n"\
     " .\n"\
     "           (a) that the initial Contributor has attached the notice described \n"\
     " in Exhibit B to the Covered Software; or\n"\
     " .\n"\
     "           (b) that the Covered Software was made available under the terms \n"\
     " of version 1.1 or earlier of the License, but not also under the terms of a \n"\
     " Secondary License.\n"\
     " .\n"\
     "      1.6. \"Executable Form\" means any form of the work other than Source \n"\
     " Code Form.\n"\
     " .\n"\
     "      1.7. \"Larger Work\" means a work that combines Covered Software with \n"\
     " other material, in a separate file or files, that is not Covered Software.\n"\
     " .\n"\
     "      1.8. \"License\" means this document.\n"\
     " .\n"\
     "      1.9. \"Licensable\" means having the right to grant, to the maximum \n"\
     " extent possible, whether at the time of the initial grant or subsequently, \n"\
     " any and all of the rights conveyed by this License.\n"\
     " .\n"\
     "      1.10. \"Modifications\" means any of the following:\n"\
     " .\n"\
     "           (a) any file in Source Code Form that results from an addition to, \n"\
     " deletion from, or modification of the contents of Covered Software; or\n"\
     " .\n"\
     "           (b) any new file in Source Code Form that contains any Covered \n"\
     " Software.\n"\
     " .\n"\
     "      1.11. \"Patent Claims\" of a Contributor means any patent claim(s), \n"\
     " including without limitation, method, process, and apparatus claims, in any \n"\
     " patent Licensable by such Contributor that would be infringed, but for the \n"\
     " grant of the License, by the making, using, selling, offering for sale, \n"\
     " having made, import, or transfer of either its Contributions or its \n"\
     " Contributor Version.\n"\
     " .\n"\
     "      1.12. \"Secondary License\" means either the GNU General Public License, \n"\
     " Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU \n"\
     " Affero General Public License, Version 3.0, or any later versions of those \n"\
     " licenses.\n"\
     " .\n"\
     "      1.13. \"Source Code Form\" means the form of the work preferred for \n"\
     " making modifications.\n"\
     " .\n"\
     "      1.14. \"You\" (or \"Your\") means an individual or a legal entity \n"\
     " exercising rights under this License. For legal entities, \"You\" includes any \n"\
     " entity that controls, is controlled by, or is under common control with You. \n"\
     " For purposes of this definition, \"control\" means (a) the power, direct or \n"\
     " indirect, to cause the direction or management of such entity, whether by \n"\
     " contract or otherwise, or (b) ownership of more than fifty percent (50%) of \n"\
     " the outstanding shares or beneficial ownership of such entity.\n"\
     " .\n"\
     " 2. License Grants and Conditions \n"\
     " .\n"\
     "      2.1. Grants\n"\
     "      Each Contributor hereby grants You a world-wide, royalty-free, \n"\
     " non-exclusive license:\n"\
     " .\n"\
     "           (a) under intellectual property rights (other than patent or \n"\
     " trademark) Licensable by such Contributor to use, reproduce, make available, \n"\
     " modify, display, perform, distribute, and otherwise exploit its \n"\
     " Contributions, either on an unmodified basis, with Modifications, or as part \n"\
     " of a Larger Work; and\n"\
     " .\n"\
     "           (b) under Patent Claims of such Contributor to make, use, sell, \n"\
     " offer for sale, have made, import, and otherwise transfer either its \n"\
     " Contributions or its Contributor Version.\n"\
     " .\n"\
     "      2.2. Effective Date\n"\
     "      The licenses granted in Section 2.1 with respect to any Contribution \n"\
     " become effective for each Contribution on the date the Contributor first \n"\
     " distributes such Contribution.\n"\
     " .\n"\
     "      2.3. Limitations on Grant Scope\n"\
     "      The licenses granted in this Section 2 are the only rights granted \n"\
     " under this License. No additional rights or licenses will be implied from \n"\
     " the distribution or licensing of Covered Software under this License. \n"\
     " Notwithstanding Section 2.1(b) above, no patent license is granted by a \n"\
     " Contributor:\n"\
     " .\n"\
     "           (a) for any code that a Contributor has removed from Covered \n"\
     " Software; or\n"\
     " .\n"\
     "           (b) for infringements caused by: (i) Your and any other third \n"\
     " party's modifications of Covered Software, or (ii) the combination of its \n"\
     " Contributions with other software (except as part of its Contributor \n"\
     " Version); or\n"\
     " .\n"\
     "           (c) under Patent Claims infringed by Covered Software in the \n"\
     " absence of its Contributions.\n"\
     " .\n"\
     "      This License does not grant any rights in the trademarks, service \n"\
     " marks, or logos of any Contributor (except as may be necessary to comply \n"\
     " with the notice requirements in Section 3.4).\n"\
     " .\n"\
     "      2.4. Subsequent Licenses\n"\
     "      No Contributor makes additional grants as a result of Your choice to \n"\
     " distribute the Covered Software under a subsequent version of this License \n"\
     " (see Section 10.2) or under the terms of a Secondary License (if permitted \n"\
     " under the terms of Section 3.3).\n"\
     " .\n"\
     "      2.5. Representation\n"\
     "      Each Contributor represents that the Contributor believes its \n"\
     " Contributions are its original creation(s) or it has sufficient rights to \n"\
     " grant the rights to its Contributions conveyed by this License.\n"\
     " .\n"\
     "      2.6. Fair Use\n"\
     "      This License is not intended to limit any rights You have under \n"\
     " applicable copyright doctrines of fair use, fair dealing, or other \n"\
     " equivalents.\n"\
     " .\n"\
     "      2.7. Conditions\n"\
     "      Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted \n"\
     " in Section 2.1.\n"\
     " .\n"\
     " 3. Responsibilities\n"\
     " .\n"\
     "      3.1. Distribution of Source Form\n"\
     "      All distribution of Covered Software in Source Code Form, including any \n"\
     " Modifications that You create or to which You contribute, must be under the \n"\
     " terms of this License. You must inform recipients that the Source Code Form \n"\
     " of the Covered Software is governed by the terms of this License, and how \n"\
     " they can obtain a copy of this License. You may not attempt to alter or \n"\
     " restrict the recipients' rights in the Source Code Form.\n"\
     " .\n"\
     "      3.2. Distribution of Executable Form\n"\
     "      If You distribute Covered Software in Executable Form then:\n"\
     " .\n"\
     "           (a) such Covered Software must also be made available in Source \n"\
     " Code Form, as described in Section 3.1, and You must inform recipients of \n"\
     " the Executable Form how they can obtain a copy of such Source Code Form by \n"\
     " reasonable means in a timely manner, at a charge no more than the cost of \n"\
     " distribution to the recipient; and\n"\
     " .\n"\
     "           (b) You may distribute such Executable Form under the terms of \n"\
     " this License, or sublicense it under different terms, provided that the \n"\
     " license for the Executable Form does not attempt to limit or alter the \n"\
     " recipients' rights in the Source Code Form under this License.\n"\
     " .\n"\
     "      3.3. Distribution of a Larger Work\n"\
     "      You may create and distribute a Larger Work under terms of Your choice, \n"\
     " provided that You also comply with the requirements of this License for the \n"\
     " Covered Software. If the Larger Work is a combination of Covered Software \n"\
     " with a work governed by one or more Secondary Licenses, and the Covered \n"\
     " Software is not Incompatible With Secondary Licenses, this License permits \n"\
     " You to additionally distribute such Covered Software under the terms of such \n"\
     " Secondary License(s), so that the recipient of the Larger Work may, at their \n"\
     " option, further distribute the Covered Software under the terms of either \n"\
     " this License or such Secondary License(s).\n"\
     " .\n"\
     "      3.4. Notices\n"\
     "      You may not remove or alter the substance of any license notices \n"\
     " (including copyright notices, patent notices, disclaimers of warranty, or \n"\
     " limitations of liability) contained within the Source Code Form of the \n"\
     " Covered Software, except that You may alter any license notices to the \n"\
     " extent required to remedy known factual inaccuracies.\n"\
     " .\n"\
     "      3.5. Application of Additional Terms\n"\
     "      You may choose to offer, and to charge a fee for, warranty, support, \n"\
     " indemnity or liability obligations to one or more recipients of Covered \n"\
     " Software. However, You may do so only on Your own behalf, and not on behalf \n"\
     " of any Contributor. You must make it absolutely clear that any such \n"\
     " warranty, support, indemnity, or liability obligation is offered by You \n"\
     " alone, and You hereby agree to indemnify every Contributor for any liability \n"\
     " incurred by such Contributor as a result of warranty, support, indemnity or \n"\
     " liability terms You offer. You may include additional disclaimers of \n"\
     " warranty and limitations of liability specific to any jurisdiction.\n"\
     " .\n"\
     " 4. Inability to Comply Due to Statute or Regulation \n"\
     " If it is impossible for You to comply with any of the terms of this License \n"\
     " with respect to some or all of the Covered Software due to statute, judicial \n"\
     " order, or regulation then You must: (a) comply with the terms of this \n"\
     " License to the maximum extent possible; and (b) describe the limitations and \n"\
     " the code they affect. Such description must be placed in a text file \n"\
     " included with all distributions of the Covered Software under this License. \n"\
     " Except to the extent prohibited by statute or regulation, such description \n"\
     " must be sufficiently detailed for a recipient of ordinary skill to be able \n"\
     " to understand it.\n"\
     " .\n"\
     " 5. Termination \n"\
     " .\n"\
     "      5.1. The rights granted under this License will terminate automatically \n"\
     " if You fail to comply with any of its terms. However, if You become \n"\
     " compliant, then the rights granted under this License from a particular \n"\
     " Contributor are reinstated (a) provisionally, unless and until such \n"\
     " Contributor explicitly and finally terminates Your grants, and (b) on an \n"\
     " ongoing basis, if such Contributor fails to notify You of the non-compliance \n"\
     " by some reasonable means prior to 60 days after You have come back into \n"\
     " compliance. Moreover, Your grants from a particular Contributor are \n"\
     " reinstated on an ongoing basis if such Contributor notifies You of the \n"\
     " non-compliance by some reasonable means, this is the first time You have \n"\
     " received notice of non-compliance with this License from such Contributor, \n"\
     " and You become compliant prior to 30 days after Your receipt of the notice.\n"\
     " .\n"\
     "      5.2. If You initiate litigation against any entity by asserting a \n"\
     " patent infringement claim (excluding declaratory judgment actions, \n"\
     " counter-claims, and cross-claims) alleging that a Contributor Version \n"\
     " directly or indirectly infringes any patent, then the rights granted to You \n"\
     " by any and all Contributors for the Covered Software under Section 2.1 of \n"\
     " this License shall terminate.\n"\
     " .\n"\
     "      5.3. In the event of termination under Sections 5.1 or 5.2 above, all \n"\
     " end user license agreements (excluding distributors and resellers) which \n"\
     " have been validly granted by You or Your distributors under this License \n"\
     " prior to termination shall survive termination.\n"\
     " .\n"\
     " 6. Disclaimer of Warranty \n"\
     " Covered Software is provided under this License on an \"as is\" basis, without \n"\
     " warranty of any kind, either expressed, implied, or statutory, including, \n"\
     " without limitation, warranties that the Covered Software is free of defects, \n"\
     " merchantable, fit for a particular purpose or non-infringing. The entire \n"\
     " risk as to the quality and performance of the Covered Software is with You. \n"\
     " Should any Covered Software prove defective in any respect, You (not any \n"\
     " Contributor) assume the cost of any necessary servicing, repair, or \n"\
     " correction. This disclaimer of warranty constitutes an essential part of \n"\
     " this License. No use of any Covered Software is authorized under this \n"\
     " License except under this disclaimer. \n"\
     " .\n"\
     " 7. Limitation of Liability \n"\
     " Under no circumstances and under no legal theory, whether tort (including \n"\
     " negligence), contract, or otherwise, shall any Contributor, or anyone who \n"\
     " distributes Covered Software as permitted above, be liable to You for any \n"\
     " direct, indirect, special, incidental, or consequential damages of any \n"\
     " character including, without limitation, damages for lost profits, loss of \n"\
     " goodwill, work stoppage, computer failure or malfunction, or any and all \n"\
     " other commercial damages or losses, even if such party shall have been \n"\
     " informed of the possibility of such damages. This limitation of liability \n"\
     " shall not apply to liability for death or personal injury resulting from \n"\
     " such party's negligence to the extent applicable law prohibits such \n"\
     " limitation. Some jurisdictions do not allow the exclusion or limitation of \n"\
     " incidental or consequential damages, so this exclusion and limitation may \n"\
     " not apply to You. \n"\
     " .\n"\
     " 8. Litigation \n"\
     " Any litigation relating to this License may be brought only in the courts of \n"\
     " a jurisdiction where the defendant maintains its principal place of business \n"\
     " and such litigation shall be governed by laws of that jurisdiction, without \n"\
     " reference to its conflict-of-law provisions. Nothing in this Section shall \n"\
     " prevent a party's ability to bring cross-claims or counter-claims.\n"\
     " .\n"\
     " 9. Miscellaneous \n"\
     " This License represents the complete agreement concerning the subject matter \n"\
     " hereof. If any provision of this License is held to be unenforceable, such \n"\
     " provision shall be reformed only to the extent necessary to make it \n"\
     " enforceable. Any law or regulation which provides that the language of a \n"\
     " contract shall be construed against the drafter shall not be used to \n"\
     " construe this License against a Contributor.\n"\
     " .\n"\
     " 10. Versions of the License \n"\
     " .\n"\
     "      10.1. New Versions\n"\
     "      Mozilla Foundation is the license steward. Except as provided in \n"\
     " Section 10.3, no one other than the license steward has the right to modify \n"\
     " or publish new versions of this License. Each version will be given a \n"\
     " distinguishing version number.\n"\
     " .\n"\
     "      10.2. Effect of New Versions\n"\
     "      You may distribute the Covered Software under the terms of the version \n"\
     " of the License under which You originally received the Covered Software, or \n"\
     " under the terms of any subsequent version published by the license steward.\n"\
     " .\n"\
     "      10.3. Modified Versions\n"\
     "      If you create software not governed by this License, and you want to \n"\
     " create a new license for such software, you may create and use a modified \n"\
     " version of this License if you rename the license and remove any references \n"\
     " to the name of the license steward (except to note that such modified \n"\
     " license differs from this License).\n"\
     " .\n"\
     "      10.4. Distributing Source Code Form that is Incompatible With Secondary \n"\
     " Licenses\n"\
     "      If You choose to distribute Source Code Form that is Incompatible With \n"\
     " Secondary Licenses under the terms of this version of the License, the \n"\
     " notice described in Exhibit B of this License must be attached.\n"\
     " .\n"\
     " Exhibit A - Source Code Form License Notice \n"\
     " .\n"\
     "      This Source Code Form is subject to the terms of the Mozilla Public \n"\
     " License, v. 2.0. If a copy of the MPL was not distributed with this file, \n"\
     " You can obtain one at http://mozilla.org/MPL/2.0/.\n"\
     " .\n"\
     " If it is not possible or desirable to put the notice in a particular file, \n"\
     " then You may include the notice in a location (such as a LICENSE file in a \n"\
     " relevant directory) where a recipient would be likely to look for such a \n"\
     " notice.\n"\
     " .\n"\
     " You may add additional accurate notices of copyright ownership.\n"\
     " .\n"\
     " Exhibit B - \"Incompatible With Secondary Licenses\" Notice \n"\
     " .\n"\
     "      This Source Code Form is \"Incompatible With Secondary Licenses\", as \n"\
     " defined by the Mozilla Public License, v. 2.0.\n"\
     " "
  return text

def textOFL10():
  text = \
     "License: OFL-1.0\n"\
     " SIL OPEN FONT LICENSE\n"\
     " .\n"\
     " Version 1.0 - 22 November 2005\n"\
     " .\n"\
     " PREAMBLE \n"\
     " .\n"\
     " The goals of the Open Font License (OFL) are to stimulate worldwide \n"\
     " development of cooperative font projects, to support the font creation \n"\
     " efforts of academic and linguistic communities, and to provide an open \n"\
     " framework in which fonts may be shared and improved in partnership with \n"\
     " others.\n"\
     " .\n"\
     " The OFL allows the licensed fonts to be used, studied, modified and \n"\
     " redistributed freely as long as they are not sold by themselves. The fonts, \n"\
     " including any derivative works, can be bundled, embedded, redistributed and \n"\
     " sold with any software provided that the font names of derivative works are \n"\
     " changed. The fonts and derivatives, however, cannot be released under any \n"\
     " other type of license.\n"\
     " .\n"\
     " DEFINITIONS \n"\
     " .\n"\
     " \"Font Software\" refers to any and all of the following:\n"\
     " .\n"\
     "      - font files \n"\
     "      - data files \n"\
     "      - source code \n"\
     "      - build scripts \n"\
     "      - documentation \n"\
     " .\n"\
     " \"Reserved Font Name\" refers to the Font Software name as seen by users and \n"\
     " any other names as specified after the copyright statement.\n"\
     " .\n"\
     " \"Standard Version\" refers to the collection of Font Software components as \n"\
     " distributed by the Copyright Holder.\n"\
     " .\n"\
     " \"Modified Version\" refers to any derivative font software made by adding to, \n"\
     " deleting, or substituting - in part or in whole -- any of the components \n"\
     " of the Standard Version, by changing formats or by porting the Font Software \n"\
     " to a new environment.\n"\
     " .\n"\
     " \"Author\" refers to any designer, engineer, programmer, technical writer or \n"\
     " other person who contributed to the Font Software.\n"\
     " .\n"\
     " PERMISSION & CONDITIONS \n"\
     " .\n"\
     " Permission is hereby granted, free of charge, to any person obtaining a copy \n"\
     " of the Font Software, to use, study, copy, merge, embed, modify, \n"\
     " redistribute, and sell modified and unmodified copies of the Font Software, \n"\
     " subject to the following conditions:\n"\
     " .\n"\
     " 1) Neither the Font Software nor any of its individual components, in \n"\
     " Standard or Modified Versions, may be sold by itself.\n"\
     " .\n"\
     " 2) Standard or Modified Versions of the Font Software may be bundled, \n"\
     " redistributed and sold with any software, provided that each copy contains \n"\
     " the above copyright notice and this license. These can be included either as \n"\
     " stand-alone text files, human-readable headers or in the appropriate \n"\
     " machine-readable metadata fields within text or binary files as long as \n"\
     " those fields can be easily viewed by the user.\n"\
     " .\n"\
     " 3) No Modified Version of the Font Software may use the Reserved Font \n"\
     " Name(s), in part or in whole, unless explicit written permission is granted \n"\
     " by the Copyright Holder. This restriction applies to all references stored \n"\
     " in the Font Software, such as the font menu name and other font description \n"\
     " fields, which are used to differentiate the font from others.\n"\
     " .\n"\
     " 4) The name(s) of the Copyright Holder or the Author(s) of the Font Software \n"\
     " shall not be used to promote, endorse or advertise any Modified Version, \n"\
     " except to acknowledge the contribution(s) of the Copyright Holder and the \n"\
     " Author(s) or with their explicit written permission.\n"\
     " .\n"\
     " 5) The Font Software, modified or unmodified, in part or in whole, must be \n"\
     " distributed using this license, and may not be distributed under any other \n"\
     " license.\n"\
     " .\n"\
     " TERMINATION \n"\
     " .\n"\
     " This license becomes null and void if any of the above conditions are not \n"\
     " met.\n"\
     " .\n"\
     " DISCLAIMER \n"\
     " .\n"\
     " THE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS \n"\
     " OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, \n"\
     " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, \n"\
     " TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE \n"\
     " FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, \n"\
     " INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF \n"\
     " CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO \n"\
     " USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.\n"\
     " "
  return text

def textOFL11():
  text = \
     "License: OFL-1.1\n"\
     " SIL OPEN FONT LICENSE\n"\
     " .\n"\
     " Version 1.1 - 26 February 2007\n"\
     " .\n"\
     " PREAMBLE \n"\
     " .\n"\
     " The goals of the Open Font License (OFL) are to stimulate worldwide \n"\
     " development of collaborative font projects, to support the font creation \n"\
     " efforts of academic and linguistic communities, and to provide a free and \n"\
     " open framework in which fonts may be shared and improved in partnership with \n"\
     " others.\n"\
     " .\n"\
     " The OFL allows the licensed fonts to be used, studied, modified and \n"\
     " redistributed freely as long as they are not sold by themselves. The fonts, \n"\
     " including any derivative works, can be bundled, embedded, redistributed \n"\
     " and/or sold with any software provided that any reserved names are not used \n"\
     " by derivative works. The fonts and derivatives, however, cannot be released \n"\
     " under any other type of license. The requirement for fonts to remain under \n"\
     " this license does not apply to any document created using the fonts or their \n"\
     " derivatives.\n"\
     " .\n"\
     " DEFINITIONS \n"\
     " .\n"\
     " \"Font Software\" refers to the set of files released by the Copyright \n"\
     " Holder(s) under this license and clearly marked as such. This may include \n"\
     " source files, build scripts and documentation.\n"\
     " .\n"\
     " \"Reserved Font Name\" refers to any names specified as such after the \n"\
     " copyright statement(s).\n"\
     " .\n"\
     " \"Original Version\" refers to the collection of Font Software components as \n"\
     " distributed by the Copyright Holder(s).\n"\
     " .\n"\
     " \"Modified Version\" refers to any derivative made by adding to, deleting, or \n"\
     " substituting - in part or in whole - any of the components of the \n"\
     " Original Version, by changing formats or by porting the Font Software to a \n"\
     " new environment.\n"\
     " .\n"\
     " \"Author\" refers to any designer, engineer, programmer, technical writer or \n"\
     " other person who contributed to the Font Software.\n"\
     " .\n"\
     " PERMISSION & CONDITIONS \n"\
     " .\n"\
     " Permission is hereby granted, free of charge, to any person obtaining a copy \n"\
     " of the Font Software, to use, study, copy, merge, embed, modify, \n"\
     " redistribute, and sell modified and unmodified copies of the Font Software, \n"\
     " subject to the following conditions:\n"\
     " .\n"\
     " 1) Neither the Font Software nor any of its individual components, in \n"\
     " Original or Modified Versions, may be sold by itself.\n"\
     " .\n"\
     " 2) Original or Modified Versions of the Font Software may be bundled, \n"\
     " redistributed and/or sold with any software, provided that each copy \n"\
     " contains the above copyright notice and this license. These can be included \n"\
     " either as stand-alone text files, human-readable headers or in the \n"\
     " appropriate machine-readable metadata fields within text or binary files as \n"\
     " long as those fields can be easily viewed by the user.\n"\
     " .\n"\
     " 3) No Modified Version of the Font Software may use the Reserved Font \n"\
     " Name(s) unless explicit written permission is granted by the corresponding \n"\
     " Copyright Holder. This restriction only applies to the primary font name as \n"\
     " presented to the users.\n"\
     " .\n"\
     " 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font \n"\
     " Software shall not be used to promote, endorse or advertise any Modified \n"\
     " Version, except to acknowledge the contribution(s) of the Copyright \n"\
     " Holder(s) and the Author(s) or with their explicit written permission.\n"\
     " .\n"\
     " 5) The Font Software, modified or unmodified, in part or in whole, must be \n"\
     " distributed entirely under this license, and must not be distributed under \n"\
     " any other license. The requirement for fonts to remain under this license \n"\
     " does not apply to any document created using the Font Software.\n"\
     " .\n"\
     " TERMINATION \n"\
     " .\n"\
     " This license becomes null and void if any of the above conditions are not \n"\
     " met.\n"\
     " .\n"\
     " DISCLAIMER \n"\
     " .\n"\
     " THE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS \n"\
     " OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, \n"\
     " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, \n"\
     " TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE \n"\
     " FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, \n"\
     " INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF \n"\
     " CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO \n"\
     " USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.\n"\
     " "
  return text

def textZlib():
  text = \
     "License: Zlib\n"\
     " zlib License\n"\
     " .\n"\
     " This software is provided 'as-is', without any express or implied warranty.  \n"\
     " In no event will the authors be held liable for any damages arising from the \n"\
     " use of this software.\n"\
     " .\n"\
     " Permission is granted to anyone to use this software for any purpose, \n"\
     " including commercial applications, and to alter it and redistribute it \n"\
     " freely, subject to the following restrictions:\n"\
     " .\n"\
     "      1. The origin of this software must not be misrepresented; you must not \n"\
     " claim that you wrote the original software. If you use this software in a \n"\
     " product, an acknowledgment in the product documentation would be appreciated \n"\
     " but is not required.\n"\
     " .\n"\
     "      2. Altered source versions must be plainly marked as such, and must not \n"\
     " be misrepresented as being the original software.\n"\
     " .\n"\
     "      3. This notice may not be removed or altered from any source \n"\
     " distribution.\n"\
     " "
  return text


def textNONE():
  text = "http://licapi.debian.net/template/Apache-2\n"\
         "http://licapi.debian.net/template/Artistic-2.0\n"\
         "http://licapi.debian.net/template/BSL-1.0\n"\
         "http://licapi.debian.net/template/CC0\n"\
         "http://licapi.debian.net/template/CC-BY-3.0\n"\
         "http://licapi.debian.net/template/CC-BY-4.0\n"\
         "http://licapi.debian.net/template/CC-BY-SA-3.0\n"\
         "http://licapi.debian.net/template/CC-BY-SA-4.0\n"\
         "http://licapi.debian.net/template/Cygwin\n"\
         "http://licapi.debian.net/template/EPL-1.0\n"\
         "http://licapi.debian.net/template/Expat\n"\
         "http://licapi.debian.net/template/GPL-2\n"\
         "http://licapi.debian.net/template/GPL-2+\n"\
         "http://licapi.debian.net/template/GPL-3\n"\
         "http://licapi.debian.net/template/GPL-3+\n"\
         "http://licapi.debian.net/template/ISC\n"\
         "http://licapi.debian.net/template/LGPL-2\n"\
         "http://licapi.debian.net/template/LGPL-2+\n"\
         "http://licapi.debian.net/template/LGPL-2.1\n"\
         "http://licapi.debian.net/template/LGPL-2.1+\n"\
         "http://licapi.debian.net/template/LGPL-3\n"\
         "http://licapi.debian.net/template/LGPL-3+\n"\
         "http://licapi.debian.net/template/LPPL-1.2\n"\
         "http://licapi.debian.net/template/LPPL-1.3a\n"\
         "http://licapi.debian.net/template/LPPL-1.3c\n"\
         "http://licapi.debian.net/template/MPL-1.0\n"\
         "http://licapi.debian.net/template/MPL-1.1\n"\
         "http://licapi.debian.net/template/MPL-2.0\n"\
         "http://licapi.debian.net/template/OFL-1.0\n"\
         "http://licapi.debian.net/template/OFL-1.1\n"\
         "http://licapi.debian.net/template/Zlib\n"\
         "eol\n"
  return text

@bottle.route('/template')
@bottle.route('/template/')
@bottle.route('/template/<template>')
def template(template=None):
    """
    Gives information about a single license.

    @type template: string
    @param template: Name of the template.
    @see: L{I{suites}<dakweb.queries.suite.suites>} on how to receive a list of valid suites.

    @rtype: string
    @return: A license text for debian/copyright

    """

    text = textNONE()

    if template is not None:
      templateLower=template.lower()

      if templateLower == "apache-2" or templateLower == "apache2":
         text = textApache2()

      if templateLower == "artistic-2" or templateLower == "artistic-2.0" or templateLower == "artistic2":
         text = textArtistic20()

      if templateLower == "bsl-1" or templateLower == "bsl-1.0" or templateLower == "bsl1":
         text = textBSL10()

      if templateLower == "cc0":
         text = textCC0()

      if templateLower == "cc-by-3.0" or templateLower == "cc-by-3" or templateLower == "ccby3":
         text = textCCBY30()

      if templateLower == "cc-by-4.0" or templateLower == "cc-by-4" or templateLower == "ccby4":
         text = textCCBY40()

      if templateLower == "cc-by-sa-3.0" or templateLower == "cc-by-sa-3" or templateLower == "ccbysa3":
         text = textCCBYSA30()

      if templateLower == "cc-by-sa-4.0" or templateLower == "cc-by-sa-4" or templateLower == "ccbysa4":
         text = textCCBYSA40()

      if templateLower == "cygwin":
         text = textCygwin()

      if templateLower == "epl-1" or templateLower == "epl-1.0" or templateLower == "epl":
         text = textEPL()

      if templateLower == "expat":
         text = textExpat()

      if templateLower == "gpl2" or templateLower == "gpl-2":
         text = textGPL2()

      if templateLower == "gpl2+" or templateLower == "gpl-2+":
         text = textGPL2plus()

      if templateLower == "gpl3" or templateLower == "gpl-3":
         text = textGPL3()

      if templateLower == "gpl3+" or templateLower == "gpl-3+":
         text = textGPL3plus()

      if templateLower == "isc":
         text = textISC()

      if templateLower == "lgpl2" or templateLower == "lgpl-2":
         text = textLGPL2()

      if templateLower == "lgpl2+" or templateLower == "lgpl-2+":
         text = textLGPL2plus()

      if templateLower == "lgpl2.1" or templateLower == "lgpl-2.1":
         text = textLGPL21()

      if templateLower == "lgpl2.1+" or templateLower == "lgpl-2.1+":
         text = textLGPL21plus()

      if templateLower == "lgpl3" or templateLower == "lgpl-3":
         text = textLGPL3()

      if templateLower == "lgpl3+" or templateLower == "lgpl-3+":
         text = textLGPL3plus()

      if templateLower == "lppl-1.2" or templateLower == "lppl1.2":
         text = textLPPL12()

      if templateLower == "lppl-1.3a" or templateLower == "lppl1.3a":
         text = textLPPL13a()

      if templateLower == "lppl-1.3c" or templateLower == "lppl1.3c":
         text = textLPPL13c()

      if templateLower == "mpl1.0" or templateLower == "mpl-1.0":
         text = textMPL10()

      if templateLower == "mpl1.1" or templateLower == "mpl-1.1":
         text = textMPL11()

      if templateLower == "mpl2.0" or templateLower == "mpl-2.0":
         text = textMPL20()

      if templateLower == "ofl1.0" or templateLower == "ofl-1.0":
         text = textOFL10()

      if templateLower == "ofl1.1" or templateLower == "ofl-1.1":
         text = textOFL11()

      if templateLower == "zlib":
         text = textZlib()

    text = "\n\n" + text + "\n\n"

    return text

QueryRegister().register_path('/template', template)

