From 3b60347343e9badc000ca02d659ffc2e09e3b49a Mon Sep 17 00:00:00 2001 From: mshannon-sil Date: Thu, 9 Nov 2023 17:34:26 -0500 Subject: [PATCH] convert book id to uppercase --- machine/corpora/usfm_file_text.py | 2 +- machine/corpora/usfm_zip_text.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/machine/corpora/usfm_file_text.py b/machine/corpora/usfm_file_text.py index 5a81153..5f4c781 100644 --- a/machine/corpora/usfm_file_text.py +++ b/machine/corpora/usfm_file_text.py @@ -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.") diff --git a/machine/corpora/usfm_zip_text.py b/machine/corpora/usfm_zip_text.py index 753d15d..d401cc2 100644 --- a/machine/corpora/usfm_zip_text.py +++ b/machine/corpora/usfm_zip_text.py @@ -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.")