Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-26-2012, 12:52 PM   #1
mtrahan
Colonel Mustard
mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.
 
mtrahan's Avatar
 
Posts: 90
Karma: 1426
Join Date: Feb 2010
Location: Montreal
Device: iPhone 6, Kindle Paperwhite 2, iPad 2
Sigil 0.5.3 keeps rebuilding my content.opf file from scratch

Old routine, new problem? I've been doing the same thing in the content.opf files I've been working on for a year now and recently Sigil started rebuilding them from scratch, saying they were broken. Only things I add is:
Quote:
<dc:identifier opf:scheme="ISBN">ISBN#</dc:identifier>
<dc:date opf:event="original-publication">2008-10-14</dc:date>
<dc:date opf:event="epub-publication">2012-04-30</dc:date>
Unless I'm mistaken, I've been doing exactly this for a year, adding these 3 informations, and I've never had any problem. What am I doing wrong here? Or what is wrong with Sigil?

Thank you in advance,

Michael

PS. Feel free to move my post to the ePub forum if it happens to be an ePub problem and not a Sigil problem.

Edit: And when content.opf file is rebuilt, all the files in the spine lose their order. Why is that?

Last edited by mtrahan; 04-27-2012 at 12:21 PM. Reason: Another info/question.
mtrahan is offline   Reply With Quote
Old 04-26-2012, 10:18 PM   #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: 27,533
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Are you sure you're not overwriting something with those additions? I'm only asking because I can add those three items to existing epubs and save them with no broken/rebuilt OPFs.

My guess is you might be overwriting the existing dc:indentifier entry—which is also being referenced as the unique-identifier in the "package" tag. That will result in a broken/rebuilt OPF. You'll want to add the ISBN identifier to the dc-metadata... not overwrite the existing one.

Quote:
Edit: And when content.opf file is rebuilt, all the files in the spine lose their order. Why is that?
In short... the spine order is lost BECAUSE the opf had to be rebuilt. It also loses the metadata that was previously defined. I realize that's not a very satisfying answer, but it's why I always make sure I have a good backup copy of the epub before I make any manual changes to the OPF... because one simple "Save" when your OPF file happens to be in a funky state, and you suddenly have a lot of stuff to fix.

One more reason to use Sigil's GUI metadata editor to initially add new metadata. You can always alter the details manually later if need be.

Last edited by DiapDealer; 04-26-2012 at 10:43 PM.
DiapDealer is online now   Reply With Quote
Advert
Old 04-27-2012, 12:20 PM   #3
mtrahan
Colonel Mustard
mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.
 
mtrahan's Avatar
 
Posts: 90
Karma: 1426
Join Date: Feb 2010
Location: Montreal
Device: iPhone 6, Kindle Paperwhite 2, iPad 2
Overwriting? You mean that if there is already a <dc:identifier id="bookid">urn:uuid:KEY</dc:identifier> in my content.opf file, I can't add the ISBN aswell in the way I've been doing it? Dang, how come I don't know that and FlightCrew never told me?

Quote:
Originally Posted by DiapDealer View Post
One more reason to use Sigil's GUI metadata editor to initially add new metadata. You can always alter the details manually later if need be.
Whoa! I'm not very proud to say that I never noticed that there was a 'More' box in the metadata editor that gave access to something else than title/author/language... Is that something new? I can't believe I never saw that. Thank you for that. In my specific case, for example, is there a way to add those two separate dates — original-publication and epub-publication — with the GUI editor? Doesn't seem so. Closest match is "Date of publication".

Well... Thanks a lot. This was quite helpful. Good thing I posted this question, it was about time I learn about this GUI medata editor! Karma for you!

mtrahan is offline   Reply With Quote
Old 04-27-2012, 12:27 PM   #4
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Actually the more option is there for quite some time. At least in 0.3 I believe.
The metadata you can add there are the official metadata according to the specs. You cannot add metadata there which is not according to the spec. So, if you want to add the metadata for series Calibre style, you cannot do that (as an example). You need to paste that directly in the opf.
Toxaris is offline   Reply With Quote
Old 04-27-2012, 12:35 PM   #5
mtrahan
Colonel Mustard
mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.
 
mtrahan's Avatar
 
Posts: 90
Karma: 1426
Join Date: Feb 2010
Location: Montreal
Device: iPhone 6, Kindle Paperwhite 2, iPad 2
Quote:
Originally Posted by Toxaris View Post
Actually the more option is there for quite some time. At least in 0.3 I believe.
The metadata you can add there are the official metadata according to the specs. You cannot add metadata there which is not according to the spec. So, if you want to add the metadata for series Calibre style, you cannot do that (as an example). You need to paste that directly in the opf.
Okay, so what do you all do in case of a book with paper and ePub versions published at different times? Do you put both dates somewhere in the metadata or you just keep one?

Is my first solution acceptable? This one:

Quote:
<dc:date opf:event="original-publication">2008-10-14</dc:date>
<dc:date opf:event="epub-publication">2012-04-30</dc:date>
That is if I stop overwriting the dc:identifier entry...

Thanks again,

Michael
mtrahan is offline   Reply With Quote
Advert
Old 04-27-2012, 12:43 PM   #6
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by mtrahan View Post
And when content.opf file is rebuilt, all the files in the spine lose their order.
There's a simple workaround. Immediately after rebuilding, the files in the file-browser window are still in the old (correct) order. Now change the position of just one file by dragging it to a new place and then drag it back. The spine will be updated with the old order.
mmat1 is offline   Reply With Quote
Old 04-27-2012, 01:00 PM   #7
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: 27,533
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by mtrahan View Post
Okay, so what do you all do in case of a book with paper and ePub versions published at different times? Do you put both dates somewhere in the metadata or you just keep one?

Is my first solution acceptable? This one:
Code:
<dc:date opf:event="original-publication">2008-10-14</dc:date>
<dc:date opf:event="epub-publication">2012-04-30</dc:date>
That is if I stop overwriting the dc:identifier entry...
Those two entries shouldn't cause any problems if added to the OPF manually. Or you could use the pre-fabbed "Date of creation, Date of modification, Date of publication" basic items to initially create the metadata entries... then manually alter them to your desired "original-publication" and "epub-publication" titles later.
DiapDealer is online now   Reply With Quote
Old 04-28-2012, 09:10 AM   #8
mtrahan
Colonel Mustard
mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.
 
mtrahan's Avatar
 
Posts: 90
Karma: 1426
Join Date: Feb 2010
Location: Montreal
Device: iPhone 6, Kindle Paperwhite 2, iPad 2
You guys rock—thanks again!
mtrahan is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TWO OPF files or something like Media Queries in the OPF file for KF8 and MOBI? DHahn Kindle Formats 3 04-17-2012 04:06 AM
Sigil corrupting content.opf (0.4, 0.5) cyana Sigil 21 02-11-2012 05:25 PM
Sigil resets edits to content.opf adv_dp_fan Sigil 7 09-28-2011 06:50 PM
editing OPF on sigil and adding flash file shlomof Sigil 5 02-23-2011 02:39 PM
cleaning the content.opf file Adjust ePub 6 09-01-2010 05:54 PM


All times are GMT -4. The time now is 06:35 AM.


MobileRead.com is a privately owned, operated and funded community.