ZoteroNotesImport
A Sigil Plugin
Imports Zotero note items into epubs
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, Linux or OSX
*** Tested on Windows 7, 8 & 10 only ***
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 ZoteroNotesImport_vXXX.zip. This will load and install the plugin into Sigil, which you can then run by selecting Plugins > Edit > ZoteroNotesImport
Description
This plugin can import endnote items from a Zotero export file which can then be appended to any user-selected chapter or reference section in the epub. This plugin also gives users more formatting control over the imported note items(See Plugin Run for details).
Note: This plugin should only be used to import Zotero files containing notes that are formatted using Zotero's Chicago Style(CMOS). If you use any other note formatting style with Zotero other than CMOS(there are over 400 other different styles available in Zotero) then you will probably get errors.
User Options(via dialog)
This dialog allows the user to further format all imported note items in the following way:
* Remove all italics formatting -- Removes italic formatting from all note items.
* Remove all hyperlink formatting -- Removes hyperlink formatting from all note items.
* Delete all hyperlinks -- Deletes hyperlinks from all note items.
* Use a smaller font size for all note text -- Use a font size of 10.5pt for all note text
* Add text justification for all entries -- Adds text justify for all note entries
* Add consecutive numbering to all entries -- Consecutively numbers all ref/note entries(Added in v0.1.2)
* Add superscript numbering - Adds consecutive superscript numbering to all entries(Added in v0.1.2)
* Add superscript numbering with brackets - Add consecutive superscript numbering with brackets to all entries(Added in v0.1.2)
Plugin Run
Adding Zotero notes at the end of a chapter or reference section in your epub
* In the Zotero app, select all required note items using click/shift-click.
* Then right click and choose Create Bibliography from items...
* In the Create Citation/Bibliography dialog, choose your CMOS note style(fullnote or note), ensure that Notes and Save as HTML are selected and then click OK. Save the Zotero file to your desktop.
*If you are appending notes to a chapter, then be sure to click and select the relevant Sigil file for appending the notes and then just run the plugin
* If you are creating a new reference section at the end of your epub, then you should first create a new blank file by right clicking on the Text directory in Sigil's Book Browser and select Add Blank HTML File. Be sure to click and select this blank file and then just run the plugin
Caveat
Please note that this plugin only gaurantees success without error if plugin users import Zotero files containing notes that are only formatted using Chicago Style's "fullnote" or "note" styles. If any other Zotero styles are used other than CMOS then this will also generate errors.