from tempfile import NamedTemporaryFile
from librarian import OutputFile
-from librarian.cover import DefaultEbookCover
-from librarian import get_resource
def transform(wldoc, verbose=False, sample=None, cover=None,
- use_kindlegen=False, flags=None):
+ use_kindlegen=False, flags=None, hyphenate=True, ilustr_path=''):
""" produces a MOBI file
wldoc: a WLDocument
document = deepcopy(wldoc)
del wldoc
- book_info = document.book_info
-
- if not flags:
- flags = []
- flags = list(flags)
epub = document.as_epub(verbose=verbose, sample=sample,
- html_toc=True, cover=True, flags=flags)
+ html_toc=True, cover=cover or True, flags=flags,
+ hyphenate=hyphenate, ilustr_path=ilustr_path)
if verbose:
kwargs = {}
else: