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

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 05-08-2013, 08:40 PM   #1
Sneddles
Member
Sneddles began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2012
Device: Kindle keyboard
Ebook Viewer damages epub files?

The Ebook Viewer writes a text file (META-INF/calibre_bookmarks.txt) into epub files but the archive appears damaged as trying to delete the file with WinZip results in a message: "Error: Unexpected end of Zip file".

The epub file was originally created using a Java program I'm creating to cleanup badly formatted epub files. I was confused as to where this bookmarks file was coming from, so I was deleting it to try and work out where it came from.

To confuse the situation, using WinZip I can extract all of the files from the modified archive without any errors.

If I delete the bookmarks file, re-archive the files with WinZip, and then view the new epub file with the Ebook Viewer I can then delete the bookmarks file without the error.

It isn't a major problem and I have no idea where the problem might lie, but I thought it was worth reporting.
Sneddles is offline   Reply With Quote
Old 05-08-2013, 09:22 PM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,902
Karma: 5880479
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Sneddles View Post
The Ebook Viewer writes a text file (META-INF/calibre_bookmarks.txt) into epub files but the archive appears damaged as trying to delete the file with WinZip results in a message: "Error: Unexpected end of Zip file".

The epub file was originally created using a Java program I'm creating to cleanup badly formatted epub files. I was confused as to where this bookmarks file was coming from, so I was deleting it to try and work out where it came from.

To confuse the situation, using WinZip I can extract all of the files from the modified archive without any errors.

If I delete the bookmarks file, re-archive the files with WinZip, and then view the new epub file with the Ebook Viewer I can then delete the bookmarks file without the error.

It isn't a major problem and I have no idea where the problem might lie, but I thought it was worth reporting.
Don't use Winzip for this. Use Tweak (Select Book, tap the T key. then explode, fix and REBUILD) that assembles the EPUB correctly
theducks is offline   Reply With Quote
Old 05-09-2013, 02:59 AM   #3
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,863
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by Sneddles View Post
The Ebook Viewer writes a text file (META-INF/calibre_bookmarks.txt) into epub files
If you like, you can turn off writing a bookmark file when exiting the viewer. Find this setting in Viewer Preferences - Misc options.

Quote:
Originally Posted by Sneddles View Post
but the archive appears damaged as trying to delete the file with WinZip results in a message: "Error: Unexpected end of Zip file"
The archive isn't damaged by calibre's viewer. Make sure the epub isn't opened by any other program when viewing.
DoctorOhh is offline   Reply With Quote
Old 05-09-2013, 03:11 AM   #4
ParadiseLost
Enthusiast
ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.
 
Posts: 47
Karma: 20364
Join Date: Mar 2013
Device: None
Without hijacking the thread is there a way to remove all the bookmark files from your books? Plugin?
ParadiseLost is offline   Reply With Quote
Old 05-09-2013, 03:28 AM   #5
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,863
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by ParadiseLost View Post
Without hijacking the thread is there a way to remove all the bookmark files from your books? Plugin?
You can use the Modify ePub plugin to accomplish this feat.
DoctorOhh is offline   Reply With Quote
Old 05-09-2013, 04:21 PM   #6
ParadiseLost
Enthusiast
ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.ParadiseLost can self-interpret dreams as they happen.
 
Posts: 47
Karma: 20364
Join Date: Mar 2013
Device: None
Thanks DoctorOhh.
ParadiseLost is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre's ebook-viewer and embedded fonts in EPUB books gentoosiast Calibre 1 03-20-2013 07:53 AM
Is there any chance that Ebook viewer doesn't modify epub's elchamaco Calibre 1 08-30-2012 04:35 PM
Associating ebook files with Calibre ebook viewer zobop Library Management 1 06-24-2012 11:07 AM
[old-topic]ebook-viewer: Open source, crossplatform viewer for EPUB, LIT, MOBI, etc kovidgoyal Calibre 68 05-30-2011 08:46 PM
ePub Page Numbers in Ebook Viewer vs PRS-505 Zero9 Calibre 7 06-06-2009 01:25 PM


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


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