View Single Post
Old 06-13-2009, 04:22 PM   #5
slantybard
my parent's oops...
slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.
 
Posts: 492
Karma: 1477572
Join Date: Feb 2009
Device: Vx->Handera->Clie-> Axim->505->650->KPW/Aura ->L2->iOS/CBW
Try MS Word

Quote:
Originally Posted by tonyt View Post
Hi all
I have a real problem. I have a book in RTF which has a carriage return at the end of EVERY line! It is also formatted to 60 characters per line!!
I have tried all sorts of ways of getting it into Calibre in some useable form. All attempts a disaster!!!
Can anyone out there offer a crumb of comfort?
Thanks
PS What is the longest Calibre has spent SUCCESSFULLY converting a book for you?
In the past with very roughly formatted txt or rtf files, I have found that opening up the file in MS Word (or similar word processors with good search and replace) and then using the find and replace to remove the hard returns. In MS Word for example, the line breaks are searchable using "^l" (without the quotes). However, just doing this will remove all the carriage returns and you will not have any paragraphs left.

In this case, the paragraphs may be saved if there are 2 or more carriage returns at the end of the paragraph. If so, then find and replace "^l^l" with "^p^p", then use "^l" with " " (a blank space), and finally "^p^p" with "^p"

This will replace all the paragraph ends and save them temporarily, then change out all the carriage returns, and finally fix the paragraph ends properly.

Let me know if that works for you.
slantybard is offline   Reply With Quote