Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre


Thread Tools Search this Thread
Old 12-10-2008, 09:05 PM   #16
You really should try it!
Andurian doesn't litterAndurian doesn't litter
Posts: 57
Karma: 137
Join Date: Nov 2008
Device: PRS-500
Originally Posted by Elfwreck View Post
No script, but I've had some luck using Word to replace period-return with period-return-return, and then add a return to the end of period-dblquote-return and period-space-return and period-doublequote-space-return. (.^p; ."^p, . ^p, ." ^p)

It's not 100% accurate, and you have to rotate through the rest of the end-of-sentence punctuation (question marks, exclamation points), but it gives a good start to work from--changes it from "add a return after every single paragraph" to "proofread for missing returns for quotes after a colon or emdash."
I suppose its a matter of taste whether you prefer to look for short lines ending in .^p etc. or whether you'd do it to all lines ending in that. My method would miss paragraphs that happen to end with a nearly full line of text, yours would mistakenly hit mid-paragraph sentences that happen to end a line with punctuation.

I suppose you could write both scripts and find the error rate.

Honestly, in my case I only "pirate" texts that I already own as pbooks, so when I encounter texts that end every line with ^p and don't give me a ready way to distinguish paragraphs I just give up on the text file and read the dead wood version.
Andurian is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
conversion to txt or rtf makes empty file lunixer Calibre 10 08-25-2010 04:56 PM
inserting blank lines into rtf/txt/html errata Ectaco jetBook 7 07-10-2010 09:16 PM
HTML to TXT conversion alkr Calibre 3 10-02-2009 09:54 AM
[Old Thread] unable to convert ebooks(rtf, txt,lit,html,pdf) to lrf in calibre .4.131 jackdeth191 Calibre 9 05-02-2009 02:55 AM
PRS-500 New conversion method: txt->rst->html->lrf phrodod Sony Reader Dev Corner 7 09-13-2007 02:50 AM

All times are GMT -4. The time now is 01:14 PM. is a privately owned, operated and funded community.