From 1c58de768c37f60fb6207374cbf523537bfca9ae Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Thu, 30 Nov 2017 19:08:49 +0100 Subject: [PATCH 1/1] updates for copycamp report (ugly) --- librarian/epub.py | 24 ++++++++++++------------ librarian/epub/xsltTitle.xsl | 2 +- librarian/pdf/wl.cls | 2 +- librarian/pdf/wl2tex.xslt | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/librarian/epub.py b/librarian/epub.py index f63826f..712863c 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -444,9 +444,9 @@ def transform(wldoc, verbose=False, style=None, html_toc=False, '' \ '') - #zip.write(get_resource('res/wl-logo-small.png'), os.path.join('OPS', 'logo_wolnelektury.png')) - zip.write(get_resource('res/koedlogo.png'), os.path.join('OPS', 'logo_koed.png')) - #zip.write(get_resource('res/jedenprocent.png'), os.path.join('OPS', 'jedenprocent.png')) + # zip.write(get_resource('res/wl-logo-small.png'), os.path.join('OPS', 'logo_wolnelektury.png')) + # zip.write(get_resource('res/koedlogo.png'), os.path.join('OPS', 'logo_koed.png')) + # zip.write(get_resource('res/jedenprocent.png'), os.path.join('OPS', 'jedenprocent.png')) if not style: style = get_resource('epub/style.css') zip.write(style, os.path.join('OPS', 'style.css')) @@ -518,15 +518,15 @@ def transform(wldoc, verbose=False, style=None, html_toc=False, zip.writestr('OPS/annotations.html', etree.tostring( html_tree, method="html", pretty_print=True)) - toc.add("Strona redakcyjna", "last.html") - manifest.append(etree.fromstring( - '')) - spine.append(etree.fromstring( - '')) - html_tree = xslt(document.edoc, get_resource('epub/xsltLast.xsl')) - chars.update(used_chars(html_tree.getroot())) - zip.writestr('OPS/last.html', etree.tostring( - html_tree, method="html", pretty_print=True)) + # toc.add("Strona redakcyjna", "last.html") + # manifest.append(etree.fromstring( + # '')) + # spine.append(etree.fromstring( + # '')) + # html_tree = xslt(document.edoc, get_resource('epub/xsltLast.xsl')) + # chars.update(used_chars(html_tree.getroot())) + # zip.writestr('OPS/last.html', etree.tostring( + # html_tree, method="html", pretty_print=True)) if not flags or not 'without-fonts' in flags: # strip fonts diff --git a/librarian/epub/xsltTitle.xsl b/librarian/epub/xsltTitle.xsl index ab70e81..1119e45 100644 --- a/librarian/epub/xsltTitle.xsl +++ b/librarian/epub/xsltTitle.xsl @@ -58,7 +58,7 @@ diff --git a/librarian/pdf/wl.cls b/librarian/pdf/wl.cls index 8e7fbe2..f9656e3 100644 --- a/librarian/pdf/wl.cls +++ b/librarian/pdf/wl.cls @@ -218,7 +218,7 @@ Letters={SmallCaps,UppercaseSmallCaps} \color{theme} \noindent \begin{minipage}[t]{.65\textwidth}\vspace{0pt} - \href{http://prawokultury.pl}{\xbox{\includegraphics[width=1in]{prawokultury-logo.png}}} + \href{http://prawokultury.pl}{\xbox{\includegraphics[width=1.5in]{prawokultury-logo.png}}} %\href{http://koed.org.pl}{\xbox{\includegraphics[height=.55in]{koed-logo.eps}}} \end{minipage} \noindent \begin{minipage}[t]{.35\textwidth}\vspace{0pt} diff --git a/librarian/pdf/wl2tex.xslt b/librarian/pdf/wl2tex.xslt index 024b2e0..b69f11d 100644 --- a/librarian/pdf/wl2tex.xslt +++ b/librarian/pdf/wl2tex.xslt @@ -103,7 +103,7 @@ \def\editors{} - + -- 2.20.1