eldpy 0.0.7__tar.gz → 0.0.9__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.
- {eldpy-0.0.7 → eldpy-0.0.9}/PKG-INFO +1 -1
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/cldf2gb4e.py +3 -3
- {eldpy-0.0.7 → eldpy-0.0.9}/pyproject.toml +1 -1
- {eldpy-0.0.7 → eldpy-0.0.9}/README.md +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/__init__.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/annotation.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/archive.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/bulk.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/colexify.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/collection.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/constants.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/delaman.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/download.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/elanfile.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/lod.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/paradisecconverter.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/resolver.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/testing.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/transitiveclosure.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/eldpy/wikidatagraph.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/executables/analyze_eafs.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/executables/annotation.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/executables/constants.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/executables/elanfile.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/tests/annotation.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/tests/constants.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/tests/elanfile.py +0 -0
- {eldpy-0.0.7 → eldpy-0.0.9}/tests/test_elan.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: eldpy
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.9
|
|
4
4
|
Summary: A Python package to download and analyze data from endangered language archives
|
|
5
5
|
Project-URL: Homepage, https://github.com/ZAS-QUEST/eldpy
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/ZAS-QUEST/eldpy/issues
|
|
@@ -36,7 +36,7 @@ def latex_quotation_marks(s):
|
|
|
36
36
|
|
|
37
37
|
def get_matrix_content_from_csv(filename,provided_title=""):
|
|
38
38
|
matrix = []
|
|
39
|
-
with open(filename, mode='r') as csv_file:
|
|
39
|
+
with open(filename, mode='r', encoding="utf-8") as csv_file:
|
|
40
40
|
csv_reader = csv.DictReader(csv_file)
|
|
41
41
|
for row in csv_reader:
|
|
42
42
|
ID = row["ID"]
|
|
@@ -44,7 +44,7 @@ def get_matrix_content_from_csv(filename,provided_title=""):
|
|
|
44
44
|
primary_text = row["Primary_Text"]
|
|
45
45
|
analyzed_word = row["Analyzed_Word"]
|
|
46
46
|
translation = row["Translated_Text"]
|
|
47
|
-
comment = row
|
|
47
|
+
comment = row,get("Comment",'')
|
|
48
48
|
matrix.append([ID,primary_text,analyzed_word,gloss,translation,comment])
|
|
49
49
|
return matrix
|
|
50
50
|
|
|
@@ -174,5 +174,5 @@ if __name__ == "__main__":
|
|
|
174
174
|
print("please provide a file of type csv")
|
|
175
175
|
else:
|
|
176
176
|
tex_filemame = filename[0:-4]+".tex"
|
|
177
|
-
with open(tex_filemame,"w") as tex_file:
|
|
177
|
+
with open(tex_filemame, "w", encoding="utf-8") as tex_file:
|
|
178
178
|
tex_file.write(get_tex_content_from_csv(filename,provided_title=provided_title,output_type=output_type))
|
|
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
|