From 7e7eac17f776821311bdcc305052575f7994989e Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 1 Sep 2011 12:32:46 +0200 Subject: [PATCH 1/1] 1% propaganda in epubs --- librarian/epub.py | 1 + librarian/epub/style.css | 8 ++++++-- librarian/epub/xsltContent.xsl | 3 ++- librarian/epub/xsltLast.xsl | 7 +++++++ librarian/res/jedenprocent.png | Bin 0 -> 2102 bytes 5 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 librarian/res/jedenprocent.png diff --git a/librarian/epub.py b/librarian/epub.py index 0f23923..70403fd 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -397,6 +397,7 @@ def transform(provider, slug=None, file_path=None, output_file=None, output_dir= '') zip.write(get_resource('epub/style.css'), os.path.join('OPS', 'style.css')) zip.write(get_resource('res/wl-logo-small.png'), os.path.join('OPS', 'logo_wolnelektury.png')) + zip.write(get_resource('res/jedenprocent.png'), os.path.join('OPS', 'jedenprocent.png')) opf = xslt(metadata, get_resource('epub/xsltContent.xsl')) manifest = opf.find('.//' + OPFNS('manifest')) diff --git a/librarian/epub/style.css b/librarian/epub/style.css index 249ae09..2a41d9b 100644 --- a/librarian/epub/style.css +++ b/librarian/epub/style.css @@ -351,13 +351,17 @@ em.author-emphasis text-transform: uppercase; } -p.info +.info { text-align: center; margin-bottom: 1em; } +.info div +{ + text-align: center; +} -p.info img +.info img { margin: 0; margin-left: 2em; diff --git a/librarian/epub/xsltContent.xsl b/librarian/epub/xsltContent.xsl index 27a317f..6752be3 100644 --- a/librarian/epub/xsltContent.xsl +++ b/librarian/epub/xsltContent.xsl @@ -30,6 +30,7 @@ + @@ -47,4 +48,4 @@ - \ No newline at end of file + diff --git a/librarian/epub/xsltLast.xsl b/librarian/epub/xsltLast.xsl index dd44a30..67f6b0e 100644 --- a/librarian/epub/xsltLast.xsl +++ b/librarian/epub/xsltLast.xsl @@ -63,6 +63,13 @@ +
+ Logo 1% +
Przekaż 1% podatku na rozwój Wolnych Lektur.
+
Nazwa organizacji: Fundacja Nowoczesna Polska
+
KRS 0000070056
+
+

 

Plik wygenerowany dnia . diff --git a/librarian/res/jedenprocent.png b/librarian/res/jedenprocent.png new file mode 100644 index 0000000000000000000000000000000000000000..1b88c543da0ecbd7d8daa9b223736e3fbcab57c4 GIT binary patch literal 2102 zcmeH{c{G%J7{`BO9aD^Dk`fwArA%2;F*jz$U>JL{UWG)XkdU;BWN9&4P)K7&byZ4k znNk^R))p=rYZ#ds+m&LuKS=<@fs>u9rRe;>00RI41Kz42 z#t<;=K!p?N_65WKU_21;0|7S}a6-Uf2p9?lyimZ090>*g`;#3Q+Yd(nb|eh^!2MuE zr0CMu8U}b_fFA~iA%Bqn?jfS&*O=%AHBf4>6pW$FEe4#FQV8OA7ZwiINd5Bqv zFAxHV>FMcD5R(uS5aZ+HV-O<{dSQ z&%bfw*6q7R#ScrEPo6z5uc#DJRaI48^P;w`o!!yZ)BCQkufLx&IK&+p9s6@)^5dte zscC`W^Or9(Gor4|&50VQhrz60uWw*vyvbxMj!$-QMk=c;3kcdnp#<*@4PT+Ip{cW4 zx30dSvFRHxU%q7ePWr8k6)85i=Wu-Y-@G(s@l@P(H-=(?zg!C0C4knGPb=CfJSVK# zgvA<_(o6lyGi-Y)fd>uCx?{$hj!ZU732_~v;&}ySVe8GKTU+!=8D@_%OTsy$A1nO< zv6;N7VBf0sg#`YqkjN{Y3g`}Osicd`95r?FAemFGfmCdGU4B#P7}}6{ZTQ%ms%BoC z3^MPrmXR0pZhPHXdhPR~%Lm(CmoesKc;4Gt@vQEM4`&plKKpLzwv^OIJNf98YHdp@ z^$uqxfH!13oyu%!XwSZpy=M2E|7pDc1jlw$)?@dJ2??DIM(mgtHS8*L9*t^tbF!X3 z!`L8^w=9y-cM`|biQmQW(HiaBOFeURW71SjmSI13F;7qr<0aspjFRL-D$Rpf+qzb$ z@k6CdQY4a(DXlh`zHp(R1ZV8kMV$Iln3f%-IuI$>o0#BX1i#d49h=G6>KX5WWS2BA zHGJC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