=====================================================
Component MTCompare - mistake tolerant string compare
=====================================================

Author : Stephan Schneider, MSD & Consulting
Status : Shareware
Version: 2.0
Delphi : 1, 2 and 3 (only the demo was written in Delphi 3)

============================================

Detailed open ups of documents have a very high signification. It's very essential to 
compare or search for strings in documents. But (most) functions, which compare strings,
have one disadvantage: they don't implement mistake-tolerance.
But nobody is proofed against mistakes. And if more than one person is writing on a document
the rate of mistakes grow. Therefore a mistake-tolerant String-Compare is needed.


(1) MTCompare - Description (of the important parts)
----------------------------------------------------

published Properties:
=====================
 o String1: String
     String to search for

 o Strings: TStringList
     List of Strings which will be searched for String1

 o Quality: Single
     Specifies the quality of your search. This value must be between 0,0 and 1,0.
     (Multiplicate this value with 100 you have the quality in percent).
     If this value grows the mistake tolerance at the search also grows, this means
     that you will get LESS strings in your result, because the quality of your search
     is high.

 o SearchLevel: (slExact, slHigh, slLow)
     - slExact: Only those strings will be put in the result string list whose compare result
                is exactly the specified Quality
     - slHigh : Those strings will be put in the result string list whose compare result is
                greater or equal to the specified Quality
     - slLow  : Those strings will be put in the result string list whose compare result is
                less or equal to the specified Quality

 o OnFound: TFoundEvent
     You are able to place here something if a string was found (see demo!)

          
public Properties:
==================
 o FoundStrings: TClassList (a descendant of TList with automaticaly clean-up of inserted items)
     This ClassList contains the following datasets of found strings:
     
     TStringObj = class(TObject)
       Value: String;   { found string }
       Quality: Single; { quality of the found string }
     end;


Methods:
========
 o procedure Run;
     runs the mistake-tolerant algorithm
     

(2) Tips (see demo)
-------------------

If you want search documents with a mistake tolerance, you can use this component.
  o Set String1 to any string you want search for.
  o Parsing the document results also in any strings. These strings can be set to Strings.
  o call Run and you have the result in FoundStrings.


(3) It's for Delphi 1, 2 and 3.
-------------------------------

The component MTCompare can be used in Delphi 1, 2 and 3. But the demo (project1.pas) was
written in Delphi 3.


(4) Informations
----------------

This component is SHAREWARE.

It's provided as is, without a warranty of any kind. Use at your own risk!    

Contact me if you
 o have suggestions or problems
 o want to use it in a commercial application

E-Mail: sstephan@donau.de
