View Single Post
Old 06-08-2020, 01:02 PM   #37
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Hello, thanks for this plugin.

I am converting some epub2 files to epub3 and cleaning them up a bit.

The original epub2 files have a BookID in the form of a url. I want to replace them with a standard urn:uuid. This plugin seems like it could perfectly do that but when I tried it on a test file (open epub2 file, run plugin, no other actions), this problem is found and the log says it has been replaced, but in fact the uuid is not added to the opf and instead almost all the metadata has been removed.

Here is an example using a Project Gutenberg file.

IDErrorCheck Log:

Spoiler:
***** IDErrorCheck Log *****

toc.ncx(Book ID) ** line 6 **
Bad format: "http://www.gutenberg.org/19657"
Replaced with: "urn:uuid:4c6c0f8b-6fbe-4f91-97b9-3351409d4f5a


Original metadata in the opf:
Spoiler:

Code:
<?xml version="1.0" encoding="utf-8"?>
<package version="2.0" unique-identifier="id" xmlns:opf="http://www.idpf.org/2007/opf" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.idpf.org/2007/opf">
  <metadata>
    <dc:rights>Public domain in the USA.</dc:rights>
    <dc:identifier opf:scheme="URI" id="id">http://www.gutenberg.org/19657</dc:identifier>
    <dc:creator opf:file-as="Hugo, Victor">Victor Hugo</dc:creator>
    <dc:title>Notre-Dame de Paris</dc:title>
    <dc:language xsi:type="dcterms:RFC4646">fr</dc:language>
    <dc:subject>Historical fiction</dc:subject>
    <dc:subject>People with disabilities -- Fiction</dc:subject>
    <dc:subject>France -- History -- Louis XI, 1461-1483 -- Fiction</dc:subject>
    <dc:subject>Clergy -- Fiction</dc:subject>
    <dc:subject>Paris (France) -- History -- To 1515 -- Fiction</dc:subject>
    <dc:subject>Notre-Dame de Paris (Cathedral) -- Fiction</dc:subject>
    <dc:subject>Romances</dc:subject>
    <dc:date opf:event="publication">2006-10-29</dc:date>
    <dc:date opf:event="conversion">2020-05-10T08:25:36.400047+00:00</dc:date>
    <dc:source>https://www.gutenberg.org/files/19657/19657-h/19657-h.htm</dc:source>
    <meta name="cover" content="item1" />
    <meta name="Sigil version" content="1.2.0" />
    <dc:date xmlns:opf="http://www.idpf.org/2007/opf" opf:event="modification">2020-06-08</dc:date>
  </metadata>


Opf Metadata after the plugin:

Spoiler:

Code:
<?xml version="1.0" encoding="utf-8"?>
<package version="2.0" unique-identifier="id" xmlns="http://www.idpf.org/2007/opf" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:opf="http://www.idpf.org/2007/opf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <metadata>
    <meta name="cover" content="item1" />
    <meta content="1.2.0" name="Sigil version" />
    <dc:date xmlns:opf="http://www.idpf.org/2007/opf" opf:event="modification">2020-06-08</dc:date>
  </metadata>


Am I missing something? Is there different way I should do this?
Mister L is offline   Reply With Quote