Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Reading and Management

Notices

Reply
 
Thread Tools Search this Thread
Old 09-28-2008, 12:31 PM   #1
Steven Lyle Jordan
Grand Sorcerer
Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.
 
Steven Lyle Jordan's Avatar
 
Posts: 8,478
Karma: 5171130
Join Date: Jan 2006
Device: none
DE upgrade ePub problems

I've recently come across a problem in DE handling new ePub files. Has this happened to anyone else?

Ever since the new mandatory upgrade to DE (v1.6.934), I've discovered that any new ePub files I create using WinZip will not open. Any attempt to open a new file gives the following message:

"The document appears to have minor errors that might cause it to be displayed incorrectly
--- errorListChange ---
"

I've tried opening new ePubs created through Book Glutton, and they open fine. However, all I have to do is convert the .epub file extension to .zip, convert back to .epub (with or without actually opening the .zip file), and the ePub file will not open, and I get the message above.

The only thing that has changed in this equation is DE. I'm using WinZip 8, which I've already used successfully to create 2 ePub files before the DE upgrade.

As I have a series of books that I'd like to be able to offer for sale in ePub, and Book Glutton does not provide the full format options I'm looking for, any help would be appreciated.
Steven Lyle Jordan is offline   Reply With Quote
Old 09-28-2008, 01:12 PM   #2
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
ADE might be inforcing the mimetype file first requirement (but it is hard to see why). See Explode and Implode an ePub?, the 2nd post contains a simple way to do this properly under Windows (once I worked out that "explorer" just means right clicking on a folder). Perhaps WinZip is using non-standard compression, which is again fixed/tested by trying a different Zip program

However, if renaming the file and then renaming it back is enough to cause a problem I am out of ideas.
wallcraft is offline   Reply With Quote
Advert
Old 09-28-2008, 01:17 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
what are you generationg your epub files from?
kovidgoyal is online now   Reply With Quote
Old 09-28-2008, 01:30 PM   #4
Steven Lyle Jordan
Grand Sorcerer
Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.
 
Steven Lyle Jordan's Avatar
 
Posts: 8,478
Karma: 5171130
Join Date: Jan 2006
Device: none
Quote:
Originally Posted by kovidgoyal View Post
what are you generationg your epub files from?
My ePub creation has been a strictly manual process so far. I'm working in WinXP, have WinZip 8, and use Dreamweaver for any HTML editing.

I used the Jedisaber ePub files as a beginning template. I start by manually copying and pasting existing (and working) ePub files into a new folder, and editing as needed (titles, dates, chapter names, etc). Then I manually add each chapter as an HTML file, and images as JPG files. I use the same filetype descriptions that were in the original (working) ePub files.

The Book Glutton files use a slightly different formatting than the Jedisaber template, but both of their files open in DE, and after converting to .zip and back to .epub, will no longer open.

I haven't upgraded WinZip yet, but it is the only other obvious thing I can try. Still, I don't see how simply changing the extension could cause this problem.
Steven Lyle Jordan is offline   Reply With Quote
Old 09-28-2008, 01:31 PM   #5
Steven Lyle Jordan
Grand Sorcerer
Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.
 
Steven Lyle Jordan's Avatar
 
Posts: 8,478
Karma: 5171130
Join Date: Jan 2006
Device: none
Quote:
Originally Posted by wallcraft View Post
ADE might be inforcing the mimetype file first requirement (but it is hard to see why).
I did find and try this out, making sure the mimetype went in first, and uncompressed. The ePub file still did not open.
Steven Lyle Jordan is offline   Reply With Quote
Advert
Old 09-28-2008, 01:48 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Steve Jordan View Post
My ePub creation has been a strictly manual process so far. I'm working in WinXP, have WinZip 8, and use Dreamweaver for any HTML editing.

I used the Jedisaber ePub files as a beginning template. I start by manually copying and pasting existing (and working) ePub files into a new folder, and editing as needed (titles, dates, chapter names, etc). Then I manually add each chapter as an HTML file, and images as JPG files. I use the same filetype descriptions that were in the original (working) ePub files.

The Book Glutton files use a slightly different formatting than the Jedisaber template, but both of their files open in DE, and after converting to .zip and back to .epub, will no longer open.

I haven't upgraded WinZip yet, but it is the only other obvious thing I can try. Still, I don't see how simply changing the extension could cause this problem.
Wow that's a lot of work. Since you already have your chapters as HTML files, create a simple cover HTML file (one that has a table of contents) that looks like this:

Code:
.
.
.
<h2>Table of contents</h2>
<a href="chapter1.htm">Title of chapter 1</a>
.
.
.
In the top part of the file you can have title, dedication etc. The important thing is that it should have links to all the chapter files, in the order that you want them.

Now make sure that in all your chapter files, you mark the tags that have the chapter titles with class="chapter_title", so for e.g. in a chapter file

Code:
.
.
.
<h2 class="chapter_title">Chapter title</h2>
.
.
.
You can choose any class you want, instead of chapter_title, so long as it unique to chapter titles.

Then just run html2epub (part of calibre) on the table of contents file (lets call it index.html)

