Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 08-12-2011, 09:30 PM   #1
HoushaSen
Junior Member
HoushaSen began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Mar 2011
Device: IPAD 2
Number of HTML converting to EPUB

I am having difficulty making a epub from my source HTML. There are about 200 html files with each being very small pages. But when I try to load them onto Calibre using custom created index.html file, it hangs and eventually gives error.

So instead of doing it once, I separated to 100 html links each. They loaded fine and after conversion each became less than 30MB EPUB books. So total would be less than 60MB. I really like to make it a single EPUB rather than two separate epub file.

Besides me manually combining source html files and make them to total of less than 100 html files, is there any other way that I can make this work?

Thank you
HoushaSen is offline   Reply With Quote
Old 08-12-2011, 10:30 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,023
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Please post the log file.
JSWolf is offline   Reply With Quote
Advert
Old 08-12-2011, 11:08 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: 45,170
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Assuming your index.html file and all the files it points to are in the same directory, just zip em up and add the zip file to calibre.
kovidgoyal is offline   Reply With Quote
Old 08-13-2011, 10:54 AM   #4
HoushaSen
Junior Member
HoushaSen began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Mar 2011
Device: IPAD 2
Kovidgoyal

Adding to Calibre worked fine with your suggestion, which is great but now when I try to convert to EPUB it only contains one of html. How can I tell the Calibre that it should use a specific html file as index as I would do with index.html drag and drop to Calibre?
HoushaSen is offline   Reply With Quote
Old 08-13-2011, 11:04 AM   #5
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
You need one file on your hard disk called 'index.html'. This is the 'root' html with the links to all the other files. When you open this file in a browser from your local disk all the links in that file need to reference the other html files on your local disk. Then manually zip all the files together in one zip file and you should be good to go.
ldolse is offline   Reply With Quote
Advert
Old 08-13-2011, 12:11 PM   #6
HoushaSen
Junior Member
HoushaSen began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Mar 2011
Device: IPAD 2
Idolse

Thank you. It looks like definitely trying to purse out thing now as taking much longer to do processing. Though I eventually get error. I will try debug and see if I can make it work, but your comment definitely helped.
HoushaSen is offline   Reply With Quote
Old 08-13-2011, 12:43 PM   #7
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
You did not mention what error you get, but if it was timeout error, then you might be better off creating an empty book record and then adding the index.html file to the formats area of the Edit metadata dialog. I have found that often helps with such errors.
itimpi is offline   Reply With Quote
Old 08-13-2011, 07:10 PM   #8
HoushaSen
Junior Member
HoushaSen began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Mar 2011
Device: IPAD 2
Error I now get is Out of Memory before it was indeed looked like time out.

But the approach you mention seem interesting and I did not know. May be I could add two separate zip or html files that way? I will give a shot and let you know the result.
HoushaSen is offline   Reply With Quote
Old 08-14-2011, 05:13 AM   #9
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Kovid's suggested approach of zipping all the files together SHOULD work without issues. However I think it might be important that the index.html file is the first file in the ZIP.

You said that you had succeeded with a smaller number of HTML files? It might be worth looking at the ZIP produced by one of those attempts to see if you can spot the difference in structure to the case where you ZIP up all the files.
itimpi is offline   Reply With Quote
Old 08-14-2011, 11:21 AM   #10
HoushaSen
Junior Member
HoushaSen began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Mar 2011
Device: IPAD 2
No luck...

Zip approach works to load up into the Calibre, which was indeed my original issue.

But now I get out of memory issue while converting and conversion fails. And I know its not individual file issue because if I separate out the files it works fine.

I have made Epub book size of 500MB and that worked. So I believe issue here is underlying the way calibre handles. With multiple files (200+ my case) despite relatively small files sizes pursing process will keep them in memory while parsing each and result in memory out issue.

I wonder if it is something the future version can fix...
HoushaSen is offline   Reply With Quote
Old 08-14-2011, 10:52 PM   #11
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: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by HoushaSen View Post
I wonder if it is something the future version can fix...
I'm relatively sure that without submitting a bug report and attaching the zipped contents nothing will happen.
DoctorOhh is online now   Reply With Quote
Old 08-16-2011, 07:49 AM   #12
HoushaSen
Junior Member
HoushaSen began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Mar 2011
Device: IPAD 2
Thanks Dwanthny

I have submitted bug report.
HoushaSen is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a problematic HTML to epub redryder Conversion 1 05-30-2011 09:54 PM
HTML tables truncating after converting to epub SEI Publications Conversion 7 05-06-2011 06:53 PM
How much shall I pay you for converting HTML to ePUB? vadimzn ePub 8 04-07-2011 01:46 AM
bookmark issues converting HTML to EPUB isabellkirsten Calibre 0 04-09-2010 11:47 PM


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


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