AlanHK...I had some spare time today so I wrote a quick and dirty plugin to try and solve your sequential chapter heading problem. It's a small plugin and please be aware that I haven't tested it that thoroughly. But it seems to work without any major problems.
The plugin does the following:
* It inserts chapter headings in the relevant epub xhtml files according to your mark up.(See Plugin Run for details)
* It inserts the chapter headings and chapter numbering(consecutively) per xhtml file in Sigil's Book Browser.
* This plugin should work on both epubs and imported html docs.
* The dialog allows the user to type in and add the "chapter" part of the heading either in title case, lower case or upper case i.e. whatever you type into the "Type heading suffix" dialog textbox will be used as the main heading throughout.
* The dialog also allows the user to select either numeric chapter headings or chapter headings that use roman numerals. You are only allowed to have a maximum of 50 chapters in your epub if you use chapter headings with roman numerals, otherwise there will be errors.
* Depending on whether you use h1 or h2 heading styles, be sure that the styles for these headings are already properly defined by you in the css otherwise their default styling will be used. This plugin does not add or change any styling in the css.
Plugin run
Before you run this plugin you must first use a marker that you can insert in Sigil's Book View to denote the required locations of your chapter headings in each of the xhtml files. The following two symbols must be used together as the marker for the chapter heading locations -- @#(at + hash symbols). Use the latter symbols to mark where you want your consecutively numbered chapter headings to be placed. After you do this just run the plugin and the headings will be automatically added and formatted according to your mark-up and dialog choices.
Lastly, I'm not intending to release this plugin properly unless more people ask me to do so on this thread. I say this because I honestly can't see many other Sigil users being that interested in this plugin.
Last edited by slowsmile; 07-01-2018 at 07:46 PM.
|