Re: i need better idea to know if a complete word *really it's* acomplete word

2003-02-20 Thread Mark Wieder
Task-

If you're using Delphi, how about the AnsiString::IsDelimiter()
method? That way you can specify the characters you want as white
space to delimit individual words.

-Mark Wieder

 Using The Bat! v1.63 Beta/4 on Windows 2000 5.0 Build 2195 Service Pack 2
-- 



Current version is 1.62 | "Using TBDEV" information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re[4]: i need better idea to know if a complete word *really it's*a complete word

2003-02-20 Thread Task Control
Estimados seguidores del tbdev arroba thebat.dutaint.com:


En relación a lo que Kevin en su momento posteó:

KJMJ> What about using UNICODE instead of ASCII?

  the "ritlabs the bat" interface for plugins export the records of
  the mail in ascii format. Sorry, but i couldn't change it.

-- 
Se despide,
 Task Control 
   mail: TaskControl at SoftHome dot net
 correo: TaskControl arroba SoftHome punto net

Usando: 
- Windows 98 4.10.1998 
- AVG 6.0 Free Edition
- The Bat! 1.63 Beta/7
- Trillian PRO 1.0 B



Current version is 1.62 | "Using TBDEV" information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re[3]: i need better idea to know if a complete word *really it's*a complete word

2003-02-20 Thread Kevin J. Menard, Jr.
Hey Task,

What about using UNICODE instead of ASCII?

-- 
Kevin


Thursday, February 20, 2003, 6:17:42 PM, you wrote:

TC> Estimados seguidores del tbdev arroba thebat.dutaint.com:


TC> En relación a lo que Kevin en su momento posteó:

KJMJ>> Is there any reason you're not using toupper() or tolower() (or
KJMJ>> some equivalent in whatever language you're dealing with)?
TC> yeah, i use it: in delphi is uppercase() but the problem is other, the
TC> problem   is  with  that  letters  that  changed  with  the  diferents
TC> codifications of windows.





Current version is 1.62 | "Using TBDEV" information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re[2]: i need better idea to know if a complete word *really it's*a complete word

2003-02-20 Thread Task Control
Estimados seguidores del tbdev arroba thebat.dutaint.com:


En relación a lo que Kevin en su momento posteó:

KJMJ> Is there any reason you're not using toupper() or tolower() (or
KJMJ> some equivalent in whatever language you're dealing with)?
yeah, i use it: in delphi is uppercase() but the problem is other, the
problem   is  with  that  letters  that  changed  with  the  diferents
codifications of windows.

-- 
Se despide,
 Task Control 
   mail: TaskControl at SoftHome dot net
 correo: TaskControl arroba SoftHome punto net

Usando: 
- Windows 98 4.10.1998 
- AVG 6.0 Free Edition
- The Bat! 1.63 Beta/7
- Trillian PRO 1.0 B



Current version is 1.62 | "Using TBDEV" information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re: i need better idea to know if a complete word *really it's* acomplete word

2003-02-20 Thread Kevin J. Menard, Jr.
Hey Task,

Is there any reason you're not using toupper() or tolower() (or
some equivalent in whatever language you're dealing with)?  If
you're not concerned with case, but only with the word, this will
make things substantially easier for you.

-- 
Kevin





Current version is 1.62 | "Using TBDEV" information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re[2]: vampire first release avalaible

2003-02-20 Thread Task Control
Estimados seguidores del tbdev arroba thebat.dutaint.com:

En relación a lo que ArekG en su momento posteó:

A> -BEGIN PGP SIGNED MESSAGE-
A> Hash: SHA1

A> Hello Task,

A> On Thursday, February 20, 2003 at 4:21:40 AM, you wrote in subject of
A> "vampire first release avalaible":

TC>>   - works in our directory
A>I've installed in directory 'C:\Program Files\The
A>Bat!\Plugins\Vampire\', added in TB! configuration but plugin seems
A>not to work...
¿Did you really install it or only copy files?
¿The firsttime.exe was been executed once time ago?
¿The   c:\vampire.ini   file  has  constains  the  string:  C:\Program
Files\The Bat!\Plugins\Vampire\?
¿did you close and open the bat!?
¿you click in the button save checked?

please active vampire, desactive another plugins, close the bat, open
the bat, send you a litle mail with a know subject, mark in vampire
list some word in this subject as suspect mail. Download it mail. Next
see your log.txt file. If the file is little please compress it and
send me.

TC>>   - only write one file out of directory: "c:\vampire.ini"
A>Why this file is located in root directory of disk C: (or any root
A>directory of any disk)?
The problem with the bat! are the execution directory of the plugin
some times are the bat directory, another times the plugin directory,
and others times a windows\desktop directory

In  this file i put your vampire directory. I need save this file in a
place that never change, and with next i use in the plug'in:
(example to read scores)

var
   root,f_scores: textfile;
   temp,rootdir: string;
assignfile(root,'c:\vampire.ini');
readln(root,temp);
rootdir:=trim(temp)+'\';
closefile(root);

assignfile(f_scores,rootdir+'scores.ini');
readln(f_scores,temp);
secure_score:=strtodec(temp)
closefile(f_scores);

-- 
Se despide,
 Task Control 
   mail: TaskControl at SoftHome dot net
 correo: TaskControl arroba SoftHome punto net

Usando: 
- Windows 98 4.10.1998 
- AVG 6.0 Free Edition
- The Bat! 1.63 Beta/7
- Trillian PRO 1.0 B



Current version is 1.62 | "Using TBDEV" information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re: i need better idea to know if a complete word *really it's* acomplete word

2003-02-20 Thread NetVicious
Hello Task,

Get this code, it's from my plugin ;-)

