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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-27-2009, 10:24 AM   #1
hoops10
Junior Member
hoops10 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2009
Device: Sony 505
calibre 0.6.1 crashes when converting to epub

I added an ebook in lit format and tried to convert to epub but it crashes everytime. I have tried it with and without a front page cover. Any idea? I have attached the detailed crash report that calibre gave me. Thanks for any help.

Last edited by hoops10; 07-27-2009 at 11:09 AM.
hoops10 is offline   Reply With Quote
Old 07-27-2009, 10:41 AM   #2
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: 26,120
Karma: 5101571
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Looks like this LIT file is really a txt file inside a LIT container. Conversion is failing as there is no point to split the file into smaller chunks. Not much that can be done about that.
kovidgoyal is online now   Reply With Quote
Old 07-27-2009, 10:48 AM   #3
hoops10
Junior Member
hoops10 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2009
Device: Sony 505
Thanks for the reply. So what if it was just a regular txt file? Would conversion work then? Or does calibre not work with txt files? Thanks.
hoops10 is offline   Reply With Quote
Old 07-27-2009, 10:51 AM   #4
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: 26,120
Karma: 5101571
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
regular txt file work just fine. LIT based txt files consist of one big <pre> tag with all the txt in them
kovidgoyal is online now   Reply With Quote
Old 07-27-2009, 11:10 AM   #5
hoops10
Junior Member
hoops10 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2009
Device: Sony 505
Wow, thanks. I did try a txt file and it did convert to epub with no problems. But when I view it on my Sony 505, some of the words scroll off the page to the right and are not readable. Did I do something wrong when I converted it to epub? Thanks.
hoops10 is offline   Reply With Quote
Old 07-27-2009, 11:18 AM   #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: 26,120
Karma: 5101571
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
probably the txt has some markup that translates to non reflowable html. the simplest solution is to paste the txt file into Word (or whatever) and save as HTML. Then convert that.
kovidgoyal is online now   Reply With Quote
Old 07-27-2009, 11:41 AM   #7
hoops10
Junior Member
hoops10 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2009
Device: Sony 505
Ok, I'm getting there. I did what you said and pasted the txt file into NeoOffice (OfficeOffice for Mac OS X) and saved it as .html. Then I converted it to epub and sent it to the Sony 505. Now when I read it, all of the text is in the center of the page, with very wide blank margins on the left and right. Is there a way to get it to fill up the page? I tried zooming but that only makes the font bigger. Thanks for all your help so far.
hoops10 is offline   Reply With Quote
Old 07-27-2009, 12:43 PM   #8
hoops10
Junior Member
hoops10 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2009
Device: Sony 505
I managed to figure it out. I opened up the html file and found this:

@page { margin: 0.78in }


I changed it to:

@page { margin: 0.01in }

And now it fills the page perfect. Now I have to figure out how to edit the html file to make a chapter break, forcing the new chapter to start on a new page. If anyone knows, please let me know.
hoops10 is offline   Reply With Quote
Old 07-27-2009, 12:50 PM   #9
Kostas
Still wondering why
Kostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-books
 
Kostas's Avatar
 
Posts: 253
Karma: 800
Join Date: Jun 2009
Location: Athens, Greece
Device: PRS 505, (BlackBerry Bold ?)
If you're not familiar with html (my case), try to edit the file in rtf or html format with a word processor and save the result as html.
Thus, you can insert hard page breaks, change chapter title sizes, margins, indentation,...
Kostas is offline   Reply With Quote
Old 07-27-2009, 01:22 PM   #10
hoops10
Junior Member
hoops10 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2009
Device: Sony 505
Wow, good call. Worked great. Now, do you happen to know how to create a table of contents so I can be able to jump to different chapter points?
hoops10 is offline   Reply With Quote
Old 07-27-2009, 02:42 PM   #11
Kostas
Still wondering why
Kostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-books
 
Kostas's Avatar
 
Posts: 253
Karma: 800
Join Date: Jun 2009
Location: Athens, Greece
Device: PRS 505, (BlackBerry Bold ?)
Well, I use a method for dummies like me. I'm sure that people with basic html knowledge can provide better solutions...

Anyway, I give you my experience with MS word, though I think that with openoffice things should be pretty much the same.

