Hello Charlie,

An archeological dig discovered that on Saturday, June 14, 2003 at
21:43 GMT +1000, Charlie Laidlaw [CL] chiseled the following:

CL> 1. If anyone could modify ReWrap to do this for me, i'd be very grateful.
CL> I would guess that that detecting a long string of blanks would be the
CL> best trigger to somehow make it skip a line?

You can try something like:

=====[Begin replacement wrap2]=====
%REM="This is a specialized version of the wrap2 template.
      It is modified to require 5 or more spaces and a new-line as the
      delimiter for paragraphs.

      Modified June 14, 2003 by Januk Aggarwal
"%-
%IF:'%-
%SETPATTREGEXP="(?is-m)[^\n]+"%-
%REGEXPMATCH="%COMMENT"'<>'':'%-
%-
%WRAPPED=_%SETPATTREGEXP="(?is-m)^(.*?)(\s{5,}\n(.*)\s*$|\z)"%-
%-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%-
%-%-%-%-%-%SUBPATT="1"_

%COMMENT=_%SETPATTREGEXP="(?is-m)^(.*?)(\s{5,}\n(.*)\s*$|\z)"%-
%-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%-
%-%-%-%-%-%SUBPATT="3"_%-
%QINCLUDE="wrap2"'
=====[ End  replacement wrap2]=====

I can't exactly try this template because of changes in the current
beta, but that should work.  It detects 5 or more spaces followed
by a newline character as the delimiter between paragraphs.

CL> 2. I quite like the look of Marck's 'Quote Extraction' also
CL> www.silverstones.com/thebat/Library.html#quote+extractionlooks . So
CL> i'd also like my replies to first execute Marck's Quote Extraction on
CL> the original letter, and then Januk's ReWrap on the extracted &
CL> cleaned-up material. How can i do this?

You need a driver template for wrap2 anyway, so you can specify what
you feed it.  Try something like:

=====[Begin driver template]=====
%Comment="%QInclude='<quote extraction QT>'"%-
%QInclude="wrap2"%-
%Comment=""%-
=====[ End  driver template]=====


-- 
Thanks for writing,
 Januk Aggarwal

Using The Bat! 1.63 Beta/11 under Windows 98 4.10 Build 2222 A




________________________________________________________

http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to