X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/4b0833f222da430d31356b6f065e56073b849d0f..b7ab4f2e27b8fd7fb89f550ed60e6af39d350712:/src/librarian/pdf.py diff --git a/src/librarian/pdf.py b/src/librarian/pdf.py index de09755..647b18f 100644 --- a/src/librarian/pdf.py +++ b/src/librarian/pdf.py @@ -463,6 +463,8 @@ def load_including_children(wldoc=None, provider=None, uri=None): text = re.sub(r"([\u0400-\u04ff]+)", r"\1", text) # Geometric shapes. text = re.sub(r"([\u25a0-\u25ff]+)", r"\1", text) + # Hebrew + text = re.sub(r"([\u0590-\u05ff]+)", r"\1", text) document = WLDocument.from_bytes(text.encode('utf-8'), parse_dublincore=True, provider=provider)