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-28-2026, 04:56 PM   #1
BeckyEbook
Wizard
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 1,009
Karma: 3640080
Join Date: Jan 2017
Location: Poland
Device: Various
[Plugin] EditMetaInEPUB3 - Manage legacy meta entries in the EPUB3 metadata

Updated: July 28, 2026
Current Version: 0.0.9
Status: Experimental
Plugin type: edit

Plugin icon:


How it works:
This plugin provides a simple editor for legacy EPUB2-style metadata entries stored in an EPUB3 package document as:

Code:
<meta name="..." content="..."/>
According to the EPUB3 specification, these legacy metadata entries are ignored by EPUB3 reading systems and are intentionally not editable in Sigil's built-in EPUB3 Metadata Editor. However, they are still preserved in EPUB3 files and are used by some third-party applications and workflows.

Instead of manually editing the OPF file, this plugin allows you to safely manage these legacy metadata entries through a dedicated table-based interface.

This plugin was inspired by a MobileRead discussion about editing legacy EPUB2-style metadata preserved inside EPUB3 package documents.

The plugin:
  • Displays all legacy meta entries that use the name and content attributes.
  • Allows adding, editing and removing legacy metadata entries.
  • Ignores protected entries used internally by Sigil (such as cover).
  • Preserves legacy metadata entries exactly as entered.
  • Warns before closing the window if there are unsaved changes.
  • Prints a concise diagnostic log to the plugin console.

Important:
This plugin only edits legacy metadata entries stored as:

Code:
<meta name="..." content="..."/>
It does not edit standard EPUB3 metadata (such as dc:title, dc:creator or meta property="..." entries), which are already supported by Sigil's built-in EPUB3 Metadata Editor.

Installation:
1. Select Manage Plugins from the Plugins menu. In the Manage Plugins dialog box, select Use Bundled Python, if it isn't already selected. (If your Sigil version doesn't have a Use Bundled Python option, click one of the Auto buttons to detect the path or Set to manually select the Python interpreter path.)
2. Click Add Plugin and select EditMetaInEPUB3_v0.X.Y.zip. This will install the plugin, which you can then run via Plugins > Edit > EditMetaInEPUB3.

Issues:
This plugin is intended for advanced users who understand the structure of EPUB metadata.

Only legacy meta name/content entries are modified. Existing EPUB3 metadata, Dublin Core elements and meta property entries remain untouched.

Please report bugs or suggestions in this thread.

OS Requirements:
Windows/Linux/OS X.
Tested on Windows 10 and 11 with Sigil 2.8.1. It should also work on Linux and macOS.
*** Linux users will have to make sure that the PySide6 module is present if it's not already. ***

Sigil Requirements:
Minimum version of Sigil: 1.0.0 [not tested]

Credits/Thanks:
KevinH – for encouraging this plugin idea.

License/Copying:
GNU LGPL Version 2 or Version 3 your choice. Any other license terms are only available directly from the author in writing.

The plugin is currently in the Experimental stage, so I’m looking forward to your feedback. If no issues or bug reports come up within the next week or two, I will mark the plugin as Stable.
Attached Thumbnails
Click image for larger version

Name:	editmetainepub3-shot.png
Views:	10
Size:	12.4 KB
ID:	224725  
Attached Files
File Type: zip EditMetaInEPUB3_v0.0.9.zip (13.7 KB, 8 views)
BeckyEbook is online now   Reply With Quote
Old 07-28-2026, 04:57 PM   #2
BeckyEbook
Wizard
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 1,009
Karma: 3640080
Join Date: Jan 2017
Location: Poland
Device: Various
(Reserved for future use)
BeckyEbook is online now   Reply With Quote
Advert
Old 07-28-2026, 09:13 PM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,838
Karma: 7500000
Join Date: Nov 2009
Device: many
Added to the Sigil Plugin Index. Thank you!
KevinH is offline   Reply With Quote
Old Yesterday, 02:00 PM   #4
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 384
Karma: 518
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Installed and tested on MacBook Sigil 2.8.1 and Linux also 2.8.1 AppImage version. Superficial testing only, but the plugin works as defined.

The only thing I don't like is the behaviour on the MacBook when the plugin runner starts up on the desktop where Sigil is open, and then the window where the work is done flips to another desktop. But that's the same for all the edit plugins I've got, so it's not a fault of this new plugin - rather, it's a 'feature' of Mac. One that doesn't encourage me to do serious stuff on the Mac.
philja is offline   Reply With Quote
Old Yesterday, 02:11 PM   #5
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,838
Karma: 7500000
Join Date: Nov 2009
Device: many
I never see that on either of my Macs. Was a problem sometimes with the older Tk widget library but not with PySide6 so far.

Are you by chance telling macOS to open new apps on another Desktop/Workspace? Or maybe utilizing the Desktop tiling features that MacOS supports (but I personally hate).

Last edited by KevinH; Yesterday at 03:56 PM.
KevinH is offline   Reply With Quote
Advert
Old Yesterday, 02:32 PM   #6
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: 29,624
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Curious if something like this would help avoid losing the gui widget on some machines:

Code:
my_widget.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
placed just before:

Code:
my_widget.show()
There's also:

Code:
my_widget.setWindowFlags(QtCore.Qt.Tool)
Even though it doesn't seem to happen everywhere all the time, I think this behavior might have something to do with widgets that have no parent.
DiapDealer is offline   Reply With Quote
Old Yesterday, 03:52 PM   #7
BeckyEbook
Wizard
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 1,009
Karma: 3640080
Join Date: Jan 2017
Location: Poland
Device: Various
I tried adding:

Code:
editor.setWindowFlags(QtCore.Qt.Tool)
and tested it on Windows.

Unfortunately, it introduced an unwanted side effect. If I click on the Sigil main window while the plugin window is open, the plugin window disappears and I have no way to bring it back. Since it is a Qt.Tool window, it doesn't have its own taskbar button, so it becomes effectively inaccessible until the plugin is restarted.

With the current implementation, the plugin window has its own taskbar button on Windows, so even if it gets hidden behind Sigil, it can easily be restored.

I'll also test the suggested change on macOS, since I understand the behavior there may be different.

-----

However, if I use
Code:
editor.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
the plugin window remains above all other windows system-wide, even after switching to another application, which is also not the behavior I'm looking for.
BeckyEbook is online now   Reply With Quote
Old Yesterday, 05:40 PM   #8
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: 29,624
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Agreed. Neither of those options would be an acceptable solution.
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] ePub3-itizer - epub3 output plugin for Sigil KevinH Plugins 457 05-28-2025 06:14 PM
[Plugin] Epub2LegacyMetaData - legacy epub2 metadata editor Doitsu Plugins 24 07-21-2021 05:59 AM
Custom Metadata for Hierarchical type entries deletes existing entries ChrisMillward Calibre 0 08-26-2020 06:30 AM
Want to better manage titles/meta data PhoenixDown Amazon Kindle 1 04-16-2020 03:55 PM
Aura HD Ghost meta book entries in collections booklover6 Kobo Reader 4 09-19-2014 12:09 PM


All times are GMT -4. The time now is 02:42 AM.


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