![]() |
#1 |
Dylanologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
|
Calibre Date Format Hinders My Publishing
ERROR ... .epub/content.opf(12): date value '2010-06-09 00:00:00-04:00' is not valid, YYYY[-MM[-DD]] expected
I know, I know, the Calibre date is more precise. However, this is stopping me from publishing ePubs to the Apple iBookstore. I opened my ePub files in Sigil and tried to find and alter a line, but to no avail. I'm not a programmer, I'm a writer and publisher. What can I do to get the correct line of code, that is, the DATE, into epubcheck 1.0.5 desired state? |
![]() |
![]() |
![]() |
#2 |
Bookaholic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
|
You can change the .epub extension to .zip and open the zip file to find the content.opf file. You can edit the date line of the content.opf in notepad or another text editor.
If you're using Windows you don't need to unzip. Just open the zip, drag out the content.opf, edit it, drag it back to the zip and when asked if you want to replace say yes. Then change the extension back to .epub |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 | |
Dylanologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
|
Quote:
Thanks for your help. |
|
![]() |
![]() |
![]() |
#5 | |
Dylanologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |||
Bookaholic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
|
Quote:
Quote:
EDIT: I checked again and line 7 also has a date in it... Quote:
EDIT AGAIN: I ran the epub I'm looking at through epubcheck and it appears it's the dc:date line that causes the error. Having to get through epubcheck error free must be a real pain for the big publishers. Almost every commercial epub I've purchased from a big publisher fails it. Last edited by AnemicOak; 06-09-2010 at 11:44 AM. |
|||
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Yes, that's why I suggested you ask the Apple Bookstore why they are doing this. If it's a problem with their EPUB checking software, maybe they can get it fixed. If it's a special non-EPUB requirement they have, then maybe they can provide software to make the changes needed for valid EPUBs to be converted to their requirements.
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
That line is optional Calibre metadata. EPUB checks should ignore it, other than to check that the optional format is in compliance. Be aware that opening an EPUB in Calibre's reader inserts Calibre bookmark info into the file. That's also a valid EPUB option, but some EPUB checking software has complained about it, and you probably don't want your personal bookmarks in a book you sell.
|
![]() |
![]() |
![]() |
#9 |
Dylanologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
|
|
![]() |
![]() |
![]() |
#10 |
Bookaholic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
|
Very strange since epubcheck is complaining about it it should be there. Can you attach your content.opf from the unzipped ePub to a post here so we can take a peek at it?
|
![]() |
![]() |
![]() |
#11 |
Dylanologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
|
That may not be necessary. I went to a different epub file, unzipped it, and found the <dc:date> line. I am now in the process of modifying it and repackaging. I'll keep you posted. Thanks for sticking with me on this.
|
![]() |
![]() |
![]() |
#12 |
Bookaholic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
|
|
![]() |
![]() |
![]() |
#13 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jun 2010
Device: Kindle, iPad
|
Having Same Problem with Date
I'm working on the same issue, where the output content.opf file doesn't contain a date or timestamp tag. I've created a date based on Starsons response, then after submitting it to ePubCheck had to delete the all but the year-month-day.
However, now I'm getting an unfinished element warning at the same location. I've looked at other epub files, but they weren't created by Calibre. Could someone look at the metadata below and tell me what I'm doing wrong? Thanks. Dan <?xml version="1.0" encoding="UTF-8"?> <package xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookID" version="2.0"> <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns ![]() <dc:title>The Book Title</dc:title> <dc:creator opf:role="aut" opf:file-as="Name, Author">Author Name</dc:creator> <dc:date>2010-06-11</dc:date> <dc:contributor opf:role="bkp">calibre (0.7.1) [http://calibre-ebook.com]</dc:contributor> <dc ![]() ![]() <dc:identifier id="BookID" opf:scheme="UUID">862d479e-08f2-4fe5-aec5-7f2ac92cd3fa</dc:identifier> <meta name="cover" content="cover1.jpeg"/> <meta name="Sigil version" content="0.2.0"/> </metadata> |
![]() |
![]() |
![]() |
#14 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jun 2010
Device: Kindle, iPad
|
Oh jeez,
found my error... was looking at the wrong content.opf file. Though I did have to manually insert the date tag to comply (using version 0.7.1) |
![]() |
![]() |
![]() |
#15 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Date Format | mrbillb | Calibre | 3 | 09-07-2010 08:44 PM |
UK date format, is it possible? | Mnementh | Feedback | 42 | 08-08-2009 03:06 AM |
change the date format | Valwit | Sony Reader | 0 | 04-14-2009 08:30 AM |
PRS-500 Date format | AprilHare | Sony Reader Dev Corner | 1 | 11-14-2008 07:53 AM |
Question: How to change the date format? | -Thomas- | Lounge | 2 | 04-05-2008 07:14 PM |