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

Uploaded Source

Built Distributions

langtable-0.0.59-py3.10.egg (1.3 MB view details)

Uploaded Source

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: langtable-0.0.59.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 CPython/3.10.6

File hashes

Hashes for langtable-0.0.59.tar.gz
Algorithm Hash digest
SHA256 0e9cec4dfadb4debf387ea695fe2bf7be4af1cbb3f030d5d04bf6a254ad13751
MD5 8056b577ceea717492702715f3b810f5
BLAKE2b-256 3c84652a60ce7e25e9b4958fd6ad6015046cf7b6e1b968d38e75ce6c96f15aec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: langtable-0.0.59-py3.10.egg
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 CPython/3.10.6

File hashes

Hashes for langtable-0.0.59-py3.10.egg
Algorithm Hash digest
SHA256 4963c4f6dc16a3ccaf3238c1d5cb5bb11b34bf46f6e511221148168617ab7f1f
MD5 f96fe1094d6825a99a590e38949f21d1
BLAKE2b-256 e5ce34539fc348a803236a9a185d39e8e6cf10100212e56e5439625da949dbec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: langtable-0.0.59-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 CPython/3.10.6

File hashes

Hashes for langtable-0.0.59-py3-none-any.whl
Algorithm Hash digest
SHA256 86012ed597b8f3d55cdc31789de3597c7e9f8db679256757ee05f4b3d8bd473e
MD5 02b9b1e4206df465fd28429bc28db4d0
BLAKE2b-256 46faa82e14618c716f39000a4344999f94e7deca26d0cd40b146ceb94b5b8366

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