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:

list_locales() list_keyboards() list_consolefonts() language_name() territory_name() 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.45.tar.gz (1.2 MB view details)

Uploaded Source

Built Distributions

langtable-0.0.45-py3.7.egg (1.2 MB view details)

Uploaded Source

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: langtable-0.0.45.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for langtable-0.0.45.tar.gz
Algorithm Hash digest
SHA256 206c6da452610c6c50be88a34578c7c2a8416d9622aacb8c4013cde0cec87aa7
MD5 df08601edfcc7bb128e9d14ea4ae973e
BLAKE2b-256 0baa70e7bc423de84a499e84d243021d4881621143024a7a7c9e4a43d85b1170

See more details on using hashes here.

File details

Details for the file langtable-0.0.45-py3.7.egg.

File metadata

  • Download URL: langtable-0.0.45-py3.7.egg
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for langtable-0.0.45-py3.7.egg
Algorithm Hash digest
SHA256 f904db51e094b176dd310fee45ab082a32d270465966831b7a3e23aff96aed59
MD5 0c2d03b0aab7a6a75fa0b561ffc81025
BLAKE2b-256 7bbc6d03a53881e8154e988dc3429ff01903af41b4b60ae5809380724e8f40f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: langtable-0.0.45-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for langtable-0.0.45-py3-none-any.whl
Algorithm Hash digest
SHA256 e3f0f8e8cc7018c0fea2c727dcbd23b549d103ef9922578ec52596701d97d319
MD5 897dfb34d65af374f184798cfbe22b05
BLAKE2b-256 a5e27292b15831fea7c28e13311961ef45fa3964806f47d063772bf62d94a297

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