Support for <animacja> in HTML.
[librarian.git] / scripts / book2mobi
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 Book2Mobi(Book2Anything):
13     format_name = "MOBI"
14     ext = "mobi"
15     uses_cover = True
16     cover_optional = False
17     uses_provider = True
18
19     transform_options = [
20         Option('-k', '--use-kindlegen',
21                 action='store_true', dest='use_kindlegen', default=False,
22                 help='use kindlegen tool instead of Calibre')
23         ]
24
25
26 if __name__ == '__main__':
27     Book2Mobi.run()