Dear Molescroft,

@27-Mar-2004, 19:39 Eric [M] in
mid:[EMAIL PROTECTED] said to Marck:

E>>>> %QINCLUDE="wq"

TF>>> What does the QT "wq" do?

M> As I thought I'd said in the first message of this thread, my
M> attempts to make sense of the new templates on that site proved a
M> dismal failure, and I have got things in a mess.

Oops.

M> In other words, I did look at the library but found myself unable
M> to follow the instructions for version 2.

It's a matter of removing the v1 templates and using the v2 versions
instead.

They are listed below the v1 versions.

Okay - let's try to make it easier for you:

Paste the 3 lines of macro below into your wq template. (Leave out
the '=====[****** example driver]=====' lines in both cases)

=====[Begin example driver]=====
%_Wrap_Text="%Quotes"%-
%Rem="This line is optional"%___%_Wrap_Limit="50"%-
%QInclude(wrap)%-
=====[ End  example driver]=====

Now put these in as a QT called "wrap"

=====[Begin wrap template]=====
%REM='
       Multi-Paragraph wrapping routine using features from TB v2
       Written June 2003 by Januk Aggarwal

       Notes:
          1. This template can be used alone to wrap clipboard
             contents or can be used as a wrapping engine by assigning
             text to the variable, %_Wrap_Text, in the driver template.
          2. Wrapping limit can be set optionally by defining the
             variable %_Wrap_Limit in the driver template
'%-
%-
%IF:'%_Wrap_FirstTime'='':'%-
%___%IF:"%_Wrap_Text"="":"%_Wrap_Text(%Clipboard)"%-
%___%_Wrap_FirstTime="No"'%-
%-
%IF:'%-
%SetPattRegexp="(?is-m)[^\n]+"%-
%RegexpMatch(%_Wrap_Text)'<>'':'%-
%-
%SetPattRegexp="(?is-m)^(.*?)((\n((\w{0,5}(\>\s*)+)?\s*\n)+)(.*)\s*$|\z)"%-
%RegexpBlindMatch(%_Wrap_Text)%-
%-
%_Wrap_Paragraph_1(%Subpatt(1))%-
%_Wrap_Blank_Space(%Subpatt(3))%-
%_Wrap_Remainder_Of_Text(%Subpatt(7))%-
%-
%If:"%_Wrap_Limit"="":"%-
%____%Wrapped(%_Wrap_Paragraph_1)":"%-
%____%Wrapped(%_Wrap_Limit, %_Wrap_Paragraph_1)"

%_Wrap_Text(%_Wrap_Remainder_of_Text)%-
%-
%QInclude(wrap)'%-
=====[ End  wrap template]=====


-- 
Cheers -- //.arck D Pearlstone -- List moderator
TB! v2.05 Beta/12 on Windows XP 5.1.2600 Service Pack 1
'

Attachment: pgp00000.pgp
Description: PGP signature

________________________________________________
Current version is 2.04.7 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to