kindle-epub-fix
kindle-epub-fix copied to clipboard
table of contents not working in modified file
I am not exactly sure what is causing the issue but the modified file is lacking the table of contents (as shown in image below), while the original file does have it, I provided a link to a google drive where you can find both files because github doesn't support uploading .epub files
link: https://drive.google.com/drive/folders/1bvcwH3hTRKdUYNy9AISt6dZhZqai8zur?usp=sharing
The problem is that the EPUB Table of Content has out-of-order chapter. Amazon does not support out-of-order chapter, so I think the Amazon converter just strip out the entire table of content to allow proper conversion.
I am not sure if this is easily fixable automatically, since the table of content is not necessarily flat. Moving the table of content item to the proper position is hard if it's hierarchical.
The problem with this book is that Chapter 41 is listed in Section 5 in the table of content, but in the actual page order has Chapter 41 come after Section 6 preface.
I will see what I can do, and at least show a warning about this problems.
Ah sorry I thought this is a proplem in the converter but this is more of an issue in the Kindle and the book itself
I also have an EPUB file whose ToC is not recognized by Kindle: https://cbetaonline.dila.edu.tw/getData.php?type=ebooks_export&export_type=epub&work=X1281
I don't know whether it is the same issue.