Title: RE: Using BBEdit to make an ePub
This AppleScript is commonly used: http://code.google.com/p/epub-applescripts/downloads/detail?name=ePub_Zip_1.0.3.zip&

It's really this:

zip -X MyNewEbook.epub mimetype; zip -rg MyNewEbook.epub META-INF -x \*.DS_Store; zip -rg MyNewEbook.epub OEBPS -x \*.DS_Store

An explanation is here:

http://www.webvivant.com/zipping-epub-files.html

ERROR: [top level]: Length of the first filename in archive must be 8, but was 9

        The above should handle this.

INFO: Validating against EPUB version 3.0

        This says you're validating againsted EPUB 3 rather than EPUB 2. Different requirements and different potential errors. That's set by the <package> version

ERROR: OEBPS/package.opf(8,71): The prefix "opf" for attribute "opf:file-as" associated with an element type "dc:creator" is not bound.
ERROR: OEBPS/package.opf: The prefix "opf" for attribute "opf:file-as" associated with an element type "dc:creator" is not bound.

        Delete Delete opf:file-as="title" (or whatever)

WARNING: [top level]: item (OEBPS/references.html) exists in the zip file, but is not declared in the OPF file

        References.html is not declared in package.opf.

------------------

On 4/8/13 at 2:24 PM -0700, Christopher Finazzo wrote in a message entitled
"Using BBEdit to make an ePub":

Now that BBEdit can open and edit an ePub file directly, I decided to give it a try and use it to make an eBook. Writing the HTML and transforming the content has been fine for the most part, but I can't seem to figure out how to generate the actual .epub file. I know that under the covers it's a zip archive, but the files have to go into it in a specific order. I used the following command to do most of this work:

zip -0 -X test.zip mimetype
zip -r test.epub META-INF/
zip -r test.epub OEBPS/
zip -d ePub.epub `unzip -l ePub.epub | grep .DS_Store | awk '{print $4}'`

It looks like everything should work, but epubcheck reports errors such as:

ERROR: [top level]: Length of the first filename in archive must be 8, but was 9
INFO: Validating against EPUB version 3.0
ERROR: OEBPS/package.opf(8,71): The prefix "opf" for attribute "opf:file-as" associated with an element type "dc:creator" is not bound.
ERROR: OEBPS/package.opf: The prefix "opf" for attribute "opf:file-as" associated with an element type "dc:creator" is not bound.
WARNING: [top level]: item (OEBPS/references.html) exists in the zip file, but is not declared in the OPF file

Does anyone have experience doing this or know the proper way to zip an epub and refer to files in the package document?
--
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
 
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


-- 
___________________________________________________

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________

WWW:   http://www.shelterpub.com



--
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
 
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to