Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-image cover? #303

Open
aaannestad opened this issue Mar 4, 2024 · 0 comments
Open

Non-image cover? #303

aaannestad opened this issue Mar 4, 2024 · 0 comments

Comments

@aaannestad
Copy link

Is it possible to create a cover for an ebook that's just pure text, and not an image?

My initial guess on how to do it was this, and it generated an error involving self._get_nav(item):

cover = '''<head></head>
        <title></title>
        <body style="text-align: center">
            <h1>{title}</h1>
        </body>
        '''.format(title=self.novel_title)
self.book.set_cover('cover.html',cover)

I assume the issue is that set_cover() is expecting an image file, but I'd be surprised if there's no way to define a cover that's plain text, even if that involves instead adding it via other means.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant