Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 09-18-2008, 01:07 PM   #16
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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by skoobwoman View Post
I did search the forum first and looked through 3 pages of results with no luck. Perhaps I wasn't using the right terms.
Don't worry about it, it's not always easy to run a successful search for something like this.
kovidgoyal is offline   Reply With Quote
Old 09-18-2008, 02:35 PM   #17
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by skoobwoman View Post
It is fine if all of the files are just merged into one with no other changes.
You can just do that from the command line:

copy file1.htm file2.htm file3.htm merged.htm

Or, most editors allow you to open a file, then append from another file.

BOb
pilotbob is offline   Reply With Quote
Advert
Old 09-18-2008, 07:48 PM   #18
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: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Book Designer has a way to join HTML files. Just go to the Tools menu and select Join Books. Then you'll get a requester used to join HTML or text files.
JSWolf is offline   Reply With Quote
Old 09-18-2008, 07:54 PM   #19
Patricia
Reader
Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.
 
Patricia's Avatar
 
Posts: 11,504
Karma: 8720163
Join Date: May 2007
Location: South Wales, UK
Device: Sony PRS-500, PRS-505, Asus EEEpc 4G
I tend to do this manually.
1. Download and open chapter 1. Hit the edit with word button. Keep that window open.
2. In your web browser, open chapter 2. Select all, copy and paste into the end of the word file.
3. Repeat until you get to the end of the book. then save the word file as an html file.

Or
1. Open a new doc.
2. Copy and paste all chapters into the doc.
3. Save as a doc, rtf or html.
Patricia is offline   Reply With Quote
Old 09-19-2008, 12:10 PM   #20
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by kovidgoyal View Post
Somebody should make a FAQ for this question, I seem to spend half my life answering it.

Regarding multiple HTML files:

1) If your collection of HTML files includes a file that has links to all the other files:
- Download the beta version of calibre and simply add that file to the GUI.
The GUI will automatically create a zip file with all referenced HTML files and the ZIP file will also contain an OPF file that references the HTML files. You can then use "save to disk" to save the zip file to somewhere on your disk. Unzip it and use the opf+html files in whatever program you need to.

2) If your collection does not have such a file, it takes two minutes to create one. It will have the form:

Code:
<html>
<body>
<a href="file1.html">File 1</a>
< a href="file2.html">File 2</a>
.
.
.
</body>
</html>
And if you include a file like this with slight mods like an header line in the book itself you will have a TOC.

Dale
DaleDe is offline   Reply With Quote
Advert
Old 09-07-2009, 03:45 PM   #21
NSqirrel
Enthusiast
NSqirrel began at the beginning.
 
Posts: 43
Karma: 10
Join Date: Sep 2009
Location: South Bucks, UK
Device: PRS-600
I have been experimenting with multiple HTML files and ran into problems. It took me a while to figure it out -and it may still be a fault on my part!

Using SoftSnow as recommended above, I merged my 70 odd html files but could not get the ePub to work correctly with Calibre.

Then I noticed that SoftSnow had left the </body></html> at the end of every segment, whereas the merged file should have only one instance, at the end of the file. Removing the extras has cured my ePub problem.

I hope that this helps others.
NSqirrel is offline   Reply With Quote
Old 11-18-2009, 06:37 AM   #22
velusamys
Junior Member
velusamys began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Nov 2009
Device: kindle
I have 300 autogenerated html files to create the single Mobi files. I have to give the html files in proper order or any order ?????..
velusamys is offline   Reply With Quote
Old 01-18-2010, 03:23 PM   #23
ruddell
Enthusiast
ruddell began at the beginning.
 
Posts: 43
Karma: 20
Join Date: Jul 2009
Device: Kindle
I know this is an old post, but I have the same problem so I'm bumping it to hope someone has figured this out by now. I have 243 html pages that I'm trying to combine into a single kindle document. I used the "DownThemAll!" firefox extension to download the html files to my computer, and "Automator" to rename all files numerically with ".html" extensions. I then created a single html file called index.html according to the instructions above which lists all 243 html files as links. When I open index.html in firefox, it works fine - I can click on any one of the links and it will bring up that page. However, when I add index.html to calibre (version 0.6.33) it only adds the single file without the linked files. If I zip all files together and add to calibre, the result looks the same (although strangely the first way resulted in a 0.0mb document and the 2nd way resulted in a 1.6mb document).

