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

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for langtable-0.0.58.tar.gz
Algorithm Hash digest
SHA256 47128c06008acedee1745f2d56151461d94526b2be95a4124692013af35496b6
MD5 26bf0efa6e85910cf00c72bf6bf1ece6
BLAKE2b-256 aae86d2eee2d759899af399eca4b43758e132adb884472be904e0b5330027465

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for langtable-0.0.58-py3.10.egg
Algorithm Hash digest
SHA256 81c64135742da9cf23e6bea846e402e84daf453336d92246d35401254ea2ec86
MD5 b42f5308402602bb303157947bd6529b
BLAKE2b-256 f0cab06705024665312b819681fba6a3dc479673850b7f8a3544aca28071ef57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: langtable-0.0.58-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.4

File hashes

Hashes for langtable-0.0.58-py3-none-any.whl
Algorithm Hash digest
SHA256 1a78f8737891e581a102146f7b9d06ba308342e8c07bf74e4a5578f55f7dfdd0
MD5 1203fc05da066db94b110a3a6ce5b2b8
BLAKE2b-256 d81b3e88cbb83f142542cc1325610b113fab699ec480a77d814385e78954eaa9

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