jkUnicode 2.2.0__tar.gz → 2.2.2__tar.gz
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.
- {jkunicode-2.2.0 → jkunicode-2.2.2}/PKG-INFO +1 -1
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/cmdline/ortho.py +10 -1
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode.egg-info/PKG-INFO +1 -1
- {jkunicode-2.2.0 → jkunicode-2.2.2}/setup.cfg +11 -5
- {jkunicode-2.2.0 → jkunicode-2.2.2}/LICENSE +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/README.md +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/__init__.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/aglfn.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/aglfnData.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/cmdline/__init__.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/cmdline/uniinfo.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/json/ignored_characters.json +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/json/ignored_languages.json +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/json/language_characters.json +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/json/language_characters_hyperglot.json +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/json/language_speakers.json +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/json/languages.json +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/json/scripts.json +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/json/territories.json +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/orthography.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/py.typed +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/tools/__init__.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/tools/helpers.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/tools/jsonhelpers.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/tools/xmlhelpers.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/uniBlock.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/uniBlockData.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/uniCase.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/uniCat.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/uniDecomposition.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/uniName.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/uniNiceName.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/uniRangesBits.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/uniScript.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode/uniScriptData.py +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode.egg-info/SOURCES.txt +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode.egg-info/dependency_links.txt +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode.egg-info/entry_points.txt +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode.egg-info/not-zip-safe +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode.egg-info/requires.txt +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/lib/jkUnicode.egg-info/top_level.txt +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/pyproject.toml +0 -0
- {jkunicode-2.2.0 → jkunicode-2.2.2}/setup.py +0 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import argparse
|
|
2
|
+
|
|
2
3
|
from fontTools.ttLib import TTFont
|
|
4
|
+
|
|
3
5
|
from jkUnicode.orthography import OrthographyInfo
|
|
4
6
|
|
|
5
7
|
|
|
6
8
|
class OrthoCmdLine:
|
|
7
9
|
def __init__(self, font_path, args) -> None:
|
|
8
|
-
self.o = OrthographyInfo()
|
|
10
|
+
self.o = OrthographyInfo(source=args.source[0])
|
|
9
11
|
self.o.cmap = self.get_cmap(font_path)
|
|
10
12
|
if args.support:
|
|
11
13
|
self.o.report_missing(
|
|
@@ -111,6 +113,13 @@ def ortho():
|
|
|
111
113
|
"language code"
|
|
112
114
|
),
|
|
113
115
|
)
|
|
116
|
+
parser.add_argument(
|
|
117
|
+
"--source",
|
|
118
|
+
type=str,
|
|
119
|
+
default="CLDR",
|
|
120
|
+
nargs=1,
|
|
121
|
+
help=("Specify the source of orthography data, CLDR (default) or Hyperglot"),
|
|
122
|
+
)
|
|
114
123
|
parser.add_argument("font", type=str, nargs="+", help="One or more fonts")
|
|
115
124
|
|
|
116
125
|
args = parser.parse_args()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = jkUnicode
|
|
3
|
-
version = 2.2.
|
|
3
|
+
version = 2.2.2
|
|
4
4
|
description = Unicode support libraries
|
|
5
5
|
long_description = file: README.md
|
|
6
6
|
long_description_content_type = text/markdown; charset=UTF-8
|
|
@@ -35,10 +35,16 @@ woff = fontTools[woff] >= 4.38.0
|
|
|
35
35
|
where = lib
|
|
36
36
|
|
|
37
37
|
[options.package_data]
|
|
38
|
-
* =
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
* =
|
|
39
|
+
py.typed
|
|
40
|
+
json/ignored_characters.json
|
|
41
|
+
json/ignored_languages.json
|
|
42
|
+
json/language_characters.json
|
|
43
|
+
json/language_characters_hyperglot.json
|
|
44
|
+
json/language_speakers.json
|
|
45
|
+
json/languages.json
|
|
46
|
+
json/scripts.json
|
|
47
|
+
json/territories.json
|
|
42
48
|
|
|
43
49
|
[options.entry_points]
|
|
44
50
|
console_scripts =
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|