修改为东南天坐标系
This commit is contained in:
@@ -0,0 +1 @@
|
||||
pip
|
||||
@@ -0,0 +1,354 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: python-iso639
|
||||
Version: 2025.11.16
|
||||
Summary: ISO 639 language codes, names, and other associated information
|
||||
Author-email: "Jackson L. Lee" <jacksonlunlee@gmail.com>
|
||||
License: Apache 2.0
|
||||
Project-URL: Source, https://github.com/jacksonllee/iso639
|
||||
Keywords: ISO 639,language codes,languages,linguistics
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: Intended Audience :: Education
|
||||
Classifier: Intended Audience :: Information Technology
|
||||
Classifier: Intended Audience :: Science/Research
|
||||
Classifier: License :: OSI Approved :: Apache Software License
|
||||
Classifier: Operating System :: OS Independent
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3 :: Only
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Classifier: Programming Language :: Python :: 3.12
|
||||
Classifier: Programming Language :: Python :: 3.13
|
||||
Classifier: Programming Language :: Python :: 3.14
|
||||
Classifier: Topic :: Text Processing
|
||||
Classifier: Topic :: Text Processing :: General
|
||||
Classifier: Topic :: Text Processing :: Indexing
|
||||
Classifier: Topic :: Text Processing :: Linguistic
|
||||
Requires-Python: >=3.10
|
||||
Description-Content-Type: text/markdown
|
||||
License-File: LICENSE.txt
|
||||
Provides-Extra: dev
|
||||
Requires-Dist: black==25.11.0; extra == "dev"
|
||||
Requires-Dist: build==1.3.0; extra == "dev"
|
||||
Requires-Dist: flake8==7.3.0; extra == "dev"
|
||||
Requires-Dist: mypy==1.18.2; extra == "dev"
|
||||
Requires-Dist: pytest==9.0.0; extra == "dev"
|
||||
Requires-Dist: requests==2.32.5; extra == "dev"
|
||||
Requires-Dist: twine==6.2.0; extra == "dev"
|
||||
Dynamic: license-file
|
||||
|
||||
# python-iso639
|
||||
|
||||
[](https://pypi.org/project/python-iso639/)
|
||||
[](https://pypi.org/project/python-iso639/)
|
||||
[](https://pypi.org/project/python-iso639/)
|
||||
[](https://circleci.com/gh/jacksonllee/iso639)
|
||||
|
||||
`python-iso639` is a Python package for ISO 639 language codes, names, and
|
||||
other associated information.
|
||||
|
||||
Current features:
|
||||
|
||||
* 🌐 A representation of languages mapped across ISO 639-1, 639-2, and 639-3.
|
||||
* 🔎 Functionality to "guess" what a language is for a given
|
||||
unknown language code or name.
|
||||
* 🚀 Optimized for speed in retrieving language information.
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
pip install python-iso639
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
`python-iso639` revolves around a `Language` class.
|
||||
Instances of `Language` have attributes and methods that you will find useful.
|
||||
|
||||
Note that while the package name registered on PyPI is `python-iso639`,
|
||||
the actual import name during runtime is `iso639`
|
||||
(which means you should do `import iso639` in your Python code).
|
||||
|
||||
### Creating `Language` Instances
|
||||
|
||||
Create a `Language` instance by one of the class methods.
|
||||
|
||||
#### `from_part3`, with an ISO 639-3 code
|
||||
|
||||
```python
|
||||
>>> import iso639
|
||||
>>> lang1 = iso639.Language.from_part3('fra')
|
||||
>>> type(lang1)
|
||||
<class 'iso639.language.Language'>
|
||||
>>> lang1
|
||||
Language(part3='fra', part2b='fre', part2t='fra', part1='fr', scope='I', type='L', name='French', comment=None, other_names=None, macrolanguage=None, retire_reason=None, retire_change_to=None, retire_remedy=None, retire_date=None)
|
||||
```
|
||||
|
||||
Fast object instantiation for retrieving language information (run on Python 3.13, macOS 15.3.1, Apple M1 Pro)
|
||||
|
||||
```python
|
||||
In [1]: import iso639
|
||||
|
||||
In [2]: %timeit iso639.Language.from_part3("fra")
|
||||
217 ns ± 0.139 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 loops each)
|
||||
```
|
||||
|
||||
#### From Another ISO 639 Code Set or a Reference Name
|
||||
|
||||
```python
|
||||
>>> lang2 = iso639.Language.from_part2b('fre') # ISO 639-2 (bibliographic)
|
||||
>>> lang3 = iso639.Language.from_part2t('fra') # ISO 639-2 (terminological)
|
||||
>>> lang4 = iso639.Language.from_part1('fr') # ISO 639-1
|
||||
>>> lang5 = iso639.Language.from_name('French') # ISO 639-3 reference language name
|
||||
```
|
||||
|
||||
#### A `LanguageNotFoundError` is Raised for Invalid Inputs
|
||||
|
||||
```python
|
||||
>>> iso639.Language.from_part3('Fra') # The user input is case-sensitive!
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in <module>
|
||||
LanguageNotFoundError: 'Fra' isn't an ISO language code or name
|
||||
>>>
|
||||
>>> iso639.Language.from_name("unknown language")
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in <module>
|
||||
LanguageNotFoundError: 'unknown language' isn't an ISO language code or name
|
||||
```
|
||||
|
||||
### Accessing Attributes
|
||||
|
||||
```python
|
||||
>>> lang1
|
||||
Language(part3='fra', part2b='fre', part2t='fra', part1='fr', scope='I', type='L', name='French', comment=None, other_names=None, macrolanguage=None, retire_reason=None, retire_change_to=None, retire_remedy=None, retire_date=None)
|
||||
>>> lang1.part3
|
||||
'fra'
|
||||
>>> lang1.name
|
||||
'French'
|
||||
```
|
||||
|
||||
### Comparison
|
||||
|
||||
```python
|
||||
>>> lang1 == lang2 == lang3 == lang4 == lang5 # All are French
|
||||
True
|
||||
>>> lang6 = iso639.Language.from_part3('spa') # Spanish
|
||||
>>> lang1 == lang6 # French vs. Spanish
|
||||
False
|
||||
>>> 'French' == lang1.name == lang2.name == lang3.name == lang4.name == lang5.name
|
||||
True
|
||||
>>> lang6.name
|
||||
'Spanish'
|
||||
```
|
||||
|
||||
### Guess a Language: Classmethod `match`
|
||||
|
||||
You don't know which code set or name your input is from?
|
||||
Use the `match` classmethod:
|
||||
|
||||
```python
|
||||
>>> lang1 = iso639.Language.match('fra')
|
||||
>>> lang2 = iso639.Language.match('fre')
|
||||
>>> lang3 = iso639.Language.match('fr')
|
||||
>>> lang4 = iso639.Language.match('French')
|
||||
>>> lang1 == lang2 == lang3 == lang4
|
||||
True
|
||||
```
|
||||
|
||||
By default, the classmethod `match` is case-sensitive.
|
||||
To ignore case instead, pass in `strict_case=False`:
|
||||
|
||||
```python
|
||||
>>> lang5 = iso639.Language.match('FRA', strict_case=False)
|
||||
>>> lang6 = iso639.Language.match('french', strict_case=False)
|
||||
>>> lang4 == lang5 == lang6
|
||||
True
|
||||
>>> iso639.Language.match("french")
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in <module>
|
||||
LanguageNotFoundError: 'french' isn't an ISO language code or name
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> Depending on your use case, ignoring case could potentially lead to matching issues,
|
||||
where a language code might match an unintended language name (or vice versa),
|
||||
e.g., conflating "igo" and "Igo", while there exist the ISO 639-3 code `ahl` for Igo and
|
||||
the ISO 639-3 code `igo` for Isebe.
|
||||
|
||||
The classmethod `match` is particularly useful for consistently
|
||||
accessing a specific attribute from unknown inputs, e.g., the ISO 639-3 code.
|
||||
|
||||
```python
|
||||
>>> 'fra' == lang1.part3 == lang2.part3 == lang3.part3 == lang4.part3 == lang5.part3 == lang6.part3 == lang7.part3
|
||||
True
|
||||
```
|
||||
|
||||
If there's no match, a `LanguageNotFoundError` is raised,
|
||||
which you may want to catch:
|
||||
|
||||
```python
|
||||
>>> try:
|
||||
... lang = iso639.Language.match('not gonna find a match')
|
||||
... except iso639.LanguageNotFoundError:
|
||||
... print("no match found!")
|
||||
...
|
||||
no match found!
|
||||
```
|
||||
|
||||
### Macrolanguages and Alternative Names
|
||||
|
||||
```python
|
||||
>>> language = iso639.Language.match('yue')
|
||||
>>> language.name
|
||||
'Yue Chinese' # also commonly known as Cantonese
|
||||
>>> language.macrolanguage
|
||||
'zho' # Chinese
|
||||
>>> language.other_names
|
||||
[Name(print='Yue Chinese', inverted='Chinese, Yue')]
|
||||
>>> for name in language.other_names:
|
||||
... print(f'{name.print} | {name.inverted}')
|
||||
...
|
||||
Yue Chinese | Chinese, Yue
|
||||
```
|
||||
|
||||
### Retired Language Codes:
|
||||
|
||||
```python
|
||||
>>> language = iso639.Language.match('bvs')
|
||||
>>> language.part3
|
||||
'bvs'
|
||||
>>> language.name
|
||||
'Belgian Sign Language'
|
||||
>>> language.status
|
||||
'R' # (R)etired
|
||||
>>> language.retire_reason
|
||||
'S' # (S)plit
|
||||
>>> language.retire_change_to is None
|
||||
True
|
||||
>>> language.retire_remedy
|
||||
'Split into Langue des signes de Belgique Francophone [sfb], and Vlaamse Gebarentaal [vgt]'
|
||||
>>> language.retire_date
|
||||
datetime.date(2007, 7, 18)
|
||||
```
|
||||
|
||||
## Into the Weeds
|
||||
|
||||
### Attributes of a `Language` Instance
|
||||
|
||||
A `Language` instance has the following attributes:
|
||||
|
||||
| Attribute | Data type | Can it be `None`? | Description |
|
||||
|--------------------|-----------------|-------------------|-----------------------------------------------------------------------------------------------------------------------|
|
||||
| `part3` | `str` | ✗ | ISO 639-3 code |
|
||||
| `part2b` | `str` | ✓ | ISO 639-2 code (bibliographic) |
|
||||
| `part2t` | `str` | ✓ | ISO 639-2 code (terminological) |
|
||||
| `part1` | `str` | ✓ | ISO 639-1 code |
|
||||
| `scope` | `str` | ✗ | One of {(I)ndividual, (M)acrolanguage, (S)pecial} |
|
||||
| `type` | `str` | ✓ | One of {(A)ncient, (C)onstructed, (E)xtinct, (H)istorical, (L)iving, (S)pecial} [1] |
|
||||
| `status` | `str` | ✗ | One of {(A)ctive, (R)etired}, describing the ISO 639-3 code |
|
||||
| `name` | `str` | ✗ | Reference language name in ISO 639-3 |
|
||||
| `comment` | `str` | ✓ | Comment from ISO 639-3 |
|
||||
| `other_names` | `List[Name]` | ✓ | Other print and inverted names [2] |
|
||||
| `macrolanguage` | `str` | ✓ | Macrolanguage |
|
||||
| `retire_reason` | `str` | ✓ | Retirement reason, one of {(C)hange, (D)uplicate, (N)on-existent, (S)plit, (M)erge} |
|
||||
| `retire_change_to` | `str` | ✓ | ISO 639-3 code to which this language can be changed, if retirement reason is one of {(C)hange, (D)uplicate, (M)erge} |
|
||||
| `retire_remedy` | `str` | ✓ | Instructions for updating this retired language code |
|
||||
| `retire_date` | `datetime.date` | ✓ | The date the retirement became effective |
|
||||
|
||||
[1] If the ISO 639-3 code is retired, then the `type` attribute is `None`,
|
||||
because its value is not clearly discernible from the SIL data source.
|
||||
|
||||
[2] A `Name` instance has the attributes `print` and `inverted`,
|
||||
for the print name and inverted name, respectively.
|
||||
If reference name, print name, and inverted name are all the same, then
|
||||
that particular (print name, inverted name) pair is excluded from
|
||||
the `other_names` attribute.
|
||||
For example, for Spanish (ISO 639-3: spa), one (print name, inverted name)
|
||||
pair is (Spanish, Spanish) from the SIL data source, but this pair is
|
||||
excluded from its list of `other_names`.
|
||||
|
||||
### How `Language.match` Matches the Language
|
||||
|
||||
At a high level, `Language.match` assumes the input is more likely to be
|
||||
a language code rather than a language name.
|
||||
Beyond that, the precise order in matching is as follows:
|
||||
|
||||
* ISO 639-3 codes (among the active codes)
|
||||
* ISO 639-2 (bibliographic) codes
|
||||
* ISO 639-2 (terminological) codes
|
||||
* ISO 639-1 codes
|
||||
* ISO 639-3 codes (among the retired codes)
|
||||
* ISO 639-3 reference language names
|
||||
* ISO 639-3 alternative language names (the "print" ones)
|
||||
* ISO 639-3 alternative language names (the "inverted" ones)
|
||||
|
||||
As soon as a match is found, `Language.match` returns a `Language` instance.
|
||||
If there isn't a match, a `LanguageNotFoundError` is raised.
|
||||
|
||||
### `Language` is a dataclass
|
||||
|
||||
The `Language` class is a dataclass.
|
||||
All functionality of
|
||||
[dataclasses](https://docs.python.org/3/library/dataclasses.html)
|
||||
applies to `Language` and its instances,
|
||||
e.g., [`dataclasses.asdict`](https://docs.python.org/3/library/dataclasses.html#dataclasses.asdict):
|
||||
|
||||
```python
|
||||
>>> import dataclasses, iso639
|
||||
>>> language = iso639.Language.match('fra')
|
||||
>>> dataclasses.asdict(language)
|
||||
{'part3': 'fra', 'part2b': 'fre', 'part2t': 'fra', 'part1': 'fr', 'scope': 'I', 'type': 'L', 'status': 'A', 'name': 'French', 'comment': None, 'other_names': None, 'macrolanguage': None, 'retire_reason': None, 'retire_change_to': None, 'retire_remedy': None, 'retire_date': None}
|
||||
```
|
||||
|
||||
### Constants
|
||||
|
||||
* `DATA_LAST_UPDATED`: The release date of the included language code data from SIL
|
||||
|
||||
```python
|
||||
>>> import iso639
|
||||
>>> iso639.DATA_LAST_UPDATED
|
||||
datetime.date(2025, 10, 15)
|
||||
```
|
||||
|
||||
* `ALL_LANGUAGES`: The list of all `Language` objects based on the included language code data
|
||||
|
||||
```python
|
||||
>>> import iso639
|
||||
>>> type(iso639.ALL_LANGUAGES)
|
||||
<class 'set'>
|
||||
>>> len(iso639.ALL_LANGUAGES)
|
||||
8311
|
||||
```
|
||||
|
||||
## Links
|
||||
|
||||
* Author: [Jackson L. Lee](https://jacksonllee.com)
|
||||
* Source code: https://github.com/jacksonllee/iso639
|
||||
|
||||
## License and Data Source
|
||||
|
||||
The `python-iso639` code is released under an Apache 2.0 license.
|
||||
Please see [LICENSE.txt](https://github.com/jacksonllee/iso639/blob/main/LICENSE.txt)
|
||||
for details.
|
||||
|
||||
The data source that backs this package is the
|
||||
[language code tables published by SIL](https://iso639-3.sil.org/code_tables/download_tables).
|
||||
The tables are included in this package under [`src/iso639/_data/`](src/iso639/_data/).
|
||||
They are the UTF8-encoded `*.tab` tab-separated files bundled as a ZIP archive file,
|
||||
typically found at a URL that looks like
|
||||
`https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3_Code_Tables_YYYYMMDD.zip`
|
||||
(replace `YYYYMMDD` with the data release date).
|
||||
Note that SIL resources have their [terms of use](https://www.sil.org/terms-use).
|
||||
|
||||
## Why Another ISO 639 Package?
|
||||
|
||||
Both packages [iso639](https://pypi.org/project/iso639/)
|
||||
and [iso-639](https://pypi.org/project/iso-639/) exist on PyPI.
|
||||
However, as of this writing (May 2022), they were last updated in 2016 and don't seem to be maintained anymore
|
||||
for updating the language codes.
|
||||
[pycountry](https://pypi.org/project/pycountry/) is a great package,
|
||||
but what if you want a more lightweight package with just the language codes only and not the other stuff? :-)
|
||||
|
||||
If you ever notice that the upstream ISO 639-3 tables from SIL have been updated
|
||||
and yet this package isn't using the latest data,
|
||||
please ping me by [opening a GitHub issue](https://github.com/jacksonllee/iso639/issues).
|
||||
@@ -0,0 +1,17 @@
|
||||
iso639/__init__.py,sha256=OPTtHt1eXadTfFSmnVMQox0-N9IX_lTOO72Ge22Rzyg,622
|
||||
iso639/__pycache__/__init__.cpython-313.pyc,,
|
||||
iso639/__pycache__/language.cpython-313.pyc,,
|
||||
iso639/_data/__init__.py,sha256=3f80Ta1wNDk_JqvxrGG4rCldDaWaR_wbgZ_nmZnvZhA,3323
|
||||
iso639/_data/__pycache__/__init__.cpython-313.pyc,,
|
||||
iso639/_data/iso-639-3-macrolanguages.tab,sha256=-wGoY3bZwav8ltFr4bbc_7R3ah9S-iIzjUl56f_hgi8,4609
|
||||
iso639/_data/iso-639-3.tab,sha256=vgtk1cJdVUwDkE-xhQKmv44BHruVdskrHK-VzNoen_o,178323
|
||||
iso639/_data/iso-639-3_Name_Index.tab,sha256=Be4dakckcpHCYjq_YoAr1cxjl48v8eVqW1-fBlQxxYs,204059
|
||||
iso639/_data/iso-639-3_Retirements.tab,sha256=oKqB9rsW0l3xI5xeTWKYTTtTesrtG4bqgSefcYcLLq8,18981
|
||||
iso639/language.py,sha256=pxnmZWc9LThILAEGg1PIUjKs2jgmT-J7cniwNBA4mXE,11685
|
||||
iso639/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
python_iso639-2025.11.16.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
python_iso639-2025.11.16.dist-info/METADATA,sha256=BvXxQhAfP7kFCFddzxkQPbLGRHvcuHIIjdWRAGjNEV4,15046
|
||||
python_iso639-2025.11.16.dist-info/RECORD,,
|
||||
python_iso639-2025.11.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
||||
python_iso639-2025.11.16.dist-info/licenses/LICENSE.txt,sha256=hB5sfn89vpI1ZSlA7v0NGUdXExdrPgOyMhwOV-K_tpI,10759
|
||||
python_iso639-2025.11.16.dist-info/top_level.txt,sha256=phLVuJxujEeJhkT0hgTMQiSvs3UVIIwVHW4lbuJdCb0,7
|
||||
@@ -0,0 +1,5 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: setuptools (80.9.0)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
|
||||
@@ -0,0 +1,190 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
Copyright 2022 Jackson L. Lee
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@@ -0,0 +1 @@
|
||||
iso639
|
||||
Reference in New Issue
Block a user