View Single Post
Old 11-12-2023, 05:45 AM   #1
derrickoswald
Junior Member
derrickoswald began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2023
Device: Sigil
non-conforming meta element name="Sigil version"

It seems that Sigil adds a non-conforming meta element to the metadata in the opf file.

It adds (at least in the Linux flatpack Version 2.0.1, Qt 5.15.10 that I have):

<meta name="Sigil version" content="2.0.1"/>

From the ePub 3.3 specification of metadata contents, the meta element can only have attributes:
  • dir [optional]
  • id [optional]
  • property [required]
  • refines [optional]
  • scheme [optional]
  • xml:lang [optional]

Is there a way to have Sigil insert a correct meta element, e.g. creator with a role:

<dc:creator id="software">Sigil 2.0.1</dc:creator>
<meta refines="#software" property="role" scheme="marc:relators">oth</meta>

or any other correct syntax?

I see this previous question from 2016, with an answer that basically says to build the code yourself, or use an output plugin.

For the "build it yourself" choice, I've done that on Linux, patching together various instructions (what a mess that is, but that's a different thread), but sadly, I see no icons in the UI so it's not a usable version.

Would the second "output plugin" option really work? There is only half an interface:
Code:
# metadata get/set

    def getmetadataxml(self):
        # returns a utf-8 encoded metadata xml fragement
        return self._w.getmetadataxml()
but sadly, there is no setmetadataxml() method.
Any suggestions?
derrickoswald is offline   Reply With Quote