Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50094

[Plugin] CombineNCXHeadings

$
0
0
Combines the chapter titles and chapter subtitles into single headings in the NCX TOC

Requirements
Plugin Type: Edit
MIT Licence(OSI)
Minimum Sigil requirement: v0.9.3 or higher
Python Requirements: Python 3.4+ (Bundled or External)
OS Requirements: Windows, OSX or Linux
*** Tested on Windows 10, OSX and Linux ***
Current Version: "0.1.0"

Installation
* Select Manage Plugins from the Plugins menu. In the dialog box, select either the Bundled Python or the External Python(Python 3.4+ should be installed on your computer to run this plugin externally).

* Click Add Plugin and select CombineNCXHeadings_vXXX.zip. This will load and install the plugin into Sigil, which you can then select and run using Plugins > Edit > CombineNCXHeadings.

Description
This plugin combines the chapter titles(as h1) and chapter subtitles(as h2) from the html files into single headings in the NCX TOC. The plugin user will also be able to:
  • Separately and individually style the word case of the chapter title and chapter subtitle parts of the combined headings in the NCX TOC.
  • Add a separator of choice between the chapter title and chapter subtitle parts of the combined NCX TOC headings.
  • Lone chapter titles(with no chapter subtitles) will also be styled in the user's chosen word case style.
  • This plugin will only create a single level NCX TOC.
For title case only, the plugin user can also more tightly control the title case output by adding the appropriate words to the ignore_titlecase variable in the plugin's associated JSON file. All words in the JSON string will automatically be excluded from title case conversion and will be displayed in lower case instead.

Changes:
Spoiler:

v0.1.0 -- Initial release

Attached Files
File Type: zip CombineNCXHeadings_v010.zip (22.3 KB)

Viewing all articles
Browse latest Browse all 50094

Latest Images

Trending Articles



Latest Images