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

Uploaded Source

Built Distributions

langtable-0.0.52-py3.8.egg (1.2 MB view details)

Uploaded Source

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: langtable-0.0.52.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5

File hashes

Hashes for langtable-0.0.52.tar.gz
Algorithm Hash digest
SHA256 a2c499704c91c0a23e5db92e80ad1d45e51466b82ffaee478e5bb781460b3db5
MD5 240a62b84ed29f6530ceae60609f7eff
BLAKE2b-256 84d24629fb0f35f970e2b125d31b6959e303dd0f421e30b445c1035240500a65

See more details on using hashes here.

File details

Details for the file langtable-0.0.52-py3.8.egg.

File metadata

  • Download URL: langtable-0.0.52-py3.8.egg
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5

File hashes

Hashes for langtable-0.0.52-py3.8.egg
Algorithm Hash digest
SHA256 df22fbff8094e6c4fdcb27f90495bc2af0fc7dbfc22fb53de1e5d7369fa6fdbb
MD5 0b4ac01df05b339f9e2fae99dbe155c4
BLAKE2b-256 379a6c1ba4fcc33814d6697fdf7c6c9b453dac9b7e2413c9a75e3a5cad8a7704

See more details on using hashes here.

File details

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

File metadata

  • Download URL: langtable-0.0.52-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5

File hashes

Hashes for langtable-0.0.52-py3-none-any.whl
Algorithm Hash digest
SHA256 9ddc260571a989b19ac526246e0c5e2da9fdeb9b87cfd1168e7330d2ffed4c3f
MD5 db4bdf1921deb2e07aae70bc8c6d920e
BLAKE2b-256 1321c6e71430650b16845bc2dd028e81f31f566ded1952290eb771cd5579eb0a

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