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

Uploaded Source

Built Distributions

langtable-0.0.62-py3.11.egg (1.3 MB view details)

Uploaded Source

langtable-0.0.62-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for langtable-0.0.62.tar.gz
Algorithm Hash digest
SHA256 df8d5daedaa5c0d4e72dace925733376ba705d9330f63934f122eacf4746f360
MD5 0bfd5a7f881f892924922ba3d0449687
BLAKE2b-256 7c6098e1cea8f6481eb89c49e474d824be8aaf60eed13bcea32ea05051f72113

See more details on using hashes here.

File details

Details for the file langtable-0.0.62-py3.11.egg.

File metadata

  • Download URL: langtable-0.0.62-py3.11.egg
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for langtable-0.0.62-py3.11.egg
Algorithm Hash digest
SHA256 1359e1062560c22e1305f413ac0dc29e645310ee093a4c065a58c1021ca5bae2
MD5 bb17bdf3ae35100e95afeb5e05d7574c
BLAKE2b-256 c64077ac8f4212f83cd27a9f09bc8ba07c92eabe2dd31c4f81237608e64ff1d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: langtable-0.0.62-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for langtable-0.0.62-py3-none-any.whl
Algorithm Hash digest
SHA256 ba34a708f4f34af4a46c50e11b49b800a6727765e571b73c6389b8deba2bba56
MD5 fac0a4019ad709737787624f8dd721fc
BLAKE2b-256 f3b240f6afbc957059d7b1d4fb96a4771d5a83e284b38bf2e90b24f8b8e4384b

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