Hi everyone. I just received my PW2 (that's supposed to be able to show the page numbers that corresponds to the printed edition), and wanted to test out this feature. I ran one of my favorite books through finereader, saved the page as one HTML file per book page and made a script to merge these files together adding
Code:
<a class="pagebreak" id="pageNNN"></a>
at the beginning of every page and repaired the broken paragraphs.
I now have a book with a lot of markup that shows where the printed pagebreaks were. I wrote a script that auto-generated a
PageList to the ncx file and a separate
page-map.xml. So now I have an (almost) valid epub that shows the page numbers.
Is there a way I can convert this epub to azw3 with page numbers? I have tried kindlegen to convert it to something amazon-compatible but it didn't generate any apnx-file. I tried converting it with calibre, but calibre generated its own page numbers and removed my own. Kovids
documentation of the
APNX specifications are not something I want to dive into if I can void it; it contains both asin numbers (something which this book doesn't have) and other stuff regarding amazon-specific knowledge about the amazon-formats that I know next to nothing about.
Is there a tool I can use to generate the apnx-file for me? Perhaps a tool that I can incorporate into my linux bash-scripts? Once I have a correct apnx file I can transfer it to the kindle myself. Can I use calibre to keep the apnx together with the azw3 file, or do I have to handle the apnx file manually? Any hints on how to fix this will be greatly appreciated