Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 07-26-2019, 05:48 PM   #1
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,800
Karma: 16220781
Join Date: Dec 2010
Device: Kindle PW2
[Plugin] ShowSemantics

[Plugin] ShowSemantics - Shows landmarks and guide items in a table

Released: January 28, 2020
Current Version: "0.1.5"

This plugin is primarily intended for epub3 authors interested in creating epub2 compatible epub3 books. The plugin also works with epub2 books, however, if you only work with epub2 books, you can display the same information by selecting Tools > Reports... > All files.

Disclaimer: Even though it's unlikely that the plugin will somehow corrupt the epub that you're working on or crash Sigil, you might want to save your ePub in Sigil before running this plugin.

Credits: Both BeckyEbook and odamizu provided helpful feedback during the beta test. BeckyEbook also created the plugin icon.

System requirements

This plugin requires Sigil 0.9.8 or higher. If you uncheck the Use Bundled Python option, you'll also need to install Python, PyQt5, and lxml.

Installation

1. Select Manage Plugins from the Plugins menu and enable the Use Bundled Python option, if it isn't already enabled.
2. Click Add Plugin and select ShowSemantics_v0.1.5.zip. This will install the plugin, which you can select via Plugins > Edit > ShowSemantics.

Settings

By default, the plugin will only display landmarks, guide items and cover image metadata and manifest entries. However, advanced users can also enable the following repair options by editing ShowSemantics.json:

"fix_cover": false, (epub2 and epub3 books)

Many epub3 apps won't display a cover image, if the cover-image manifest properties attribute is missing. If you enable this setting, the plugin will try and add (or update) cover image metadata entries and properties.

"add_landmarks": false (epub3 books only)

Many epub3 books have EPUB2 guide sections but no EPUB3 landmarks sections. However, many epub3 apps ignore EPUB2 guide sections. If you enable this setting, the plugin will try to add landmarks based on guide item values. (This'll only work, if the book contains an EPUB2 guide section.)

"add_guides": false, (epub3 books only)

Many epub3 books have no EPUB2 guide sections, because they're usually ignored by epub3 apps. However, if you want to create epub2-compatible epub3 books, you can enable this setting to have the plugin generate EPUB2 guide items from EPUB3 landmarks. (This'll only work, if the book contains an EPUB3 landmarks section.)

BTW, if you don't enable any of these settings, you can change the following entry in plugin.xml to true:

<autoclose>false</autoclose>

This'll hide the Plugin Runner window and you won't have to click the OK button to close the Plugin Runner window.

License: GNU General Public License v3 (GPL-3)
Attached Thumbnails
Click image for larger version

Name:	Semantics.PNG
Views:	100
Size:	8.3 KB
ID:	172591  
Attached Files
File Type: zip ShowSemantics_v0.1.5.zip (116.2 KB, 13 views)

Last edited by Doitsu; 01-28-2020 at 12:06 PM. Reason: New version with Darkmode suppport
Doitsu is offline   Reply With Quote
Old 07-27-2019, 01:25 AM   #2
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,153
Karma: 1900384
Join Date: Mar 2015
Device: Kindle Oasis1 & Voyage, iOS
I really like this plugin. Doitsu!

And thank you BeckyEbook for the nifty plugin icon
odamizu is offline   Reply With Quote
Advert
Old 07-29-2019, 09:34 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 21,790
Karma: 120048902
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Looks useful ... Thanks! I added it to the plugin index.

*Note that those who may be using non-bundled Python installations don't really need to install bs4. You seem to be using the sigil_bs4 module exclusively, and that's always available to plugins (bundled-python or non-).
DiapDealer is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FileType Plugin] YVES Bible Plugin ClashTheBunny Plugins 25 10-13-2019 12:32 AM
[Plugin] QuickPrefsEdit - Edit plugin prefs json files. slowsmile Plugins 3 07-25-2018 09:14 PM
Goodread Perception Expander plugin not shown on plugin list (kobo h2o) www KOReader 4 09-28-2017 11:34 AM
Problem with my ScrambleEbook plugin and the Plugin Updater tool jackie_w Development 14 01-19-2017 11:49 PM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 03:24 AM


All times are GMT -4. The time now is 05:07 AM.


MobileRead.com is a privately owned, operated and funded community.