|  02-26-2018, 08:00 PM | #1 | 
| Enthusiast  Posts: 28 Karma: 10 Join Date: Feb 2018 Device: PC / iPad |  Help with Calibre editor 
			
			ebooks that are converted from .txt or .pdf files have way too many line breaks, which often make it very unpleasant to read those files. Removing ALL linebreaks causes everything to be bunched up without any visual separations. That makes an ebook imo difficult to read. In large files, removing line breaks selectively to have a visually pleasing separation of paragraphs takes forever. Is there any way that the Calibre editor can get back to the original layout by removing the extra linebreaks, without also removing the ones between the original paragraphs? Q1: Can this be done during the conversion from TXT o PDF to epub? If yes, please explain how, or refer to an article where explained. Q2: I have a number of files that I did convert to epub and have deleted the source txt file. If Q1 is answered positively, I guess I could convert those back to TXT and then again to epub with the fix. If that is not possible, can this be fixed in the Calibre EPUB editor without having to waste days of my time on manually fixing a single book? TIA | 
|   |   | 
|  02-26-2018, 08:17 PM | #2 | |
| Addict            Posts: 281 Karma: 7724454 Join Date: Sep 2017 Location: Bethesda, MD, USA Device: Kobo Aura H20, Kobo Clara HD | Quote: 
 | |
|   |   | 
|  02-27-2018, 02:35 AM | #3 | |
| US Navy, Retired            Posts: 9,897 Karma: 13806776 Join Date: Feb 2009 Location: North Carolina Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen | Quote: 
 | |
|   |   | 
|  02-28-2018, 05:51 AM | #4 | 
| Wizard            Posts: 1,166 Karma: 1410083 Join Date: Nov 2010 Location: Germany Device: Sony PRS-650 | 
			
			In addition for PDF: https://www.mobileread.com/forums/sh...3&postcount=17 | 
|   |   | 
|  03-02-2018, 11:37 AM | #5 | |
| Enthusiast  Posts: 28 Karma: 10 Join Date: Feb 2018 Device: PC / iPad | Quote: 
  That is pretty much my experience. I did figure out the heuristic processing , and am experimenting with the 'search/replace" function during conversion.   Is there a way to use regular expressions in the editor as well? I have tried that, doesn't seem to work.   | |
|   |   | 
|  03-02-2018, 12:58 PM | #6 | 
| Grand Sorcerer            Posts: 6,686 Karma: 12595249 Join Date: Jun 2009 Location: Madrid, Spain Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2 | 
			
			Yes, in the search zone select Regex instead of Normal of Function.
		 | 
|   |   | 
|  03-08-2018, 03:55 PM | #7 | 
| Enthusiast  Posts: 28 Karma: 10 Join Date: Feb 2018 Device: PC / iPad | |
|   |   | 
|  03-24-2018, 09:22 AM | #8 | |
| Age improves with wine.            Posts: 596 Karma: 95229 Join Date: Nov 2014 Device: Kindle Oasis, Kobo Libra II | Quote: 
 It's commercial-ware but fairly cheap, and there's a time-limited trial version you can download from their website. (NB: I have no connection to Aiseesoft, but I was impressed enough that I bought a copy after playing around with the trial version. I'm still impressed.) Last edited by Phssthpok; 03-24-2018 at 09:26 AM. | |
|   |   | 
|  03-30-2018, 10:32 AM | #9 | 
| Enthusiast  Posts: 28 Karma: 10 Join Date: Feb 2018 Device: PC / iPad | 
			
			Thank you. I'll look into that.
		 | 
|   |   | 
|  04-02-2018, 05:45 PM | #10 | 
| Junior Member  Posts: 4 Karma: 10 Join Date: Apr 2018 Location: Quito, Ecuador Device: none | 
			
			Hi, also struggling with this. I signed in to this forum today. The first post I noticed was yours G2B, funny I had the same problem   Right now I'm into the "Heuristic Processing" backward and forward... Trying to get the conversion notice the "Chapters" and centered headlines etc. Did you test the "PDF-to-ePUB converter"? | 
|   |   | 
|  04-02-2018, 07:02 PM | #11 | |
| Junior Member  Posts: 4 Karma: 10 Join Date: Apr 2018 Location: Quito, Ecuador Device: none | Quote: 
  Now I'm trying with advanced settings... | |
|   |   | 
|  04-06-2018, 09:39 AM | #12 | 
| Enthusiast  Posts: 28 Karma: 10 Join Date: Feb 2018 Device: PC / iPad | 
			
			No, I did not. I downloaded it, but have not needed it so far. The majority of what I do is cleaning up files that already have been converted to PDF without concern for readability, meaning I'm starting with EPUB format. I do use the heuristic processing first; the rest is mostly working in the editor with regular expressions to filter out the remaining garbage. | 
|   |   | 
|  | 
| Tags | 
| conversion problem, pdf conversion failure, txt to epub conversion | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Bug Calibre editor | Stevex | Calibre | 0 | 06-21-2017 07:56 AM | 
| Using calibre's editor independently | sbin | Editor | 34 | 07-31-2014 01:40 PM | 
| regex in calibre editor | mrmikel | Editor | 2 | 02-01-2014 10:39 AM | 
| Calibre Ebook Editor | filmo | Kobo Reader | 0 | 01-13-2014 10:11 AM | 
| Calibre Editor for former Sigil users | theducks | Editor | 2 | 12-22-2013 12:55 PM |