View Single Post
Old 02-03-2020, 01:51 PM   #8
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by JSWolf View Post
Why do you want to break up long paragraphs?
I used something similar to find very long quotations within paragraphs.

The author didn't use many blockquotes, so I looked for an opening quote + X many characters (400-800+) until a closing quote:

Search: “([^”<]{800,})”
Replace: </p> <blockquote><p>\1</p></blockquote> <p>

Then I was able to easily replace:

Code:
<p>Paragraph with “a super duper [...] long quotation” in the middle.</p>
with:

Code:
<p>Paragraph with</p>
<blockquote><p>a super duper [...] long quotation</p></blockquote>
<p>in the middle.</p>
(Certain Style Guides like the CMOS require quotations of X or more words/lines reformatted as blockquotes.)
Tex2002ans is offline   Reply With Quote