| 
			
			 | 
		#1 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 10 
				Karma: 10 
				Join Date: Jan 2010 
				
				
				
				Device: Sony PRS-300 
				
				
				 | 
	
	
	
		
		
			
			 
				
				conversion from .rtf problems
			 
			
			
			I have a document that has line breaks well before the end of each page. Consequently, in .rtf its readable but when converting to .epbub or .mobi the lines get jumbled so the line runs to the end of the screen, finishes with 4 or 5 words on the next line, and then begins a new line. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	some sample text from the document: "decades and began traveling in Europe, a continent he’d never seen. In the past year he had visited France, Holland, and most recently Italy. They were package tours, traveling in the company of strangers, riding by bus through the countryside, each meal and museum and hotel prearranged. He was gone for two, three, sometimes four weeks at a time. When he was away Ruma did not hear from him. Each time, she kept the printout of his flight information behind a magnet on the door of the refrigerator, and on the days he was scheduled to fly she watched the news, to make sure there hadn’t been a plane crash" The obvious way to remedy this is to simply remove the line break from the end of each line, but thats some seriously time consuming work. Is there a way for calibre to do this?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			you could do it if it was a txt file, but not rtf. calibre has various option for txt input that do this sort of thing. You can try converting it to txt first, but that will remove any formatting.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553 
				Karma: 950151 
				Join Date: Nov 2008 
				
				
				
				Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader) 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 - replace every double line break with some unusual character (or character sequence) not used in the document. The assumption is that the double line feeds are almost certainly paragraph breaks. - Replace every single line feed with space. This allows text flow to happen. - replace the character you used in the first step with whatever you want to use for paragraph breaks.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | |
| 
			
			
			
			 Evangelist 
			
			![]() ![]() ![]() ![]() ![]() ![]() Posts: 404 
				Karma: 664 
				Join Date: Dec 2009 
				
				
				
				Device: Kindle Paperwhite, Kindle DX, Kobo Aura HD 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 I've often wondered how you could do that, even if the text was in .txt format. The conversion options for plain text are: - Treat each line as a paragraph - Assume print formatting - Process using markdown - Do not insert table of contents I can't figure out which option would remove unneeded line breaks automatically from the text file?  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,269 
				Karma: 16544702 
				Join Date: Sep 2009 
				Location: UK 
				
				
				Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Code: 
	    This is the start of the first paragraph which wraps
to multiple lines.
    This is a second paragraph.
 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Evangelist 
			
			![]() ![]() ![]() ![]() ![]() ![]() Posts: 404 
				Karma: 664 
				Join Date: Dec 2009 
				
				
				
				Device: Kindle Paperwhite, Kindle DX, Kobo Aura HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks, jackie.  
		
	
		
		
		
		
		
		
		
		
		
		
	
	I wish Calibre could an an option to be able to detect a blank line as a paragraph break.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,269 
				Karma: 16544702 
				Join Date: Sep 2009 
				Location: UK 
				
				
				Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 If your txt's paragraphs contain hard line-breaks but are separated by a blank line then I don't think you need to check either of the options "Treat each line as a paragraph" or "Assume print formatting". i.e. when the txt looks like Code: 
	This is the first paragraph which is too long to fit on one line and has hard line-breaks. This is the second paragraph which also needs to wrap. Third paragraph.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Evangelist 
			
			![]() ![]() ![]() ![]() ![]() ![]() Posts: 404 
				Karma: 664 
				Join Date: Dec 2009 
				
				
				
				Device: Kindle Paperwhite, Kindle DX, Kobo Aura HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Got it. Thanks, jackie!
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| rtf conversion | martingUSA | Calibre | 11 | 11-29-2008 11:38 AM | 
| [Help!] pdf -> rtf problems.. | kurt_roy | Sony Reader | 1 | 04-24-2007 09:55 AM | 
| RTF formatting problems | Chai_kovsky | Sony Reader | 1 | 02-03-2007 12:41 AM | 
| RTF files and other problems :) | gandalfbp | Sony Reader | 2 | 12-02-2006 05:57 AM | 
| RTF conversion. | Riocaz | iRex | 15 | 08-08-2006 12:55 PM |