* Version 0.0.1 released.
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1715100820.0
langtable-0.0.68/MANIFEST.in 0000644 0023456 0023456 00000000330 14616456224 015134 0 ustar 00mfabian mfabian include README.html
include README.md
include README
include unicode-license.txt
include COPYING
include ChangeLog
include Makefile
include MANIFEST.in
include test_cases.py
include main.py
recursive-include tools *
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1721118960.0
langtable-0.0.68/Makefile 0000644 0023456 0023456 00000006034 14645430360 015040 0 ustar 00mfabian mfabian DESTDIR=/usr
DATADIR=$(DESTDIR)/share/langtable/
DEBUG=
PWD := $(shell pwd)
SRCDIR=$(PWD)
.PHONY: gzip
gzip: langtable/data/keyboards.xml.gz langtable/data/languages.xml.gz langtable/data/territories.xml.gz langtable/data/timezones.xml.gz langtable/data/timezoneidparts.xml.gz
.PHONY: test
test: gzip
python3 langtable/langtable.py
python3 test_cases.py
xmllint --noout --relaxng langtable/schemas/keyboards.rng langtable/data/keyboards.xml.gz
xmllint --noout --relaxng langtable/schemas/languages.rng langtable/data/languages.xml.gz
xmllint --noout --relaxng langtable/schemas/territories.rng langtable/data/territories.xml.gz
xmllint --noout --relaxng langtable/schemas/timezones.rng langtable/data/timezones.xml.gz
xmllint --noout --relaxng langtable/schemas/timezoneidparts.rng langtable/data/timezoneidparts.xml.gz
.PHONY: check
check: test
.PHONY: dist
dist: gzip
DISTUTILS_DEBUG=$(DEBUG) python3 ./setup.py sdist bdist_wheel
.PHONY: install
install: dist
perl -pi -e "s,_datadir = '(.*)',_DATADIR = '$(DATADIR)'," langtable/langtable.py
DISTUTILS_DEBUG=$(DEBUG) python3 ./setup.py install --prefix=$(DESTDIR)
# DISTUTILS_DEBUG=$(DEBUG) python3 ./setup.py install_data --install-dir=$(DATADIR)
.PHONY: twine-check
twine-check: dist
twine check dist/*
# check it here: https://test.pypi.org/manage/project/langtable/releases/
.PHONY: twine-upload-test
twine-upload-test: dist
python3 -m twine upload --verbose --repository testpypi dist/*
# check it here: https://pypi.org/manage/project/langtable/releases/
.PHONY: twine-upload
twine-upload: dist
python3 -m twine upload --verbose --repository pypi dist/*
.PHONY: pip-install-test
pip-install-test:
(cd /tmp; python3 -m pip install --user --ignore-installed --no-cache-dir --index-url https://test.pypi.org/simple/ --no-deps langtable)
.PHONY: pip-install
pip-install:
(cd /tmp; python3 -m pip install --user --ignore-installed --no-cache-dir --no-deps langtable)
.PHONY: pip-uninstall
pip-uninstall:
pip uninstall langtable
.PHONY: clean
clean:
git clean -dxf
MOCK_CONFIG=fedora-rawhide-x86_64
.PHONY: mockbuild
mockbuild: dist
mkdir -p ./mockbuild-results/
mock --root $(MOCK_CONFIG) --buildsrpm --spec langtable.spec --sources ./dist/
cp /var/lib/mock/$(MOCK_CONFIG)/result/* ./mockbuild-results
mock --root $(MOCK_CONFIG) --rebuild ./mockbuild-results/*.src.rpm
cp /var/lib/mock/$(MOCK_CONFIG)/result/* ./mockbuild-results
.PHONY: review
review: mockbuild
cp *.spec ./mockbuild-results/
(cd ./mockbuild-results/; fedora-review -n langtable -m $(MOCK_CONFIG) )
%.xml.gz: %.xml
gzip --keep --force --best $< $@
# .rnc files for editing with Emacs
# https://fedoraproject.org/wiki/How_to_use_Emacs_for_XML_editing
%.rnc: %.rng
trang $< $@
rnc: schemas/keyboards.rnc schemas/languages.rnc schemas/territories.rnc schemas/timezones.rnc schemas/timezoneidparts.rnc
cp schemas/*.rnc data/
README: README.html
w3m -cols 78 -o display_borders=1 -o display_link_number=1 $< > $@
README.html: README.md
pandoc -f gfm -t html --standalone --self-contained --metadata pagetitle="langtable README" $< > $@
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1721225653.8430462
langtable-0.0.68/PKG-INFO 0000644 0023456 0023456 00000005076 14645750666 014520 0 ustar 00mfabian mfabian Metadata-Version: 2.1
Name: langtable
Version: 0.0.68
Summary: guess reasonable defaults for locale, keyboard, territory, ...
Home-page: https://github.com/mike-fabian/langtable
Author: Mike FABIAN
Author-email: mfabian@redhat.com
License: GPL-3.0-or-later
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Topic :: System :: Installation/Setup
Description-Content-Type: text/markdown
License-File: COPYING
# langtable
[](https://badge.fury.io/py/langtable)
Guessing reasonable defaults for locale, keyboard layout, territory, and language.
## Purpose of this package
_langtable_ is used to guess reasonable defaults for locale, keyboard, territory, …, if part of that information is already known. For example, guess the territory and the keyboard layout if the language is known or guess the language and keyboard layout if the territory is already known.
## License
GPLv3+, see the included file “COPYING”.
Translations for languages and territory names are from CLDR which is governed by the Unicode Terms of Use, see the included file “unicode-license.txt”. The short name for this Unicode license is “MIT”. See:
https://fedoraproject.org/wiki/Licensing:MIT?rd=Licensing/MIT#Modern_Style_without_sublicense_.28Unicode.29
## Installation
To install langtable, run
```
make install DESTDIR=/usr
```
To create a distribution tarball run
```
make dist
```
To run the test cases in the source directory:
```
make check
```
## How to use it
```
import langtable
```
Functions in the public API:
```
parse_locale()
list_locales()
list_keyboards()
list_common_languages()
list_common_locales()
list_common_keyboards()
list_consolefonts()
list_inputmethods()
list_timezones()
list_scripts()
language_name()
territory_name()
timezone_name()
languageId()
territoryId()
supports_ascii()
list_all_languages()
list_all_locales()
list_all_keyboards()
list_all_territories()
list_all_timezones()
list_all_scripts()
list_all_input_methods()
list_all_console_fonts()
```
Some examples to show the usage are found in the documentation of the public functions in `langtable.py`.
Some more examples are in the test cases in the file `test_cases.py`.
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1715100820.0
langtable-0.0.68/README 0000644 0023456 0023456 00000003700 14616456224 014262 0 ustar 00mfabian mfabian langtable
[1]PyPI version
Guessing reasonable defaults for locale, keyboard layout, territory, and
language.
Purpose of this package
langtable is used to guess reasonable defaults for locale, keyboard,
territory, …, if part of that information is already known. For example,
guess the territory and the keyboard layout if the language is known or guess
the language and keyboard layout if the territory is already known.
License
GPLv3+, see the included file “COPYING”.
Translations for languages and territory names are from CLDR which is
governed by the Unicode Terms of Use, see the included file
“unicode-license.txt”. The short name for this Unicode license is “MIT”. See:
[2]https://fedoraproject.org/wiki/Licensing:MIT?rd=Licensing/MIT#
Modern_Style_without_sublicense_.28Unicode.29
Installation
To install langtable, run
make install DESTDIR=/usr
To create a distribution tarball run
make dist
To run the test cases in the source directory:
make check
How to use it
import langtable
Functions in the public API:
parse_locale()
list_locales()
list_keyboards()
list_common_languages()
list_common_locales()
list_common_keyboards()
list_consolefonts()
list_inputmethods()
list_timezones()
list_scripts()
language_name()
territory_name()
timezone_name()
languageId()
territoryId()
supports_ascii()
list_all_languages()
list_all_locales()
list_all_keyboards()
list_all_territories()
list_all_timezones()
list_all_scripts()
list_all_input_methods()
list_all_console_fonts()
Some examples to show the usage are found in the documentation of the public
functions in langtable.py.
Some more examples are in the test cases in the file test_cases.py.
References:
[1] https://badge.fury.io/py/langtable
[2] https://fedoraproject.org/wiki/Licensing:MIT?rd=Licensing/MIT#Modern_Style_without_sublicense_.28Unicode.29
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1715100820.0
langtable-0.0.68/README.html 0000644 0023456 0023456 00000112025 14616456224 015226 0 ustar 00mfabian mfabian
langtable README
langtable

Guessing reasonable defaults for locale, keyboard layout, territory,
and language.
Purpose of this package
langtable is used to guess reasonable defaults for locale,
keyboard, territory, …, if part of that information is already known.
For example, guess the territory and the keyboard layout if the language
is known or guess the language and keyboard layout if the territory is
already known.
License
GPLv3+, see the included file “COPYING”.
Translations for languages and territory names are from CLDR which is
governed by the Unicode Terms of Use, see the included file
“unicode-license.txt”. The short name for this Unicode license is “MIT”.
See:
https://fedoraproject.org/wiki/Licensing:MIT?rd=Licensing/MIT#Modern_Style_without_sublicense_.28Unicode.29
Installation
To install langtable, run
make install DESTDIR=/usr
To create a distribution tarball run
make dist
To run the test cases in the source directory:
make check
How to use it
import langtable
Functions in the public API:
parse_locale()
list_locales()
list_keyboards()
list_common_languages()
list_common_locales()
list_common_keyboards()
list_consolefonts()
list_inputmethods()
list_timezones()
list_scripts()
language_name()
territory_name()
timezone_name()
languageId()
territoryId()
supports_ascii()
list_all_languages()
list_all_locales()
list_all_keyboards()
list_all_territories()
list_all_timezones()
list_all_scripts()
list_all_input_methods()
list_all_console_fonts()
Some examples to show the usage are found in the documentation of the
public functions in langtable.py
.
Some more examples are in the test cases in the file
test_cases.py
.
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1715100820.0
langtable-0.0.68/README.md 0000644 0023456 0023456 00000003634 14616456224 014667 0 ustar 00mfabian mfabian # langtable
[](https://badge.fury.io/py/langtable)
Guessing reasonable defaults for locale, keyboard layout, territory, and language.
## Purpose of this package
_langtable_ is used to guess reasonable defaults for locale, keyboard, territory, …, if part of that information is already known. For example, guess the territory and the keyboard layout if the language is known or guess the language and keyboard layout if the territory is already known.
## License
GPLv3+, see the included file “COPYING”.
Translations for languages and territory names are from CLDR which is governed by the Unicode Terms of Use, see the included file “unicode-license.txt”. The short name for this Unicode license is “MIT”. See:
https://fedoraproject.org/wiki/Licensing:MIT?rd=Licensing/MIT#Modern_Style_without_sublicense_.28Unicode.29
## Installation
To install langtable, run
```
make install DESTDIR=/usr
```
To create a distribution tarball run
```
make dist
```
To run the test cases in the source directory:
```
make check
```
## How to use it
```
import langtable
```
Functions in the public API:
```
parse_locale()
list_locales()
list_keyboards()
list_common_languages()
list_common_locales()
list_common_keyboards()
list_consolefonts()
list_inputmethods()
list_timezones()
list_scripts()
language_name()
territory_name()
timezone_name()
languageId()
territoryId()
supports_ascii()
list_all_languages()
list_all_locales()
list_all_keyboards()
list_all_territories()
list_all_timezones()
list_all_scripts()
list_all_input_methods()
list_all_console_fonts()
```
Some examples to show the usage are found in the documentation of the public functions in `langtable.py`.
Some more examples are in the test cases in the file `test_cases.py`.
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1721225653.8400462
langtable-0.0.68/langtable/ 0000755 0023456 0023456 00000000000 14645750666 015344 5 ustar 00mfabian mfabian ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1707413247.0
langtable-0.0.68/langtable/__init__.py 0000644 0023456 0023456 00000001016 14561207377 017444 0 ustar 00mfabian mfabian from .langtable import *
from .langtable import _test_language_territory
from .langtable import _test_cldr_locale_pattern
from .langtable import _init
from .langtable import _languages_db
from .langtable import _territories_db
from .langtable import _timezoneIdParts_db
from .langtable import _write_files
# Deleting a module prevents one from import .somemodule1
# directly. You can only import from objects defined or
# imported in its __init__.py, and non-deleted submodules.
del langtable # type: ignore
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1721225653.8420463
langtable-0.0.68/langtable/data/ 0000755 0023456 0023456 00000000000 14645750666 016255 5 ustar 00mfabian mfabian ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1683034192.0
langtable-0.0.68/langtable/data/keyboards.xml.gz 0000644 0023456 0023456 00000013400 14424210120 021342 0 ustar 00mfabian mfabian PQdkeyboards.xml v۶S`u_j-9NҦJ%;%%ǾHDD
Z \O# MLjY$`o!)ga>(9zoof@=E ˓-l}:To1foߜ]OێHɛ߳}$ԏHq+1Os#4P?/U?yG4>n^9n8$rz흷˿oflO_}4t/QDkY7~Sw}~Z53ttx]RG'\ޘڕZ4oРV?0k!_TR}0pz}0pʌ~9`0k},(