From: Radek Czajka Date: Mon, 7 Mar 2011 09:43:58 +0000 (+0100) Subject: vendor cover change X-Git-Tag: 1.7~204 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/e868b7e6511dfbb89e5a9dd69bbb7ef13c42620a?ds=sidebyside vendor cover change --- diff --git a/librarian/packagers.py b/librarian/packagers.py index 285a15f..054f068 100644 --- a/librarian/packagers.py +++ b/librarian/packagers.py @@ -57,6 +57,9 @@ class PdfPackager(Packager): class GandalfEpubPackager(EpubPackager): cover = cover.GandalfCover +class GandalfPdfPackager(PdfPackager): + cover = cover.GandalfCover + class BookotekaEpubPackager(EpubPackager): cover = cover.BookotekaCover diff --git a/librarian/res/cover-gandalf.png b/librarian/res/cover-gandalf.png index 3c15132..a5c8f50 100644 Binary files a/librarian/res/cover-gandalf.png and b/librarian/res/cover-gandalf.png differ diff --git a/scripts/book2partner b/scripts/book2partner index b121333..0488273 100755 --- a/scripts/book2partner +++ b/scripts/book2partner @@ -23,7 +23,9 @@ if __name__ == '__main__': parser.add_option('--bookoteka', action='store_true', dest='bookoteka', default=False, help='prepare files for Bookoteka') parser.add_option('--gandalf', action='store_true', dest='gandalf', default=False, - help='prepare files for Gandalf') + help='prepare EPUB files for Gandalf') + parser.add_option('--gandalf-pdf', action='store_true', dest='gandalf_pdf', default=False, + help='prepare PDF files for Gandalf') parser.add_option('--virtualo', action='store_true', dest='virtualo', default=False, help='prepare files for Virtualo API') parser.add_option('--prestigio', action='store_true', dest='prestigio', default=False, @@ -41,6 +43,8 @@ if __name__ == '__main__': packagers.BookotekaEpubPackager.prepare(input_filenames, options.output_dir, options.verbose) if options.gandalf: packagers.GandalfEpubPackager.prepare(input_filenames, options.output_dir, options.verbose) + if options.gandalf_pdf: + packagers.GandalfPdfPackager.prepare(input_filenames, options.output_dir, options.verbose) if options.virtualo: packagers.VirtualoEpubPackager.prepare(input_filenames, options.output_dir, options.verbose) if options.prestigio: