View Single Post
Old 01-06-2016, 03:46 PM   #10
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,741
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by eschwartz View Post
Can you get calibre? As I said, you can do a final bulk Modify EPUB on all your EPUBs, to remove all non-DC metadata.
Removing all non-DC metadata will also remove the cover image metadata entry that some apps use.
And since I haven't figured out how to prevent Calibre from adding its own metadata entries and bookmark files I don't think that metadata handling with Calibre would be such a good idea.


@sbin:
I've created an alpha version of an Python 3 Sigil output plugin that'll only delete the following Sigil metadata entry:

Code:
    <meta content="XXX" name="Sigil version"/>
(It'll also change the doctype of XHTML files of epub files saved with Sigil 0.8.x.)

from:
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
to

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Install the plugin as usual and select it via Plugins > Output > DeleteSigilMetadata.

(The plugin will save the updated file to the Desktop.)

Since the plugin will update the .opf file and repack the ePub file and I'm not a programmer, there's a slight possibility that this'll introduce new problems.

If you decide to use the plugin in a production environment, you might want to test it with a number of files. I.e. unzip the original epub and the epub generated by this plugin and compare both folders with a diff program.

USE AT YOUR OWN RISK!


In case you're looking for a plugin, use KevinH's sampleOutput.zip instead.

Last edited by Doitsu; 01-30-2016 at 12:53 PM.
Doitsu is offline   Reply With Quote