usfmtc 0.2__tar.gz → 0.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.
Files changed (32) hide show
  1. {usfmtc-0.2/python/lib/usfmtc.egg-info → usfmtc-0.2.2}/PKG-INFO +2 -1
  2. {usfmtc-0.2 → usfmtc-0.2.2}/pyproject.toml +3 -2
  3. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/__init__.py +2 -2
  4. {usfmtc-0.2 → usfmtc-0.2.2/python/lib/usfmtc.egg-info}/PKG-INFO +2 -1
  5. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc.egg-info/requires.txt +1 -0
  6. {usfmtc-0.2 → usfmtc-0.2.2}/LICENSE.md +0 -0
  7. {usfmtc-0.2 → usfmtc-0.2.2}/README.md +0 -0
  8. {usfmtc-0.2 → usfmtc-0.2.2}/python/README.md +0 -0
  9. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/diagrams.py +0 -0
  10. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/extension.py +0 -0
  11. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/grammar.py +0 -0
  12. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/parser.py +0 -0
  13. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/railroad.py +0 -0
  14. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/reference.py +0 -0
  15. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/rnc2rng/__init__.py +0 -0
  16. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/rnc2rng/parser.py +0 -0
  17. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/rnc2rng/rnctree.py +0 -0
  18. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/rnc2rng/serializer.py +0 -0
  19. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/sfmparser.py +0 -0
  20. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/usfmgenerate.py +0 -0
  21. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/usfmparser.py +0 -0
  22. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/usjproc.py +0 -0
  23. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/usx.rng +0 -0
  24. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/usxgrammar.py +0 -0
  25. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/usxmodel.py +0 -0
  26. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/usxparser.py +0 -0
  27. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc/xmlutils.py +0 -0
  28. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc.egg-info/SOURCES.txt +0 -0
  29. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc.egg-info/dependency_links.txt +0 -0
  30. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc.egg-info/entry_points.txt +0 -0
  31. {usfmtc-0.2 → usfmtc-0.2.2}/python/lib/usfmtc.egg-info/top_level.txt +0 -0
  32. {usfmtc-0.2 → usfmtc-0.2.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: usfmtc
3
- Version: 0.2
3
+ Version: 0.2.2
4
4
  Summary: USFM reference parser
5
5
  Author-email: USFM Technical Committee <fonts@sil.org>
6
6
  License: Copyright © 2022-2023 by the members of the USFM/USX technical committee, listed below:
@@ -35,6 +35,7 @@ Description-Content-Type: text/markdown
35
35
  License-File: LICENSE.md
36
36
  Requires-Dist: lxml
37
37
  Requires-Dist: rply
38
+ Requires-Dist: regex
38
39
  Provides-Extra: git
39
40
 
40
41
  # usfmtc
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "usfmtc"
7
- version = "0.2"
7
+ version = "0.2.2"
8
8
  authors = [{name = "USFM Technical Committee", email = "fonts@sil.org"}]
9
9
  readme = "python/README.md"
10
10
  license = {file = "LICENSE.md"}
@@ -21,7 +21,8 @@ requires-python = ">=3.8"
21
21
 
22
22
  dependencies = [
23
23
  "lxml",
24
- "rply"
24
+ "rply",
25
+ "regex"
25
26
  ]
26
27
 
27
28
  [project.optional-dependencies]
@@ -8,7 +8,7 @@
8
8
  # nuitka-project-else:
9
9
  # nuitka-project: --output-filename=usfmconv.bin
10
10
 
11
- import os
11
+ import os, json
12
12
  from usfmtc.sfmparser import parseusfm, UsfmParserBackend
13
13
  from usfmtc.parser import NoParseError
14
14
  from usfmtc.extension import Extensions
@@ -192,7 +192,7 @@ class USX:
192
192
 
193
193
  def outUsj(self, file=None):
194
194
  """ Output USJ from USX object. If file is None returns dict """
195
- res, _ = usxtousj(self.xml.getroot())
195
+ res = usxtousj(self.xml)
196
196
  if file is None:
197
197
  return res
198
198
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: usfmtc
3
- Version: 0.2
3
+ Version: 0.2.2
4
4
  Summary: USFM reference parser
5
5
  Author-email: USFM Technical Committee <fonts@sil.org>
6
6
  License: Copyright © 2022-2023 by the members of the USFM/USX technical committee, listed below:
@@ -35,6 +35,7 @@ Description-Content-Type: text/markdown
35
35
  License-File: LICENSE.md
36
36
  Requires-Dist: lxml
37
37
  Requires-Dist: rply
38
+ Requires-Dist: regex
38
39
  Provides-Extra: git
39
40
 
40
41
  # usfmtc
@@ -1,4 +1,5 @@
1
1
  lxml
2
2
  rply
3
+ regex
3
4
 
4
5
  [git]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes