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:

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


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.44.tar.gz (1.2 MB view details)

Uploaded Source

Built Distributions

langtable-0.0.44-py3.7.egg (1.2 MB view details)

Uploaded Source

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: langtable-0.0.44.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for langtable-0.0.44.tar.gz
Algorithm Hash digest
SHA256 b687df9a26a80496cc03a9ed5720f4bbd2a451d7c29222f1a4e5090e276b7de8
MD5 a5e7a12c8ef9f0d057acf9f8080e486b
BLAKE2b-256 4a1ccb0b95b0adccad7cad8e04853c08cce4d277e30cd6f9e14c3970d1090d61

See more details on using hashes here.

File details

Details for the file langtable-0.0.44-py3.7.egg.

File metadata

  • Download URL: langtable-0.0.44-py3.7.egg
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for langtable-0.0.44-py3.7.egg
Algorithm Hash digest
SHA256 d2f1371cc353871e2b8e813075ab8e7542397891cec5b5dde58d5b5578dc1720
MD5 ad5dab6dd913c43254b72e52c47a8de3
BLAKE2b-256 1dd8a2176c16193ef8c07f196d7cbe957b8d49d81b881b56c2f2311f044f26f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: langtable-0.0.44-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for langtable-0.0.44-py3-none-any.whl
Algorithm Hash digest
SHA256 6adf9c44fe78c03960cab163bd9c2f0ce7185a467b00a0fcc2cbaf2705acf158
MD5 b24a96951536aa1b797780f90f1b1863
BLAKE2b-256 3272eb5e73d02d0a1b601882fe3959f6573845c3013e1e309cb9b236caf5ef43

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