1) The easiest way to build a TOC in word is to use predefined heading styles for your chapter titles, namely "heading1", "heading2".
If you don't like the way these styles look, you can always modify them.

Having, done so, word can automatically generate a TOC in the place you want. Go:
Insert > Reference > Index and Tables > 2nd Tab (Table of Contents)
There you have to untick the "Show page numbers" box and have "Use hyperlinks..." ticked.
Click OK!
Done!

If you're using other styles for your headings click the options button to indicate on which styles should the TOC be built upon.

2) 2nd dummy method (manual).
For each entry you want in your TOC, select the heading text you want to appear in your TOC (chapter title) and click: insert > Bookmark (giving names to your bookmarks , i.e. b1, b2, ...).
Go where you want your TOC to appear:
Insert > Hyperlink > Place in this document
and select your bookmarks.

When you have finished, my personal advice is to save your file with the "save as html, filtered" option. It produces simpler html code. Otherwise, Word adds strange MS proprietary code to the html source that calibre doesn't seem to like.
Kostas is offline   Reply With Quote
Old 07-27-2009, 10:28 PM   #12
hoops10
Junior Member
hoops10 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2009
Device: Sony 505
Kostas: I tried your auto method in OpenOffice and used Heading 1 for my chapters. It seems that, once saved as html (there was no option in OpenOffice for html, filtered), converted to epub and then sent to the reader that most of the chapters are listed as being on the wrong page. Maybe this is something that needs to be done in Word?

Also, should the Table of Contents be created at the very beginning of the ebook or at the very end? Thanks.

Last edited by hoops10; 07-27-2009 at 10:49 PM.
hoops10 is offline   Reply With Quote
Old 07-28-2009, 09:13 AM   #13
Kostas
Still wondering why
Kostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-books
 
Kostas's Avatar
 
Posts: 253
Karma: 800
Join Date: Jun 2009
Location: Athens, Greece
Device: PRS 505, (BlackBerry Bold ?)
Quote:
Originally Posted by hoops10 View Post
most of the chapters are listed as being on the wrong page. Maybe this is something that needs to be done in Word?
I'm not sure I understand what you mean.
In ebooks, page numbers in a ToC are an irrelevant information.
The text is by definition formatted differently than on your pc and I don't think that ebook readers can handle dynamically this by changing the page number that appears on the right of a conventional ToC.
If you change the font size or orientation on your ebook reader, the text reflows and the displayed page numbers in the Toc should be modified, which I'm pretty sure doesn't happen.

The usefulleness of a ToC in ebooks is 1) to inform about the chapters of your book (not the page number that these chapters are located) 2) to allow you to jump directly to a chapter clicking on an entry of the ToC.
That's why I suggested to build a ToC without page numbers.
I don't know if openoffice offers such an option. I think it should.

Besides that, does the ToC created in your ePub allow to jump to the correct chapter by clicking on it?
If yes, the job is done, provided that you manage to get rid of the useless page number information.

If you cannot jump to chapters by clicking on a ToC entry, the process has failed and you have to try another method to generate a relevant ToC.

You could edit the html text with a html editor (like notepad++) and add heading tags to chapter titles. This should allow Calibre to automatically detect headings ang generate a relevant ToC. You have to enclose the chapter title text in heading tags <h1>....</h1>, <h2>....</h2>,... depending on the hierarchical level you want.
Calibre has also a detection method based on text (with regular expressions), even without tags. It should detect ToC entries each time it meets a paragraph starting with the words "chapter", "book", "section" or "part".
If this is the case in your ebook, you should try this Calibre feature.

Quote:
Originally Posted by hoops10 View Post
Also, should the Table of Contents be created at the very beginning of the ebook or at the very end?
It really depends on what you like most. Personally, in ebooks I find more logical the ToC to be located a the beginning.
Kostas 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
Problem converting PDF to EPUB in calibre adgpro Calibre 2 07-09-2010 01:10 AM
Converting from PDF to ePub, Calibre not working Alda ePub 10 07-09-2010 01:00 AM
Issue with converting xhtml to epub using Calibre sg31 Calibre 0 10-20-2009 06:26 PM
Calibre only converting to EPUB aka1nas Calibre 4 07-16-2009 02:06 AM
Calibre 0.51 Crashes on EPUB conversion fogus Calibre 2 03-14-2009 09:47 PM


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


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