langtable 0.0.65__py3-none-any.whl → 0.0.66__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
Binary file
langtable/langtable.py CHANGED
@@ -2719,5 +2719,11 @@ __module_init = __ModuleInitializer()
2719
2719
 
2720
2720
  if __name__ == "__main__":
2721
2721
  import doctest
2722
+ import sys
2722
2723
  _init()
2723
- doctest.testmod()
2724
+ (FAILED, ATTEMPTED) = doctest.testmod()
2725
+ print(f'{ATTEMPTED} tests run. {ATTEMPTED - FAILED} passed and {FAILED} failed.')
2726
+ if FAILED:
2727
+ sys.exit(FAILED)
2728
+ print(f'All tests passed.')
2729
+ sys.exit(0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langtable
3
- Version: 0.0.65
3
+ Version: 0.0.66
4
4
  Summary: guess reasonable defaults for locale, keyboard, territory, ...
5
5
  Home-page: https://github.com/mike-fabian/langtable
6
6
  Author: Mike FABIAN
@@ -13,55 +13,52 @@ Classifier: License :: OSI Approved :: GNU General Public License v3 or later (G
13
13
  Classifier: Operating System :: POSIX :: Linux
14
14
  Classifier: Programming Language :: Python
15
15
  Classifier: Topic :: System :: Installation/Setup
16
+ Description-Content-Type: text/markdown
16
17
  License-File: COPYING
17
18
 
18
- ======================================================================
19
- langtable
20
- ======================================================================
19
+ # langtable
21
20
 
22
- Purpose of this package
23
- =======================
21
+ [![PyPI version](https://badge.fury.io/py/langtable.svg)](https://badge.fury.io/py/langtable)
24
22
 
25
- langtable is used to guess reasonable defaults for locale, keyboard,
26
- territory, …, if part of that information is already known. For
27
- example, guess the territory and the keyboard layout if the language
28
- is known or guess the language and keyboard layout if the territory is
29
- already known.
23
+ Guessing reasonable defaults for locale, keyboard layout, territory, and language.
30
24
 
31
- License
32
- =======
25
+ ## Purpose of this package
26
+ _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.
27
+
28
+ ## License
33
29
 
34
30
  GPLv3+, see the included file “COPYING”.
35
31
 
36
- Translations for languages and territory names are from CLDR which is
37
- governed by the Unicode Terms of Use, see the included file
38
- “unicode-license.txt”. The short name for this Unicode license is
39
- “MIT”. See:
32
+ 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:
40
33
 
41
34
  https://fedoraproject.org/wiki/Licensing:MIT?rd=Licensing/MIT#Modern_Style_without_sublicense_.28Unicode.29
42
35
 
43
- Installation
44
- ============
36
+ ## Installation
45
37
 
46
38
  To install langtable, run
47
39
 
40
+ ```
48
41
  make install DESTDIR=/usr
42
+ ```
49
43
 
50
44
  To create a distribution tarball run
51
-
45
+ ```
52
46
  make dist
53
-
47
+ ```
54
48
  To run the test cases in the source directory:
49
+ ```
50
+ make check
51
+ ```
55
52
 
56
- make test
57
-
58
- How to use it
59
- =============
53
+ ## How to use it
60
54
 
55
+ ```
61
56
  import langtable
57
+ ```
62
58
 
63
59
  Functions in the public API:
64
60
 
61
+ ```
65
62
  parse_locale()
66
63
  list_locales()
67
64
  list_keyboards()
@@ -86,8 +83,8 @@ Functions in the public API:
86
83
  list_all_scripts()
87
84
  list_all_input_methods()
88
85
  list_all_console_fonts()
86
+ ```
89
87
 
90
- Some examples to show the usage are found in the documentation
91
- of the public functions in langtable.py.
88
+ Some examples to show the usage are found in the documentation of the public functions in `langtable.py`.
92
89
 
93
- (Some more examples are in the test cases in the file test_cases.py):
90
+ Some more examples are in the test cases in the file `test_cases.py`.
@@ -1,8 +1,8 @@
1
1
  langtable/__init__.py,sha256=09oRQxG7NrxWL_v5bKHHCt-DFuK-WIIKmyLp0RtS84M,526
2
- langtable/langtable.py,sha256=ECBuskzJUBF2_qlbfkXqIAjCJ0mFqpbrcQt-x3mgPxU,107347
2
+ langtable/langtable.py,sha256=EDytmVwXFoiTnh01Ig_xEXTlZLI2wwJ3xKMWonsg_84,107558
3
3
  langtable/data/keyboards.xml.gz,sha256=SiBNgt_lJ6qiXM_Ni1fElNRSqnaCRBhqhKSn2FEAoWg,5888
4
- langtable/data/languages.xml.gz,sha256=qjj4ArRWk47xV7_sbJa8s36XZ3pfiYpndxAFrVCBw48,407980
5
- langtable/data/territories.xml.gz,sha256=6VH5LP8weFF4LZilHeQeWHBMgUsdJBO03Jrv0JLVRPs,494333
4
+ langtable/data/languages.xml.gz,sha256=MHGBnN8IX7A1kdroD-P4Q0ObOp1XKVgzp5SM9xdxgYQ,409136
5
+ langtable/data/territories.xml.gz,sha256=aYbrZJepeZeJk9ilWu-SDJ3NbZ46w3HVhP9OhsWKgN8,494566
6
6
  langtable/data/timezoneidparts.xml.gz,sha256=1bH7G-Twn4StA4J-fCDutqX_LPEJlUvQDxI0UY8ccfk,378548
7
7
  langtable/data/timezones.xml.gz,sha256=UJ6YNPOKG5yp2hEgbEK_4yWsnmrbDhHZAr6ZL-Wr0Fw,3542
8
8
  langtable/schemas/keyboards.rng,sha256=Gy8zXngR6VZ6QXGrsp4u7Aolpk-VkWTJ_8kTlT-a9ss,1301
@@ -10,8 +10,8 @@ langtable/schemas/languages.rng,sha256=rDTnJ-yPK7CgwQCjVMhLMCf0xzGpG2cnx0iIn85f0
10
10
  langtable/schemas/territories.rng,sha256=KnDf45rlNpmsDTmzND0WDDXGNy08N1fx0reRjKUS_SQ,3482
11
11
  langtable/schemas/timezoneidparts.rng,sha256=--LNbran9DrHSDQSZMqxYjermlPRo39GZwLtR-zF_Ug,683
12
12
  langtable/schemas/timezones.rng,sha256=l2sVJPyo48ESnNaTr1QHgv5fV26cIJZ_XxElumAc3F0,665
13
- langtable-0.0.65.dist-info/COPYING,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
14
- langtable-0.0.65.dist-info/METADATA,sha256=y4mSMXIgYvR_vVrygRdrl2jb5boZvgxu2a7kRTMGKWM,2549
15
- langtable-0.0.65.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
16
- langtable-0.0.65.dist-info/top_level.txt,sha256=vFuD4S3tAk7ZEIOqrR5tqqm-ThvhpwXxYUMxZdXY1-0,10
17
- langtable-0.0.65.dist-info/RECORD,,
13
+ langtable-0.0.66.dist-info/COPYING,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
14
+ langtable-0.0.66.dist-info/METADATA,sha256=2zyTYbg3pNTjNdx_knLqNKWtAdAVxNHERhDzTYGq8zY,2622
15
+ langtable-0.0.66.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
16
+ langtable-0.0.66.dist-info/top_level.txt,sha256=vFuD4S3tAk7ZEIOqrR5tqqm-ThvhpwXxYUMxZdXY1-0,10
17
+ langtable-0.0.66.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.40.0)
2
+ Generator: bdist_wheel (0.41.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5