![]() |
Calibre ePub TOC and Sigil
I apologize before hand if this is more of a Sigil issue, but it only happens to me with ePub books I've generated/converted with Calibre, so I am going on a hunch that it has something to do with ePub generation with Calibre.
I have converted all of my LRF files to ePub in my Calibre library. When I open these ePub books with the Calibre ePub viewer, or inside my Sony Reader, the TOC displays fine. However, every single ePub that I have opened in Sigil after conversion with Calibre does not recognize that a TOC exists. Furthermore, if I make some edits in Sigil and save, the TOC is completely removed (which makes sense, as when the file was opened it was telling me the file had no TOC.) Has anybody else encountered this issue? After peeking into the ePub file after Sigil has saved it and comparing it to my original Calibre ePub, I notice that the structure inside is quite different. Relevant? I have worked around the issue thus: 1. Open ePub from Calibre DB with 7-zip and save the toc.ncx to the folder where the ePub is located. 2. Edit the ePub with Sigil and Save. (This creates a toc.ncx file in the new ePub that has no TOC entries.) 3. Edit the toc.ncx file that I saved to the folder and adjusts the paths to the new ePub folder structure that Sigil generated when saving. 4. Replace the empty toc.ncx file in the ePub with my edited one that I fixed the paths on to match the new ePub structure. Kind of a bear to have to do this every time I want to edit en ePub in Sigil that is in my Calibre DB and preserve my TOC. I am using the latest version of Calibre on Windows. Any suggestions or help would be much appreciated. |
Sigil currently discards any existing TOC and rebuilds it from H1, H2, H3 tags only. Preserving existing TOC is on the Sigil todo list.
|
This is a Sigil issue, see this issue in Sigil's bug tracking site.
Your workaround is as good as any other for the moment. If the edits you're doing are simple, try the new Tweak ePub feature. G |
Thank you very much for the quick answers. This renders Sigil fairly useless as an ePub editor for me at the moment, as all of my ebooks have been generated with Calibre. However, if I have extensive edits that I need to do to a book, it is worth it to me to do my workaround so that I can use Sigil's very nice editing environment.
Looking forward to a future version of Sigil that has this issue resolved! |
| All times are GMT -4. The time now is 06:32 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.