Skip to main content

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:

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 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:

parse_locale() list_locales() list_keyboards() list_common_languages() list_common_keyboards() list_consolefonts() list_inputmethods() list_timezones() list_scripts() language_name() territory_name() timezone_name() languageId() territoryId() 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langtable-0.0.56.tar.gz (1.2 MB view details)

Uploaded Source

Built Distributions

langtable-0.0.56-py3.9.egg (1.2 MB view details)

Uploaded Source

langtable-0.0.56-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file langtable-0.0.56.tar.gz.

File metadata

  • Download URL: langtable-0.0.56.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for langtable-0.0.56.tar.gz
Algorithm Hash digest
SHA256 318af0fd616711ce5cd2a7b11a6761183ba9c1ff76a762919e08d85645fc854b
MD5 4953d464799fb83429c14c97befa0274
BLAKE2b-256 ad2022a1d18be36216a2f8a6b934602e5c1f3ea04cfaf23084052153013b1743

See more details on using hashes here.

File details

Details for the file langtable-0.0.56-py3.9.egg.

File metadata

  • Download URL: langtable-0.0.56-py3.9.egg
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for langtable-0.0.56-py3.9.egg
Algorithm Hash digest
SHA256 d2da9d33e751307601dce40961a256f9bdda9da919edb7b7428b3125cd49bc86
MD5 9b6b582fa16c615e0ca8fe159ae8fc6c
BLAKE2b-256 d1a90cd46d5e57b31e348399eafad183b8fd0e558937c82d8381efb4fa5b4a49

See more details on using hashes here.

File details

Details for the file langtable-0.0.56-py3-none-any.whl.

File metadata

  • Download URL: langtable-0.0.56-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for langtable-0.0.56-py3-none-any.whl
Algorithm Hash digest
SHA256 1cbbfb88259e8a67559f02559186165d366b22682eb6431b774e317951babd72
MD5 e9fd81a7b5686a699c00d7591b7f96da
BLAKE2b-256 801b719b5b5d640888520932d2e25a3921d3c98d6d55b1ba9979b57cc5353afd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page