Any help would be appreciated.
ruddell is offline   Reply With Quote
Old 01-18-2010, 03:46 PM   #24
Katelyn
Addict
Katelyn has a complete set of Star Wars action figures.Katelyn has a complete set of Star Wars action figures.Katelyn has a complete set of Star Wars action figures.Katelyn has a complete set of Star Wars action figures.
 
Katelyn's Avatar
 
Posts: 225
Karma: 342
Join Date: Jul 2006
Location: Indiana
Device: Pocketbook 360, Iphone 3g, Sony 505, REB1200, GEB1150
Here is part of a walk-through I posted at a fanfic site I use all the time. I've gotten many responses that it was easy to follow and better yet, it works! Feel free to PM me if you have any questions.

--------------------------------
In order to convert a collection of HTML files in a specific order, you have to create a table of contents file. That is, an HTML file that contains links to all the other files in the desired order. Such a file looks like:

<html>
<body>
<h3>Table of Contents</h3>
<p style="text-indent:0pt">
<a href="./samplepage1.html">Part One</a><br/>
<a href="./samplepage2.html">Part Two</a><br/>
<a href="./samplepage3.html">Part Three</a><br/>
<a href="./samplepage4.html">Part Four</a><br/>
<a href="./samplepage5.html">Part Five</a><br/>
</p>
</body>
</html>

2. Copy the text above and paste it into Notepad. Save this file as book.txt in the same folder as the downloaded HTML files. Keep this file open for now.

3. Open the folder where the HTML files were saved and locate the files. Copy the first file name, (e.g.,newbook1.html). Go back to the Notpad file file you just created and replace the first line of HTML.

EXAMPLE:
You are changing this <a href="./samplepage1.html">Part One</a><br/>
To (for example) <a href="./newbook1.html">Part One</a><br/>


As you can see, only part of the file name needs to change since the rest of the code remains the same. It saves a lot of typing if you just change the file name up to the page number, e.g., copy newbook and paste it before the pages number on each line - samplepage1.html, samplepage2.html, etc.. Obviously, you have to be sure the naming convention is consistent for each page.

In case this confuses you, here is what I would use to create a single book from As You Wish (10 HTML pages long)

<html>
<body>
<h1>Table of Contents</h1>
<p style="text-indent:0pt">
<a href="./kimpritekel_asyouwish1.html">Part 1</a><br>
<a href="./kimpritekel_asyouwish2.html">Part 2</a><br>
<a href="./kimpritekel_asyouwish3.html">Part 3</a><br>
<a href="./kimpritekel_asyouwish4.html">Part 4</a><br>
<a href="./kimpritekel_asyouwish5.html">Part 5</a><br>
<a href="./kimpritekel_asyouwish6.html">Part 6</a><br>
<a href="./kimpritekel_asyouwish7.html">Part 7</a><br>
<a href="./kimpritekel_asyouwish8.html">Part 8</a><br>
<a href="./kimpritekel_asyouwish9.html">Part 9</a><br>
<a href="./kimpritekel_asyouwish10.html">Part 10</a><br>
</p>
</body>
</html>

3. Once these changes are completed, save the Notepad file with the name of the story into the SAME FOLDER as the downloaded files. Locate this saved file and change the .TXT extension to .HTML. You will get a pop-up warning that changing the extension may make the file unusable. Answer YES you want to change it.

Now, you’ll want to check the file to confirm the formatting is correct. (If you followed the steps above, it should work!)

4. Double click the newly created HTML file and it will open in a Web page. You should see something line this -

Table of Contents
Part 1
Part 2
Part 3
etc.

Only “Table of Contents” should be plain text and Part 1, Part 2, etc. will be hyperlinks. If the hyperlinks don't work, check and edit your formatting. Just change the .HTML back to .TXT and open the file again. Check the specific line of code that looks suspect for any errors. It can be as simple as the first HTML page was named 01 and you forgot to add the 0 (samplepage01.html VS samplepage1.html)

Once you think the file is ready, remember to have it in HTML format before moving it to Calibre.

5. Open Calibre and connect your reading device to your PC via a USB cable. It will be recognized by Calibre and will become visible in the Library window.

6. Add the HTML file (drag or use the Add button). When the file is added to Calibre, it is converted into a zipped file.