I have all the the checkings in one module.
I have translated the code, it could be one typo with some thing ;-)

Function IsSeparator(const txt: String; pos: Integer): Boolean;
const
  Separator  : Array [0..26] of Char = (' ', '.', ',', ':', '!', '¡', #39, #34, '&', 
'%', '$', '/', '\', '*', '#', '?', '¿', '(', ')', '{', '}', '[', ']', '<', '>', '_', 
'-');
var
  ret : Boolean;
  i   : Integer;
  
Begin
   ret:= False;

   If pos > Length(txt) Then
  ret:= True
   Else
   If pos <= 0 Then
  ret:= True
   Else
   Begin
   // Start of the vector
   i:= 0;

   // While I have separators and I don't found it
   While (i <= 26) And (ret = False) do
   Begin
  If Copy(txt, pos, 1) = Separator[i] Then
 ret:= True;

  inc(i);
   end;
   end;

   Result:= ret;
end;


// maymin -> case sensitive ?
// orig -> string to do the search (in original format)
// origUp -> string to do the search (in Uppercase)
// txt -> string to search
// num -> number to add if it's found

Function ContainsWord(const maymin: Boolean; const orig: String; const origUp: String;
  const txt: String; const num: Integer): Integer;
var
   p : Integer;
Begin
   Result:= 0;
   if maymin then
   Begin
  p:= Pos(txt, orig);
  If p > 0 then
 If IsSeparator(orig, p-1) and ( Copy(orig, p, length(txt)) = txt )
  and IsSeparator(orig, p + length(txt) ) then
Result:= num;
   end
   else
   Begin
  p:= Pos(UpperCase(txt), origUp);
  If p > 0 then
 If EsSeparator(orig, p-1) and ( Copy(orig, p, length(txt)) = UpperCase(txt) )
  and EsSeparator(orig, p + length(txt) ) then
 Result:= num;
   end;
end;

El jueves, 20 feb 2003 a las 23:29, escribiste:

>   well i have a question, i use a simple algorith to know if a word is
>   a  complete  word,  for example i search the complete word "lion" in
>   "animals: lion, cat, dog, mule"


---
   
  /\/
 /  \  / \  /
/\/ e t   \/ i c i o u s
   

Using The Bat! 1.63 Beta/5 on Windows XP (5.1.2600 Service Pack 1)



Current version is 1.62 | "Using TBDEV" information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re:vampire first release avalaible

2003-02-20 Thread ArekG
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Task,

On Thursday, February 20, 2003 at 4:21:40 AM, you wrote in subject of
"vampire first release avalaible":

TC>   - works in our directory
   I've installed in directory 'C:\Program Files\The
   Bat!\Plugins\Vampire\', added in TB! configuration but plugin seems
   not to work...

TC>   - only write one file out of directory: "c:\vampire.ini"
   Why this file is located in root directory of disk C: (or any root
   directory of any disk)?

- --
Regards,
 ArekG

** TheBat! version 1.63 Beta/7 on Windows 2000 PL build 2195 Service
Pack 2**

-BEGIN PGP SIGNATURE-
Version: 6.5.8ckt build08
Comment: KeyID: 0xFC7A5E43F9077085
Comment: Fingerprint: 07E6 1207 FA96 4A5B 68A9  BB1A FC7A 5E43 F907 7085

iQA/AwUBPlU7Z/x6XkP5B3CFEQL+LgCfcNJ0U1SEOSvr40JZfa3zJfIaN9EAn1sY
AeJFylS55cm9xmVDB/n4fv2j
=Itk8
-END PGP SIGNATURE-




Current version is 1.62 | "Using TBDEV" information:
http://www.silverstones.com/thebat/TBUDLInfo.html



i need better idea to know if a complete word *really it's* acomplete word

2003-02-20 Thread Task Control
off-topic: Vampire 0.01b! is avalaible in
http://fyberger.tripod.com/fyberger/vampire/vampire.htm

Estimados seguidores del tbdev arroba thebat.dutaint.com

  well i have a question, i use a simple algorith to know if a word is
  a  complete  word,  for example i search the complete word "lion" in
  "animals: lion, cat, dog, mule"

  zero  step:
  "animals: lion, cat, dog" changed to "ANIMALS: LION, CAT, DOG"
  "lion" changed to "LION
  
  first step:
 "ANIMALS: LION, CAT, DOG"
   
 ¿it the string here? YES

  second step
 "ANIMALS: LION, CAT, DOG"
  ^
 ¿is not a letter? YES
 
  third step
 "ANIMALS: LION, CAT, DOG"
   ^
 ¿is not a letter? YES

  Well  to  know  if a letter or number i use the next criterium: if a
  character  ascii  number  (is bigger than 65 and shorter than 90) or
  (is bigger than 48 and shorter than 57) returns true.

  Well if you use a non traditional ascii chars (for example Ñ in
  spanish or anothers in others languages) can pass it:

  "ANIMALES: ÑANDU, LEON, PERRO", search for complete word ANDU

  "ANIMALES: ÑANDU, LEON, PERRO"
   (founded)
 
  "ANIMALES: ÑANDU, LEON, PERRO"
 ^  (isn't a letter)
  
  "ANIMALES: ÑANDU, LEON, PERRO"
  ^ (isn't a letter)

  and WRONG RESULT!

  i need a better idea.
  
-- 
Se despide,
 Task Control 
   mail: TaskControl at SoftHome dot net
 correo: TaskControl arroba SoftHome punto net

Usando: 
- Windows 98 4.10.1998 
- AVG 6.0 Free Edition
- The Bat! 1.63 Beta/7
- Trillian PRO 1.0 B



Current version is 1.62 | "Using TBDEV" information:
http://www.silverstones.com/thebat/TBUDLInfo.html