![]() |
#1 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() 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? |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() 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. |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() 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. |
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() 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... |
![]() |
![]() |
![]() |
#11 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
I'm relatively sure that without submitting a bug report and attaching the zipped contents nothing will happen.
|
![]() |
![]() |
![]() |
#12 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Mar 2011
Device: IPAD 2
|
Thanks Dwanthny
I have submitted bug report. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |