09-11-2020, 11:51 AM | #1 |
Sigil Developer
Posts: 7,875
Karma: 5449552
Join Date: Nov 2009
Device: many
|
[Plugin] TOCSaver - save NCX ToC to allow Regen
Updated: September 11, 2020
Current Version: "0.2.0" See the attached TOCSaver_v*.zip License/Copying: GNU LGPL Version 2 or Version 3 your choice. Any other license terms are only available directly from the author in writing. Change Log:
Support for this plugin is only provided for Sigil 1.0 or later. This plugin requires Sigil 1.0 or later to even operate. Description This plugin is only needed if the current NCX ToC is not based on heading tags (or the heading tags contents are incomplete in some way). It will effectively save the NCX ToC back into the xhtml files so that the ToC Regeneration tools have a chance at recreating something close to the original. To accomplish this, the plugin parses the current NCX ToC and follows those links back to the destination xhtml files and fragments and if need be either adds the title attribute to the current heading tag or alternatively will inject a hidden heading with display:none set with the appropriate contents. Before Running on ePub3 This plugin will only parse the NCX ToC. So if you have an epub3 and want to save the Nav ToC, then use Sigil's ePub3 Tools to generate an NCX from the current Nav before launching the plugin. Notes Since this plugin could make changes to many xhtml files, it would be either a good idea to make a CheckPoint before running the plugin, or at the very least do a File Save-As under a new name, to make sure nothing is ever lost. If you do run into cases where the plugin misses things, I would appreciate you PMing KevinH here with a sample epub that illustrates the issue so that the plugin can be made more robust. |
09-11-2020, 11:52 AM | #2 |
Sigil Developer
Posts: 7,875
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Reserve Follow Up in case this thread ever needs to expand
|
09-11-2020, 05:15 PM | #3 |
Groupie
Posts: 164
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Haha, I love the icon
Thanks for this plugin, really brilliant. |
09-12-2020, 11:13 AM | #4 |
Sigil Developer
Posts: 7,875
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Yes, although the piggy-bank turned out to be not very pig coloured, it does the job. You gotta love Inkscape's svg editor! Nothing else like it and free. I have it installed on macOS just for things like this even though it requires X11 and XQuartz just to run.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindler previewer not recognizing toc.ncx file, my html toc, or the start point... | petercrowell | Kindle Formats | 2 | 05-01-2012 08:14 AM |
Toc.ncx | JDawg | Amazon Kindle | 11 | 07-29-2011 04:05 AM |
Toc.ncx question | skypilotpete | Workshop | 3 | 07-09-2011 07:10 PM |
Inline TOC from toc.ncx | elmago79 | Kindle Formats | 38 | 03-25-2011 12:56 PM |
Use Regex to Code an Inline TOC, from an External TOC's .ncx File | mostlynovels | ePub | 2 | 03-16-2011 12:15 PM |