Debian Codegraph @

langtable.egg-info/PKG-INFO

raw
1 Metadata-Version: 2.4
2 Name: langtable
3 Version: 0.0.71
4 Summary: guess reasonable defaults for locale, keyboard, territory, ...
5 Home-page: https://github.com/mike-fabian/langtable
6 Author: Mike FABIAN
7 Author-email: [email protected]
8 License: GPL-3.0-or-later
9 Classifier: Development Status :: 2 - Pre-Alpha
10 Classifier: Environment :: Console
11 Classifier: Intended Audience :: Developers
12 Classifier: Operating System :: POSIX :: Linux
13 Classifier: Programming Language :: Python
14 Classifier: Topic :: System :: Installation/Setup
15 Requires-Python: >=3.8
16 Description-Content-Type: text/markdown
17 License-File: COPYING
18 Dynamic: author
19 Dynamic: author-email
20 Dynamic: classifier
21 Dynamic: description
22 Dynamic: description-content-type
23 Dynamic: home-page
24 Dynamic: license
25 Dynamic: license-file
26 Dynamic: requires-python
27 Dynamic: summary
28
29 # langtable
30
31 [![PyPI version](https://badge.fury.io/py/langtable.svg)](https://badge.fury.io/py/langtable)
32
33 Guessing reasonable defaults for locale, keyboard layout, territory, and language.
34
35 ## Purpose of this package
36 _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.
37
38 ## License
39
40 GPLv3+, see the included file “COPYING”.
41
42 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:
43
44 https://fedoraproject.org/wiki/Licensing:MIT?rd=Licensing/MIT#Modern_Style_without_sublicense_.28Unicode.29
45
46 ## Installation
47
48 To install langtable, run
49
50 ```
51 make install DESTDIR=/usr
52 ```
53
54 To create a distribution tarball run
55 ```
56 make dist
57 ```
58 To run the test cases in the source directory:
59 ```
60 make check
61 ```
62
63 ## How to use it
64
65 ```
66 import langtable
67 ```
68
69 Functions in the public API:
70
71 ```
72 parse_locale()
73 list_locales()
74 list_keyboards()
75 list_common_languages()
76 list_common_locales()
77 list_common_keyboards()
78 list_consolefonts()
79 list_inputmethods()
80 list_timezones()
81 list_scripts()
82 language_name()
83 territory_name()
84 timezone_name()
85 languageId()
86 territoryId()
87 supports_ascii()
88 list_all_languages()
89 list_all_locales()
90 list_all_keyboards()
91 list_all_territories()
92 list_all_timezones()
93 list_all_scripts()
94 list_all_input_methods()
95 list_all_console_fonts()
96 ```
97
98 Some examples to show the usage are found in the documentation of the public functions in `langtable.py`.
99
100 Some more examples are in the test cases in the file `test_cases.py`.