![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#2 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
what are you generationg your epub files from?
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,478
Karma: 5171130
Join Date: Jan 2006
Device: none
|
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. |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,478
Karma: 5171130
Join Date: Jan 2006
Device: none
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
Code:
. . . <h2>Table of contents</h2> <a href="chapter1.htm">Title of chapter 1</a> . . . 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> . . . 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" 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> |
|
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
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 |
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,478
Karma: 5171130
Join Date: Jan 2006
Device: none
|
Haven't tried them yet (my command-line usage is rusty, too!).
I'll try a few variations, and see what comes out best. Thanks! |
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
|
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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= |
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
XPath supports the OR operator |
It also support regular expression based matches. |
![]() |
![]() |
![]() |
#14 |
speaking for myself
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,478
Karma: 5171130
Join Date: Jan 2006
Device: none
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |