| 
			
			 | 
		#1 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 3 
				Karma: 10 
				Join Date: Jan 2017 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Converting htm to epub
			 
			
			
			I have an eBook in html format, and I wish to convert it in ePub. I'm on a GNU/Linux system and I'm using Calibre. 
		
	
		
		
		
		
		
		
		
		
		
		
		
			The file is displayed correctly in Firefox, despite having the "missing image" icon in the top left corner of every page for linking to jpgs that do not exist. However, after converting to ePub with default options, in each page every sentence is in the same line, so that they illegibly overlap. Calibre detects the file as "ZIP" and, if asked to display it, creates a duplicate of it in the library instead. [Link deleted - MODERATOR] are the first 758 lines of the file (which include the first two paragraphs and everything that come before that, for a total of 11 pages) in case it could be useful to detect the problem. Please ask me for anything needed. Last edited by Dr. Drib; 01-26-2017 at 08:40 AM.  | 
| 
		 | 
	
	
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 3 
				Karma: 10 
				Join Date: Jan 2017 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I figured it could depend line breaks are actually achieved by specifying absolute vertical position, and I've read the absolute position is not supported. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I've tried converting using heuristic processing. Section names appear about one word per page, with the first letter of a word overlapping with the second. A whole chapter is displayed in a page. Some line breaks are introduced (vertically, almost half page is filled), but the lines coming from different pages still overlap.  | 
| 
		 | 
	
	
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,763 
				Karma: 24088559 
				Join Date: Dec 2010 
				
				
				
				Device: Kindle PW2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Based on the code that you posted on Pastebin, the HTML file was most likely exported from MS Word using the wrong export option. IMHO, it'd take forever to fix this mess. Why don't you simply buy the ebook on Amazon?  | 
|
| 
		 | 
	
	
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Coming here to ask for help on a pirated book is not going to get you any help. Buy the book and if you still need help with the legal version, we'll be happyto help.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,613 
				Karma: 60184181 
				Join Date: Jan 2007 
				Location: Peru 
				
				
				Device: KINDLE: Oasis 3, Scribe (1st), Matcha; KOBO: Libra 2, Libra Colour 
				
				
				 | 
	
	
	
		
		
		
		
		 Moderator Notice 
		Mobileread does not offer assistance for anyone who pirates a copyrighted ebook. Failure to observe copyright can cause your Mobileread access to be terminated. This thread is now closed. Last edited by Dr. Drib; 01-26-2017 at 08:44 AM.  | 
| 
		 | 
	
	
| Advert | |
| 
         | 
    
![]()  | 
            
        
    
| Tags | 
| calibre, conversion, epub, html, overlap | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Page numbers in ePub, converted from htm | hollowayhouse | Conversion | 6 | 06-28-2012 05:41 PM | 
| HTM to EPUB Loses images | cacotigon | Calibre | 2 | 04-02-2012 08:04 PM | 
| converting from HTM to ePUb - can't get TOC right | davidm99 | Conversion | 1 | 04-12-2011 11:47 PM | 
| converting htm to epub to mobi - lots of split words | cybmole | Calibre | 1 | 12-14-2010 12:25 PM | 
| converting htm(l) format books for kindle | cybmole | Calibre | 7 | 09-29-2010 09:01 AM |