[epub, mobi] Fix for a problem with epubs, mobi in drama ebooks without acts
[librarian.git] / scripts / book2html
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 Book2Html(Book2Anything):
11     format_name = "HTML"
12     ext = "html"
13     uses_cover = False
14     uses_provider = False
15     transform_flags = [
16         Option('-r', '--raw', dest='full-page',
17                 action='store_false', default=True,
18                 help='output raw text for use in templates')
19     ]
20     parser_args = [
21         Option('-i', '--ignore-dublin-core', dest='parse_dublincore', 
22                 action='store_false', default=True,
23                 help='don\'t try to parse dublin core metadata')
24     ]
25
26
27 if __name__ == '__main__':
28     Book2Html.run()