X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/4b0833f222da430d31356b6f065e56073b849d0f..923ab131bfa43b0ceb8010669133c09e963b8563:/src/librarian/pdf.py
diff --git a/src/librarian/pdf.py b/src/librarian/pdf.py
index de09755..c7de78b 100644
--- a/src/librarian/pdf.py
+++ b/src/librarian/pdf.py
@@ -404,6 +404,7 @@ def transform(wldoc, verbose=False, save_tex=None, morefloats=None,
         # LaTeX -> PDF
         shutil.copy(get_resource('pdf/wl.cls'), temp)
         shutil.copy(get_resource('res/wl-logo.png'), temp)
+        shutil.copy(get_resource('fonts/OpenSans-VariableFont_wdth,wght.ttf'), temp)
 
         if latex_dir:
             return temp
@@ -463,6 +464,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)