View Single Post
Old 08-23-2026, 02:40 PM   #12
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 53,989
Karma: 182150291
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Babysitting this morning and since they are napping, took 30 minutes to take a look at your .docx file.
  1. Downloaded the .docx file and opened in LibreOffice to cleanup some issues.
  2. Imported the docx file into calibre and converted to ePub (I have calibre set to allow extremely large files so only 3 output files.
  3. Opened the ePub with Sigil and ran epubcheck and epubveri. Way to many non-existent ID error, etc.
  4. Combined the HTML files into 1 file and used search and replace to add a Sigil split marker (<hr class="sigil_split_marker" />) before each h1.
  5. Split the file at the markers. This gave me 69 files.
  6. Removed all the IDs associated with the h1-h4 tags.
  7. Generated a new ToC which automatically put a sigil toc id for 2nd, etc. headers in a chapter.
  8. The ToC included h1-h4 and was rather large but functional.
  9. Regenerated the ToC using only h1. Generated a HTML ToC from that to replace the existing one.
  10. Regenerated the ToC using the h1-h4 headers. Generated a NCX file for ePub2 users (habit)
  11. Used calibre to convert the ePub to azw3. Close to 350MB due to the collection of images which ended up as a mix of png, jpeg and svg. Copied it to a Kindle PW4 and the ToC seems to work.
  12. Uploaded the azw3 to Google Drive. See link below.
  13. Need to hurry now since someone is starting their wakeup grumbling.

BOSS - python-docx.azw3

Let me know how it works for your Kindle.
DNSB is offline   Reply With Quote