Thread: UUID creation?
View Single Post
Old 05-23-2013, 08:55 AM   #2
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: 28,645
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Turtle91 View Post
Is there some magic formula or scheme that should be followed when creating a new UUID?
Depends on what kind of Unique ID you want to create. Random urn? ISBN? Your own custom scheme?

Quote:
And, more importantly, does Sigil have a function for doing that?
No (except when opening a new blank epub). The only way to get Sigil to generate a new urn:uuid (that I know of) is to completely remove the <dc:identifier></dc:identifier> entry from the opf file. Unfortunately, this also has the rather unfortunate side effect of Sigil believing your opf is broken--so it creates a new opf from scratch. Something you definitely don't want happening.
DiapDealer is offline   Reply With Quote