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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-12-2010, 08:52 AM   #1
capidamonte
Not who you think I am...
capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
capidamonte's Avatar
 
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
epubcheck bugs?

I've written a script that generates epubs from hand-coded html.

I keep getting the following error when validating with epubcheck:
Code:
ERROR: ./PrisonersBase.epub/content.opf: unique-identifier attribute in package element must reference an existing identifier element id
Here's the package line from the OPF file:
Code:
<package version="2.0" xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookID">
And here's the only identifier line:
Code:
<dc:identifier opf:scheme="Book" id="BookID">Book_00000031</dc:identifier>
And, if it's relevant, the related line from the NCX:
Code:
<meta name="dtb:uid" content="Book_00000031" />
What am I doing wrong?

I've tried making everything lower case, removing the opf:scheme line, retyping the text and saving... Hair is being plucked in fistfuls.

cap
capidamonte is offline   Reply With Quote
Old 06-12-2010, 09:53 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,534
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Is the <dc:identifier> inside a <metadata> block? Can we see the full OPF file?
Jellby is offline   Reply With Quote
Advert
Old 06-13-2010, 07:38 AM   #3
capidamonte
Not who you think I am...
capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
capidamonte's Avatar
 
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
I figured it out -- I think. At least they're validating now.

I'm working in a Windows virtual machine, and the text editor was producing CP1252 encoding. I had to find a utility (iconv for Windows) to convert all the files after they were created, but before they were zipped into an ePub.

There were also issues with capitalization. Also found and fixed.

Yup, the <dc:identifier> was inside a <metadata> block.

I spent most of the day on this, but now I've got a script that parses the xhtml, and produces a nicely formatted ePub, including TOC. The only thing left to do is program it to split the files at chapter-breaks. (Not req'd by the spec, but apparently it's necessary for current hardware limitations.)

Thanks for helping,

cap
capidamonte is offline   Reply With Quote
Reply

Tags
epubcheck, unique-identifier

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epubcheck for Mac OS X pdurrant ePub 61 09-14-2015 03:29 AM
epubcheck, any software can pass its validiation check? droople ePub 96 08-16-2011 01:38 PM
Web-based epubcheck upgraded to epubcheck 1.0.5 kjk ePub 4 02-09-2010 09:53 PM
epubcheck GeoffC ePub 3 11-03-2009 04:26 AM
Adobe EpubCheck to validate Epub documents Alexander Turcic News 11 12-29-2007 08:07 PM


All times are GMT -4. The time now is 05:40 PM.


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