guardian-for-kindle icon indicating copy to clipboard operation
guardian-for-kindle copied to clipboard

Periodical navigation buggy on Kindle Touch

Open danchoi opened this issue 13 years ago • 4 comments

I generated a MOBI file for the guardian using the Python script and copied it to my Kindle Touch. Most of it works well, except the two-column table of contents. If you click the Sections on the left, the Articles on the right do not update correctly.

danchoi avatar Jan 09 '12 15:01 danchoi

Hi @danchoi - thanks for reporting this problem. Unfortunately, I don't see any reasonable way to go about solving this type of problem at the moment. I don't see the problem you describe on my Kindle 3rd generation, but there are certainly more subtle problems with the navigation on that device as well.

Unless someone gets hold of a .opf and .ncx that works properly, or Amazon actually release the specification for those files for the case of generating periodicals, I'm afraid I'm not sure there's a way to fix these kinds of bugs. We can hope, I suppose...

mhl avatar Jan 09 '12 15:01 mhl

@mhl The problem is specific to the Kindle Touch. I actually solved the problem by tinkering for an hour with the NCX and OPF section. I'm not sure exactly how I did it yet, but I'll let you know when I've pinned this down. Thank you for writing and releasing this script.

danchoi avatar Jan 09 '12 16:01 danchoi

Great :) I look forward to hearing what the required changes are - perhaps they will fix some of the other problems too...

mhl avatar Jan 09 '12 16:01 mhl

This is what I think I did. Here is a gist for reference. The top is an opf generated by your Python script. The bottom is an opf generated by my Ruby script. I also include the nav-contents.ncx that my script generated.

https://gist.github.com/1589856

What's different about mine is that I have manifest items not just for each article but also each section. Also, in the <spine> section, I include the section items along with the article items in the same flat ordered list. At any rate, this is what I changed to get the table of contents working in the Kindle Touch.

I hope this is clear enough and that it helps. I'm not 100% percent sure that everything I changed is necessary to get the navigation working on the Kindle touch, but at least some of it is, based on my experiments.

danchoi avatar Jan 10 '12 16:01 danchoi