Re: New Smart Quote Prefixing Not working

2003-06-11 Thread Januk Aggarwal
Hello Greg,

On Wednesday, June 11, 2003 at 08:59 GMT -0500, a creature mimicking
Greg Strong [GS] wrote:

snip
GS You were close on the AB entry, but not totally correct. After running
GS the 'Full Name' QT the output received was Strong, Greg (Rr-Ml).
snip
GS I'll have to learn more about RegEx and macros to understand why
GS the 'M' is being picked up.

That one is easy.  The regexp in the initials QT looks for a dash,
underscore, equals sign, at symbol, period or whitespace as the
delimiters for a word.  Additionally the initial must be a valid
alphanumeric character (a-z, A-Z, 0-9).  So the parentheses are
treated as neither a word delimiter nor a valid initial, so the R is
skipped.  That leaves the M.  I could add parentheses to the list of
valid delimiters, but I don't think it is worthwhile.  After all, how
often does someone have a real part of their name in parentheses?

Now you could argue that I should ignore anything in quotes,
parentheses or some other marking scheme.  I could try to do that, but
it would add a tremendous level of complexity for very little gain.
That and it would be a lot of work to try and get such an expression
to be as robust as the current one.

GS Any better ideals on how to differentiate my different email accounts so
GS I don't mess up the macros?

You could modify the full name QT to better suit your needs if you
wanted.  You don't *have* to pull the name from the address book.  In
fact, it might be preferable to *not* do that.  That's personal
taste.

JA [1] Syntax may have changed slightly, but from a quick glance, they
JA look the same.

GS Since Beta/8 things kind of went astray. So from posts to this list I've
GS made changes.

Yes, but only in syntax.  From my quick glance, the structure and
logic appear to be unchanged.

-- 
Thanks for writing,
 Januk Aggarwal

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




 Current beta is 1.63b10 | Using TBBETA information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: New Smart Quote Prefixing Not working

2003-06-11 Thread Greg Strong
Hello Januk,

On Wed, 11 Jun 2003, at 18:33:46 GMT -0700 (6/11/2003, 8:33 PM -0600 GMT
here), you wrote in mid:[EMAIL PROTECTED]:

JA That one is easy.

I'm sure it is for you, but not for me. I'm just reading and learning
the tutorial after other priorities, so a lot of it is a foreign
language for me.  Thanks for the explanation!

-- 
Best regards,

Greg Strong 
TB! v1.63 Beta/10 on Windows XP Service Pack 1





 Current beta is 1.63b10 | Using TBBETA information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: New Smart Quote Prefixing Not working

2003-06-10 Thread Tony Boom
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday 10 June 2003 20:46, Greg Strong wrote:

GS  Last night I read part I of the RegEx
GS tutorial.

Is it a book, URL or other?

A URL would be nice :)


- -- 
Tony.

Defender 110. SuSE Linux 8.2.  ©2ØØ3 - AWB
Registered Linux user #316959Linux Box #202147

http://homepage.ntlworld.com/t.boom/110.jpg

PGP Key http://homepage.ntlworld.com/t.boom/pgp.htm
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE+5jefwhHpb3n4ChcRAiDdAKCLMoujeogZJ6yc+Hg2uOJaAdW/VQCg0FEz
yiv5pu05vex55VyQwswS14E=
=9awj
-END PGP SIGNATURE-



 Current beta is 1.63b10 | Using TBBETA information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: New Smart Quote Prefixing Not working

2003-06-10 Thread Marck D Pearlstone
Hi Greg,

@10-Jun-2003, 14:46-0500 (20:46 UK time) Greg Strong [GS] in
mid:[EMAIL PROTECTED] said to TBBETA:

GS Any ideals why?

Yes. The new version is wrong and I corrected it myself last night:

GS I'm NO RegEx expert. All of my QTs and templates are the result
GS of help from RegEx experts. I'm using Beta/10. From Beta/7
GS forward has caused problems with my QTs.

This is not a RegEx issue, it's a macro problem.

%IF:%QINCLUDE(ISBAT):%QUOTESTYLE(%Qinclude(Initials))%-

... is what's wrong.

This one works.

,--/ My standard 'q' QT \--
| %IF:%QINCLUDE(ISBAT):%QUOTESTYLE='=%Qinclude(Initials)'%-
| %QINCLUDE(w)
`-8-

You could probably also say:

,--/ A version using brackets \--
| %IF:%QINCLUDE(ISBAT):%QUOTESTYLE('=%Qinclude(Initials)')%-
| %QINCLUDE(w)
`-8-

Without the '=' sign, it is unreliable. The single quotes are needed
too.