Code:
html2epub --chapter '//*[@class = "chapter_title"]' index.html -o mybook.epub --title booktitle --author "Steve Jordan"
And voila! You have a nice EPUB file called mybook.epub that automatically has all your chapter files, your images, stylesheets etc included.

If you dont want the table of contents to be displayed in the final epub, you can enclose it like so:

Code:
<div style="display:none">
<h2>Table of contents</h2>
<a href="chapter1.htm">Title of chapter 1</a>
</div>
kovidgoyal is online now   Reply With Quote
Old 09-28-2008, 02:29 PM   #7
Steven Lyle Jordan
Grand Sorcerer
Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.
 
Steven Lyle Jordan's Avatar
 
Posts: 8,478
Karma: 5171130
Join Date: Jan 2006
Device: none
Good news: I tried a test of a Calibre-generated file from basic HTML, and it did open in DE (with some minor issues, which are mostly from the original HTML file, I believe). At any rate, I'll have to try again with the full setup you described above, and see if I can organize the entire file as desired.

One note, Kovid: For some reason, Calibre runs veerrrryyyyy sslllooooowwwwly on my PC, which is why I've spent very little time using it in the past. (I get impatient... what can I say?) But my PC also doesn't run multimedia well, so I'm pretty sure it's more a problem with my HW than your SW.
Steven Lyle Jordan is offline   Reply With Quote
Old 09-28-2008, 02:42 PM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Glad it worked. Do the command line tools also run slowly?

Note that if you already have lit/mobi versions you can run:

Code:
any2epub file.it
instead and not have to worry about creating the setup.
kovidgoyal is online now   Reply With Quote
Old 09-28-2008, 03:18 PM   #9
Steven Lyle Jordan
Grand Sorcerer
Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.
 
Steven Lyle Jordan's Avatar
 
Posts: 8,478
Karma: 5171130
Join Date: Jan 2006
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Glad it worked. Do the command line tools also run slowly?
Haven't tried them yet (my command-line usage is rusty, too!).

Quote:
Originally Posted by kovidgoyal View Post
Note that if you already have lit/mobi versions you can run:

Code:
any2epub file.it
instead and not have to worry about creating the setup.
I'll try a few variations, and see what comes out best. Thanks!
Steven Lyle Jordan is offline   Reply With Quote
Old 09-28-2008, 07:57 PM   #10
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
Quote:
Originally Posted by kovidgoyal View Post

Code:
.
<h2 class="chapter_title">Chapter title</h2>
.

html2epub --chapter '//*[@class = "chapter_title"]'
Code:
.
<p class=2CHAPTERTITLE>HASTIE LANYON</P>
.
So what would be the XPath syntax for the --chapter switch the sample code above?

=X=
=X= is offline   Reply With Quote
Old 09-28-2008, 08:01 PM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by =X= View Post
Code:
.
<p class=2CHAPTERTITLE>HASTIE LANYON</P>
.
So what would be the XPath syntax for the --chapter switch the sample code above?

=X=
'//p[@class = "2CHAPTERTITLE"]'
kovidgoyal is online now   Reply With Quote
Old 09-28-2008, 08:39 PM   #12
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
@kovidgoyal thanks, Last question is it possible to look for two tags I'm looking for 2CHAPTERTITLE and 2CHAPTERSUBTITLE (notice the SUB in the latter attribute)


=X=
=X= is offline   Reply With Quote
Old 09-28-2008, 09:44 PM   #13
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
XPath supports the OR operator |

It also support regular expression based matches.
kovidgoyal is online now   Reply With Quote
Old 09-28-2008, 11:51 PM   #14
Peter Sorotokin
speaking for myself
Peter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it is
 
Posts: 139
Karma: 2166
Join Date: Feb 2008
Location: San Francisco Bay Area
Device: PRS-505
Steve,

Any chance you can post the files that do not open in Digital Editions, so I can take a look?

Peter Sorotokin
Adobe Systems Inc.
Digital Publishing
Peter Sorotokin is offline   Reply With Quote
Old 09-29-2008, 08:16 AM   #15
Steven Lyle Jordan
Grand Sorcerer
Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.Steven Lyle Jordan ought to be getting tired of karma fortunes by now.
 
Steven Lyle Jordan's Avatar
 
Posts: 8,478
Karma: 5171130
Join Date: Jan 2006
Device: none
Quote:
Originally Posted by Peter Sorotokin View Post
Steve,

Any chance you can post the files that do not open in Digital Editions, so I can take a look?
I can do that... unfortunately, I'm at work now, so it will have to be this evening, when I get back home.
Steven Lyle Jordan is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Libre 18g upgrade Desertway Ectaco jetBook 22 09-03-2010 11:24 PM
Epub problem since upgrade SandraM Kobo Reader 4 07-29-2010 06:40 PM
Gen3 Old Cybook / upgrade firmware to ePub AlexBell Bookeen 8 05-23-2010 07:36 AM
PRS-500 hacks after upgrade to epub htaylor Sony Reader Dev Corner 4 12-14-2009 11:21 PM
Another firmware upgrade coming to support Hyperlink in EPUB Robertb Astak EZReader 12 09-11-2009 09:46 AM


All times are GMT -4. The time now is 10:27 AM.


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