X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/7475946199e7c363fcf125c5b26be173cd4010f3..0b32c81b837233ea59fdd1b5f19edc935f7b626d:/librarian/pdf.py diff --git a/librarian/pdf.py b/librarian/pdf.py index 20daec8..eb3f942 100644 --- a/librarian/pdf.py +++ b/librarian/pdf.py @@ -84,7 +84,7 @@ def substitute_hyphens(doc): insert_tags(doc, re.compile("(?<=[^-\s])-(?=[^-\s])"), "dywiz", - exclude=[DCNS("identifier.url"), DCNS("rights.license")] + exclude=[DCNS("identifier.url"), DCNS("rights.license"), "www"] ) @@ -232,7 +232,7 @@ def transform(wldoc, verbose=False, save_tex=None, save_texml=None, morefloats=N if customizations is not None: root.set('customizations', u','.join(customizations)) - root.set('documentclass', documentclass) + root.set('documentclass', documentclass or 'wl') # add editors info root.set('editors', u', '.join(sorted( @@ -276,6 +276,7 @@ def transform(wldoc, verbose=False, save_tex=None, save_texml=None, morefloats=N shutil.copy(get_resource('pdf/wl.cls'), temp) shutil.copy(get_resource('pdf/wlpub.cls'), temp) shutil.copy(get_resource('res/wl-logo.png'), temp) + shutil.copy(get_resource('res/cover.jpg'), temp) if resources: copy_tree(resources, temp)