,--/ Make use of variables - (because they're there) \--
| %_inits=%Qinclude(Initials)%-
| %IF:%QINCLUDE(ISBAT):%QUOTESTYLE('=%_inits')%-
| %QINCLUDE(w)
`-8-

-- 
Cheers -- .\\arck D Pearlstone -- List moderator
TB! v1.63 Beta/10 on Windows XP 5.1.2600 Service Pack 1



pgp0.pgp
Description: PGP signature

 Current beta is 1.63b10 | Using TBBETA information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: New Smart Quote Prefixing Not working

2003-06-10 Thread Bill McCarthy
)On Tue 10-Jun-03 3:46pm-0400, Greg Strong wrote:

 ,- [ Initials QT ]
 | %SETPATTREGEXP=(?is)(\w).*?([EMAIL PROTECTED](\w).*?)?([EMAIL 
 PROTECTED](\w).*?)?$%-
 | %REGEXPBLINDMATCH=%QINCLUDE('Full Name')%-
 | %SUBPATT(1)%SUBPATT(3)%SUBPATT(5)
 `-

I started reading this but got stuck.

What's this `%QINCLUDE('Full Name')`?

Is 'Full Name' a QT?  If so, you failed to include it.

Also, if it is, I would write `%QInclude='Full Name'`.

So, with new notation, shouldn't it be `%QInclude(Full Name)`?

-- 
Best regards,
Bill

The Puritan through Life's sweet garden goes
 To pluck the thorn and cast away the rose.
  [Kenneth Hare]



 Current beta is 1.63b10 | Using TBBETA information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: New Smart Quote Prefixing Not working

2003-06-10 Thread Marck D Pearlstone
Hi Bill,

@10-Jun-2003, 17:33-0400 (22:33 UK time) Bill McCarthy [BM] in
mid:[EMAIL PROTECTED] said to Greg:

BM So, with new notation, shouldn't it be `%QInclude(Full Name)`?

Certainly not. It has already been explicitly stated that quotes are
required inside the brackets if the parameter includes spaces or
brackets. Thus %QInclude('Full Name') is correct.

-- 
Cheers -- .\\arck D Pearlstone -- List moderator
TB! v1.63 Beta/10 on Windows XP 5.1.2600 Service Pack 1



pgp0.pgp
Description: PGP signature

 Current beta is 1.63b10 | Using TBBETA information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: New Smart Quote Prefixing Not working

2003-06-10 Thread Greg Strong
Hello Marck,

On Tue, 10 Jun 2003, at 22:22:37 GMT +0100 (6/10/2003, 4:22 PM -0600 GMT
here), you wrote in mid:[EMAIL PROTECTED]:

MDP This one works.

MDP ,--/ My standard 'q' QT \-- |
MDP %IF:%QINCLUDE(ISBAT):%QUOTESTYLE='=%Qinclude(Initials)'%- |
MDP %QINCLUDE(w) `-8-

If I'm understanding this correctly you want me to create a Quick
template with a handle of 'q', correct?

If yes, how does the 'q' QT get called from the reply template?

Maybe you should post your reply template. I must have missed something
when I made all the changes to my QT back in Beta/9. Thanks!

-- 
Best regards,

Greg Strong 
TB! v1.63 Beta/10 on Windows XP Service Pack 1





 Current beta is 1.63b10 | Using TBBETA information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: New Smart Quote Prefixing Not working

2003-06-10 Thread Tom Sadler
Gi'day Tony,

It is established that on Wednesday, 11 June 2003, at 20:55:03[GMT
+0100](which was 5:55 AM where I live) you wrote:

TB Is it a book, URL or other?

TB A URL would be nice :)

http://www.regenechsen.de/regex_en/regex_1_en.html  is another site. This
one  also  has  a  downloadable pdf version of the tutorial. Great for us
dial users!

-- 
Cheers,
Tom
Sydney, Australia


TB! v1.63 Beta/10 on Windows XP Service Pack 1

Sometimes when it's quiet, I can hear my brain cells die.





pgp0.pgp
Description: PGP signature

 Current beta is 1.63b10 | Using TBBETA information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: New Smart Quote Prefixing Not working

2003-06-10 Thread Greg Strong
Hello Marck,

On Tue, 10 Jun 2003, at 23:47:21 GMT +0100 (6/10/2003, 5:47 PM -0600 GMT
here), you wrote in mid:[EMAIL PROTECTED]:

GS If I'm understanding this correctly you want me to create a Quick
GS template with a handle of 'q', correct?

MDP Not at all. You already have a QT. You're using it. Or was it just
MDP a segment of your reply template?

It was a segment of my reply template.  See changes I made below.

MDP No, you just need to change the template you already have to use
MDP the %QUOTESTYLE('=%qinclude(Initials)') syntax instead of
MDP %QUOTESTYLE(%qinclude(Initials)) you currently have because it's
MDP wrong.

Ok I've made changes, but still get wrong initials on reply to
mid:[EMAIL PROTECTED] I get SGM instead of GS.
I'll box quote pertinent chain of reply template with QT's below.

,- [ Pertinent part of Reply Template ]
| %qinclude(q)
`-

,- [ 'q' QT ]
| %IF:%QINCLUDE(ISBAT):%QUOTESTYLE('=%qinclude(Initials)')%-
| %QINCLUDE(w)
`-

,- [ 'Initials' QT ]
| %SETPATTREGEXP=(?is)(\w).*?([EMAIL PROTECTED](\w).*?)?([EMAIL 
PROTECTED](\w).*?)?$%-
| %REGEXPBLINDMATCH=%QINCLUDE('Full Name')%-
| %SUBPATT(1)%SUBPATT(3)%SUBPATT(5)
`-

I would think the problem is in the 'Initials' QT, but for the life of
me I can't find the message where I got it. I thought it was the last
week or so. Total frustration. Best to put this one down and forget
about it.

-- 
Best regards,

Greg Strong 
TB! v1.63 Beta/10 on Windows XP Service Pack 1





 Current beta is 1.63b10 | Using TBBETA information:
http://www.silverstones.com/thebat/TBUDLInfo.html