Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-26-2019, 04:48 PM   #1
Doitsu
Grand Sorcerer
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: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
[Plugin] ShowSemantics

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

Released: August 8, 2023
Current Version: "0.2.3"

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. DiapDealer provided a PySide6/PyQt5 library.

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.2.3.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:	511
Size:	8.3 KB
ID:	172591  
Attached Files
File Type: zip ShowSemantics_v0.2.3.zip (122.1 KB, 256 views)

Last edited by Doitsu; 08-05-2023 at 04:04 AM. Reason: Updated for Qt 6.5.2 and Python 3.11.3
Doitsu is offline   Reply With Quote
Old 07-27-2019, 12: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,585
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, 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, 08: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: 27,547
Karma: 193191846
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


Forum Jump

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


All times are GMT -4. The time now is 10:42 PM.


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