[fpc-pascal] Text matching for configuration files etc.

Noa Shiruba shiruba at galapagossoftware.com
Thu Apr 12 03:05:57 CEST 2012


Hi,

I think this sounds more like "edit distance", but I am not sure why it would be needed for a config file.

Thank you, 
   Noah silva

On 2012/04/12, at 4:12, Juha Manninen <juha.manninen62 at gmail.com> wrote:

> On Wed, Apr 11, 2012 at 9:19 PM, Mark Morgan Lloyd <markMLl.fpc-pascal at telemetry.co.uk> wrote:
> I know that there are algorithms which given a text fragment will find the "best fit" from a number of candidates, based on how many substrings have to be deleted or changed.
> 
> Is there anything like this in the standard FPC library, and if not does anybody have one or a URL?
> 
> Application is a configuration file handler, where parameters describe things like keyboard layout, and I want to include some latitude so that a user doesn't have to get it exactly right if editing by hand.
> 
> Maybe you mean something like Soundex:
>   http://lazarus-ccr.sourceforge.net/docs/rtl/strutils/soundex.html
> 
> I myself would make a GUI for the configuration file and give all valid choices in comboboxes and radiogroups etc.
> 
> Juha
> 
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120412/8c8ebcbc/attachment.html>


More information about the fpc-pascal mailing list