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

Why is the menu at the end of the book? #15

Open
advancejar opened this issue Nov 23, 2021 · 3 comments
Open

Why is the menu at the end of the book? #15

advancejar opened this issue Nov 23, 2021 · 3 comments

Comments

@advancejar
Copy link

First of all, thank you for the code.
I generated an .epub file and converted it to .mobi file with calibre and put it into kindle, I found that the directory is at the end of the document, how do I need to set it?

@Evolution0
Copy link

Evolution0 commented Dec 1, 2021

I would crack the EPUB open first with 7zip (or an alternative, its just a zip with a different file extension) then check the content.opf and see if the TOC somehow got put last in the Manifest and Guide section. If not and its up top I would look closer at your MOBI conversion step.

Quick solution if it is out of place is to simply move the lines pointing to the TOC to the top of each of those sections, recompress it as a zip (or edit in-place if your archive program allows) and rename it to an EPUB.

@anqxyr
Copy link
Owner

anqxyr commented Dec 1, 2021

Seconding Evolution0's advice. Sadly I'm currently busy with life stuff and haven't had time for open source projects in the past few years.

@advancejar
Copy link
Author

thanks for your reply. I will handle it myself.

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

3 participants