Add support for addition cover logos.
[librarian.git] / scripts / book2epub
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 #
4 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
5 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
6 #
7 from __future__ import unicode_literals
8
9 from librarian.book2anything import Book2Anything, Option
10
11
12 class Book2Epub(Book2Anything):
13     format_name = "EPUB"
14     ext = "epub"
15     uses_cover = True
16     uses_provider = True
17     transform_flags = [
18         Option('-w', '--working-copy', dest='working-copy',
19                 action='store_true', default=False,
20                 help='mark the output as a working copy')
21         ]
22     transform_options = [
23         Option('-t', '--html-toc',
24                 action='store_true', dest='html_toc', default=False,
25                 help='with inline html toc')
26         ]
27
28
29 if __name__ == '__main__':
30     Book2Epub.run()