|  09-18-2008, 10:51 AM | #1 | 
| Enthusiast  Posts: 41 Karma: 26 Join Date: Aug 2008 Location: New York, NY Device: Kindle 2/Kindle DX/Astak Reader Pocket Pro/iPod Touch | 
				
				Merging multiple HTML files into one HTML file
			 
			
			Hello.  I'm looking for a way of merging a lot of html files into one file.  A book file with 300 pages can be 300 separate html files.  I know I can do it with Mobipocket Creator but it is cumbersome--you have to click and drag every single file into it.  Then you have to make sure it is all in order since there is no fast way of sorting (it doesn't let you sort by file name).  I was hoping to find something faster than does it in batches. I did some searching online but the things I found looked questionable or looked like it was aimed at someone with some programming skills. Any suggestions would be appreciated. | 
|   |   | 
|  09-18-2008, 11:22 AM | #2 | 
| Addict        Posts: 350 Karma: 705 Join Date: Dec 2006 Location: Mumbai, India Device: Kindle 1/REB 1200 | 
			
			See the Softsnow Merger.
		 | 
|   |   | 
| Advert | |
|  | 
|  09-18-2008, 11:56 AM | #3 | |
| Enthusiast  Posts: 41 Karma: 26 Join Date: Aug 2008 Location: New York, NY Device: Kindle 2/Kindle DX/Astak Reader Pocket Pro/iPod Touch | Quote: 
 | |
|   |   | 
|  09-18-2008, 12:01 PM | #4 | |
| Enthusiast  Posts: 41 Karma: 26 Join Date: Aug 2008 Location: New York, NY Device: Kindle 2/Kindle DX/Astak Reader Pocket Pro/iPod Touch | Quote: 
 | |
|   |   | 
|  09-18-2008, 12:05 PM | #5 | 
| Addict        Posts: 350 Karma: 705 Join Date: Dec 2006 Location: Mumbai, India Device: Kindle 1/REB 1200 | 
			
			No idea. I used to use it more than 2 years ago, when I used Windows. Nowadays I use Linux, so can't really help you there...
		 | 
|   |   | 
| Advert | |
|  | 
|  09-18-2008, 12:06 PM | #6 | 
| Grand Sorcerer            Posts: 19,832 Karma: 11844413 Join Date: Jan 2007 Location: Tampa, FL USA Device: Kindle Touch | |
|   |   | 
|  09-18-2008, 12:10 PM | #7 | 
| Zealot     Posts: 107 Karma: 369 Join Date: May 2007 Location: Italy Device: prs-500, Nokia N810, Irex dr1000s, Kindle3 | 
			
			For merging htm or txt files I use a little freeware called txtcollector you can find it here http://bluefive.pair.com/txtcollector.htm
		 | 
|   |   | 
|  09-18-2008, 12:18 PM | #8 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Why merge at all? Just create an OPF file that lists all the HTML files and then pass that to your ebook creation program.
		 | 
|   |   | 
|  09-18-2008, 12:40 PM | #9 | 
| Wizard            Posts: 2,999 Karma: 300001 Join Date: Jan 2007 Location: Citrus Heights, California Device: TWO Kindle 2s, one each Bookeen Cybook Gen3, Sony PRS-500, Axim X51V | |
|   |   | 
|  09-18-2008, 12:51 PM | #10 | |
| Enthusiast  Posts: 41 Karma: 26 Join Date: Aug 2008 Location: New York, NY Device: Kindle 2/Kindle DX/Astak Reader Pocket Pro/iPod Touch | Quote: 
 I want to merge the files into one because otherwise it shows up as 300 (or whatever) files on my ebook reader (There are no folders). | |
|   |   | 
|  09-18-2008, 12:53 PM | #11 | 
| Enthusiast  Posts: 41 Karma: 26 Join Date: Aug 2008 Location: New York, NY Device: Kindle 2/Kindle DX/Astak Reader Pocket Pro/iPod Touch | |
|   |   | 
|  09-18-2008, 12:53 PM | #12 | |
| Enthusiast  Posts: 41 Karma: 26 Join Date: Aug 2008 Location: New York, NY Device: Kindle 2/Kindle DX/Astak Reader Pocket Pro/iPod Touch | Quote: 
 | |
|   |   | 
|  09-18-2008, 12:56 PM | #13 | |
| Enthusiast  Posts: 41 Karma: 26 Join Date: Aug 2008 Location: New York, NY Device: Kindle 2/Kindle DX/Astak Reader Pocket Pro/iPod Touch | Quote: 
 | |
|   |   | 
|  09-18-2008, 12:57 PM | #14 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			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> | 
|   |   | 
|  09-18-2008, 01:05 PM | #15 | |
| Enthusiast  Posts: 41 Karma: 26 Join Date: Aug 2008 Location: New York, NY Device: Kindle 2/Kindle DX/Astak Reader Pocket Pro/iPod Touch | 
			
			I did search the forum first and looked through 3 pages of results with no luck.  Perhaps I wasn't using the right terms. Quote: 
 | |
|   |   | 
|  | 
| 
 | 
|  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 |