on Sunday, 15 June 2003, Januk wrote
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?
JA> You can try something like:
JA> =====[Begin replacement wrap2]=====
JA> %REM="This is a specialized version of the wrap2 template.
JA> It is modified to require 5 or more spaces and a new-line as the
JA> delimiter for paragraphs.
JA> Modified June 14, 2003 by Januk Aggarwal
JA> "%-
JA> %IF:'%-
JA> %SETPATTREGEXP="(?is-m)[^\n]+"%-
JA> %REGEXPMATCH="%COMMENT"'<>'':'%-
JA> %-
JA> %WRAPPED=_%SETPATTREGEXP="(?is-m)^(.*?)(\s{5,}\n(.*)\s*$|\z)"%-
JA> %-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%-
JA> %-%-%-%-%-%SUBPATT="1"_
JA> %COMMENT=_%SETPATTREGEXP="(?is-m)^(.*?)(\s{5,}\n(.*)\s*$|\z)"%-
JA> %-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%-
JA> %-%-%-%-%-%SUBPATT="3"_%-
JA> %QINCLUDE="wrap2"'
JA> =====[ End replacement wrap2]=====
JA> I can't exactly try this template because of changes in the current
JA> beta, but that should work. It detects 5 or more spaces followed
JA> by a newline character as the delimiter between paragraphs.
no, it didn't work for me, i still got just a big block of wrap on my
problem emails, and regular emails didn't wrap at all.
but i'm quite happy to contact the source & ask them to format it
better. so please don't feel you need to try again, unless you want to
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?
JA> You need a driver template for wrap2 anyway, so you can specify what
JA> you feed it. Try something like:
JA> =====[Begin driver template]=====
JA> %Comment="%QInclude='<quote extraction QT>'"%-
JA> %QInclude="wrap2"%-
JA> %Comment=""%-
JA> =====[ End driver template]=====
ok, yes i get it, this works great.
--
thanks very much,
~Charlie
Using The Bat! v1.62r on Windows 98
4.10 Build 2222
A
________________________________________________________
http://www.silverstones.com/thebat/TBUDLInfo.html