You can now convert the file to the format of your choice.
Katelyn is offline   Reply With Quote
Old 01-18-2010, 07:04 PM   #25
slm
Fool
slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.
 
Posts: 377
Karma: 3557934
Join Date: Feb 2003
Device: Kindle Voyage, Kindle PW1, Kobo Glo HD, Nook Glowlight Plus ...
vhtmlmerger.exe at
http://iterati.org/ebookTools/vHtmlMerger/Default.aspx
does this.
Small, free, quick, easy.
slm is offline   Reply With Quote
Old 01-18-2010, 07:05 PM   #26
ruddell
Enthusiast
ruddell began at the beginning.
 
Posts: 43
Karma: 20
Join Date: Jul 2009
Device: Kindle
That doesn't really solve my problem. I can create a TOC file no problem - I've done that part already. But, when I try to add it to Calibre, it brings in only that TOC file and no referenced files (despite all being in the same folder). When I opened the TOC file in firefox, it was working fine.

I'm using Calibre for Mac, so perhaps it's different on the Windows version?

edit: this message was intended for Katelyn. slm, I'll give vhtmlmerger a try. I'm guessing by the exe extension it's a windows program though?
ruddell is offline   Reply With Quote
Old 01-18-2010, 08:22 PM   #27
Katelyn
Addict
Katelyn has a complete set of Star Wars action figures.Katelyn has a complete set of Star Wars action figures.Katelyn has a complete set of Star Wars action figures.Katelyn has a complete set of Star Wars action figures.
 
Katelyn's Avatar
 
Posts: 225
Karma: 342
Join Date: Jul 2006
Location: Indiana
Device: Pocketbook 360, Iphone 3g, Sony 505, REB1200, GEB1150
ruddell, I could take a look at some of the file and try to combine to determine what the issue might be but WOW the iterati program is very cool. It should be what you want but I'd be concerned about the size of the file with 243 pages. You may want to break that up into a number of "books" and create a series. Let me know if iterati doesn't do it for you and we can look into further the issue you're having unless Kovid knows what might cause that problem. It can be the simplest thing causing it.
Katelyn is offline   Reply With Quote
Old 01-18-2010, 08:22 PM   #28
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by ruddell View Post
That doesn't really solve my problem. I can create a TOC file no problem - I've done that part already. But, when I try to add it to Calibre, it brings in only that TOC file and no referenced files (despite all being in the same folder). When I opened the TOC file in firefox, it was working fine.

I'm using Calibre for Mac, so perhaps it's different on the Windows version?

edit: this message was intended for Katelyn. slm, I'll give vhtmlmerger a try. I'm guessing by the exe extension it's a windows program though?
zip the toc and the reference files altogether and give that to Calibre.

Dale
DaleDe is offline   Reply With Quote
Old 01-18-2010, 10:48 PM   #29
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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@ruddell: Make sure the HTML2ZIP plugin in calibre is not disabled. Go to Preferences->plugins->file type plugins
kovidgoyal is offline   Reply With Quote
Old 03-14-2010, 01:53 PM   #30
agbiotec
Junior Member
agbiotec began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2010
Device: Irex DG-800
Also for merging webpages on the fly as you surf around the web in your Firefox browser, and exporting them as a single HTML file that you can copy to your reader later on, try the ScrapBook Firefox plugin:

https://addons.mozilla.org/en-US/firefox/addon/427



For advanced users of Linux (some command line interaction needed), I used the HarvestMan web crawler (http://www.harvestmanontheweb.com/) to get all the html pages for a free-online ebook that I wanted to read, then I used HTMLDOC (http://www.htmldoc.org/) to make a nice pdf from the html. The HTMLDOC is so good, that it created a pdf the table of contents from the master html page, which worked perfectly in my e-reader.

Last edited by agbiotec; 03-14-2010 at 04:13 PM.
agbiotec is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Joining multiple html files RosanaE Calibre 4 04-22-2011 06:56 PM
TOC filter and Multiple HTML Files Beedrew Calibre 1 07-20-2010 10:32 PM
Converting multiple HTML files into a single hyperlinked PDF? Jürgen Hubert Reading and Management 6 01-11-2010 07:44 AM
Merging several Html files into one file nesseainie Calibre 8 06-03-2009 02:06 PM
Multiple HTML Files JJH1947 Calibre 4 04-07-2009 10:24 AM


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


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