Thread: templates
View Single Post
Old 08-28-2021, 08:01 PM   #9
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by hobnail View Post
What happens if I forget to run the EpubCheck plugin? What blows up when that line is missing? I.e., if I upload it here or read it on my kobo.
The unique-identifier is mandatory in EPUB.

Not too sure what happens on readers when it's missing. But its main uses are:
  • Font Obfuscation
  • Telling a file is unique.
    • On some devices.
    • Let's say you stick a 2nd EPUB with the same UUID onto your reader, the device may scan and say: "Nope, no new book here."
  • Store Notes/Highlights
    • On some devices.
    • On my old Nook, in an EPUB with matching UUID, the Notes/Highlights would carry over, being completely mangled since text/locations wouldn't match.

For more detail, also see:

2019: "@DiapDealer ISBN vs UUID"

Side Note: And I may be going cookoo, but didn't I remember a Sigil plugin made to randomly generate a new UUID? (Or was this just mentioned in passing?)

Side Note #2: Also see the EPUB spec on unique-identifier.

Quote:
Originally Posted by hobnail View Post
I think what I'm going to do is use the same template.epub file [...] then I'll fire up a new sigil and copy the one from that and paste it into the one I've just finished.
Yep. That's similar to what I do when I accidentally used the wrong file as my base.

Sigil, fresh EPUB, then go digging into the blank EPUB's UUID and carefully swap lines over.

(See thread above for more details on how to manually adjust UUID.)

Quote:
Originally Posted by Turtle91 View Post
I think Sigil will automatically correct that line if it is missing???
No. I don't believe so.

I just tested in Sigil 1.7.0 + 0.9.14.

I deleted the lines (in content.opf + toc.ncx), saved the EPUB, reopened, saved again, and the UUID lines continued to be missing.

Last edited by Tex2002ans; 08-28-2021 at 08:07 PM.
Tex2002ans is offline   Reply With Quote