guess reasonable defaults for locale, keyboard, territory, ...
Project description
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:
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 test-local
To run the test cases using the installed files:
make install DESTDIR=/usr make test DESTDIR=/usr
How to use it
import langtable
Functions in the public API:
list_locales() list_keyboards() list_consolefonts() language_name() territory_name() supports_ascii()
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):
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file langtable-0.0.47.tar.gz
.
File metadata
- Download URL: langtable-0.0.47.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8824a1677da9f56a96bc59f9faef47d94c3bc6f74c7d48f0126741b4b54ca30 |
|
MD5 | 59e0f0aa171d979a715542f22d1179a1 |
|
BLAKE2b-256 | ada5294485161fff3765b8611ace2e635ea5e17306d3508a08bad3efa9110bad |
File details
Details for the file langtable-0.0.47-py3.7.egg
.
File metadata
- Download URL: langtable-0.0.47-py3.7.egg
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e50f22593607c043377cb2e779cebaa45c4fded1a684d4e636df52dc00c43848 |
|
MD5 | 0313e2bdb143482a59fead2b38812a86 |
|
BLAKE2b-256 | 1b0194f87a38841a894abe43c29e87fcd112001c7e390bbd2569db817fe1ecd5 |
File details
Details for the file langtable-0.0.47-py3-none-any.whl
.
File metadata
- Download URL: langtable-0.0.47-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac5cde6a4defc7e2c96b457fb4bd79a3936be3f26f337287eb9c3296ca139242 |
|
MD5 | c47a4b59931a29536fcf5d4b8e8a1ac2 |
|
BLAKE2b-256 | 708e1bd60531cece86e44386aad343f27b1f53c78d928f42474da05df56a4bbd |