Skip to content

Commit

Permalink
convert book id to uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
mshannon-sil committed Nov 9, 2023
1 parent 2174c7d commit 3b60347
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion machine/corpora/usfm_file_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ def _get_id(filename: StrPath, encoding: str) -> str:
index = id.find(" ")
if index != -1:
id = id[:index]
return id.strip()
return id.strip().upper()
raise RuntimeError("The USFM does not contain and 'id' marker.")
2 changes: 1 addition & 1 deletion machine/corpora/usfm_zip_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ def _get_id(archive_filename: StrPath, path: str, encoding: str) -> str:
index = id.find(" ")
if index != -1:
id = id[:index]
return id.strip()
return id.strip().upper()
raise RuntimeError("The USFM does not contain and 'id' marker.")

0 comments on commit 3b60347

Please sign in to comment.