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

Uploaded Source

Built Distributions

langtable-0.0.57-py3.10.egg (1.2 MB view details)

Uploaded Source

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: langtable-0.0.57.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.10.2

File hashes

Hashes for langtable-0.0.57.tar.gz
Algorithm Hash digest
SHA256 6c3c0a6577652c81871cbaf139046e1c88ead8439c585bd83976b3092f57e9d7
MD5 881fcd269ef32952b4bee6aa3a03f1fe
BLAKE2b-256 180926e6df5195b34d6beffee06eb3134e1b2c72c440082fbe2816395b4da76c

See more details on using hashes here.

File details

Details for the file langtable-0.0.57-py3.10.egg.

File metadata

  • Download URL: langtable-0.0.57-py3.10.egg
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.10.2

File hashes

Hashes for langtable-0.0.57-py3.10.egg
Algorithm Hash digest
SHA256 94dcf6dc927b148dd0b47097f8112cb53bd810aeb16ec86ae036aa5a780a74aa
MD5 b68d9222c8acd9230400fbb3940de679
BLAKE2b-256 6221f82c50c3d83742d008bef7fe677083ed15320ec9470ec5fb1f40ab5971b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: langtable-0.0.57-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.10.2

File hashes

Hashes for langtable-0.0.57-py3-none-any.whl
Algorithm Hash digest
SHA256 46eebeea14fc5bc6bb898c9a3a72c1e75747d9005abfc4e7d84224c40e1def6d
MD5 b3c8c065b44a7c5f2fc359192d3721e4
BLAKE2b-256 5c9372ee022c2f8eb772c15f96c143e7ed1508f2517f5de588ddebcd828f62a4

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