2 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from librarian.book2anything import Book2Anything, Option
6 from librarian.parser import WLDocument
9 class Book2Txt(Book2Anything):
15 Option('-i', '--ignore-dublin-core', dest='parse_dublincore',
16 action='store_false', default=True,
17 help='don\'t try to parse dublin core metadata')
20 Option('-w', '--wrap', action='store', type='int', dest='wrapping', default=0,
21 help='set line wrap column')
24 Option('-r', '--raw', dest='raw-text',
25 action='store_true', default=False,
26 help='Produce raw text, without any surrounding info.')
28 transform = WLDocument.as_text
31 if __name__ == '__main__':