Debian Codegraph @

PKG-INFO

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