[epub, mobi] CSS improvements - better interoperability on various readers
[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 librarian.book2anything import Book2Anything, Option
8
9
10 class Book2Epub(Book2Anything):
11     format_name = "EPUB"
12     ext = "epub"
13     uses_cover = True
14     uses_provider = True
15     transform_flags = [
16         Option('-w', '--working-copy', dest='working-copy',
17                 action='store_true', default=False,
18                 help='mark the output as a working copy')
19         ]
20
21
22 if __name__ == '__main__':
23     Book2Epub.run()