Debian Codegraph @

README

raw
1 langtable
2
3 [1]PyPI version
4
5 Guessing reasonable defaults for locale, keyboard layout, territory, and
6 language.
7
8 Purpose of this package
9
10 langtable is used to guess reasonable defaults for locale, keyboard,
11 territory, …, if part of that information is already known. For example,
12 guess the territory and the keyboard layout if the language is known or guess
13 the language and keyboard layout if the territory is already known.
14
15 License
16
17 GPLv3+, see the included file “COPYING”.
18
19 Translations for languages and territory names are from CLDR which is
20 governed by the Unicode Terms of Use, see the included file
21 “unicode-license.txt”. The short name for this Unicode license is “MIT”. See:
22
23 [2]https://fedoraproject.org/wiki/Licensing:MIT?rd=Licensing/MIT#
24 Modern_Style_without_sublicense_.28Unicode.29
25
26 Installation
27
28 To install langtable, run
29
30 make install DESTDIR=/usr
31
32 To create a distribution tarball run
33
34 make dist
35
36 To run the test cases in the source directory:
37
38 make check
39
40 How to use it
41
42 import langtable
43
44 Functions in the public API:
45
46 parse_locale()
47 list_locales()
48 list_keyboards()
49 list_common_languages()
50 list_common_locales()
51 list_common_keyboards()
52 list_consolefonts()
53 list_inputmethods()
54 list_timezones()
55 list_scripts()
56 language_name()
57 territory_name()
58 timezone_name()
59 languageId()
60 territoryId()
61 supports_ascii()
62 list_all_languages()
63 list_all_locales()
64 list_all_keyboards()
65 list_all_territories()
66 list_all_timezones()
67 list_all_scripts()
68 list_all_input_methods()
69 list_all_console_fonts()
70
71 Some examples to show the usage are found in the documentation of the public
72 functions in langtable.py.
73
74 Some more examples are in the test cases in the file test_cases.py.
75
76
77 References:
78
79 [1] https://badge.fury.io/py/langtable
80 [2] https://fedoraproject.org/wiki/Licensing:MIT?rd=Licensing/MIT#Modern_Style_without_sublicense_.28Unicode.29