[fpc-pascal] Re: Permuted index (KWIC) of function descriptions

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Jan 28 08:44:30 CET 2011


Op 2011-01-27 02:27, Andrew Haines het geskryf:
> 
> As far as I remember the chm search only indexes whole words. So
> searching for "space" would not return "LotsOfSpace" I'm not sure if it
> would find "SpaceFoo" since it starts with space.

That's the problem with CHM viewers, they are all in varying states of
what they support or how good they perform at such tasks. Linux alone
has about 5 or more CHM viewers, and they are all pretty crap in their
own way.

You are welcome to take a peek at fpGUI's DocView searching code (but
how well it can be translated to LHelp is unknown to me). DocView has
extensive searching support with instant results, even in searching was
done across multiple INF documents.  The search features in DocView
includes:

* Search across multiple open INF documents

* Search by phrases by including multiple words in double quotes. eg:
"cross platform"

* Finer control over search results, by including a + or - symbol in
front of a word. For example, the search term "OnClick -Button' will
search for topics that contain "OnClick", but NOT have the word "Button"
in the text.

* Partial word matches. eg: Searching for "win", will find "window",
"following", "showing" etc. The better the match, the higher the search
ranking, and thus the closer to the top of the search results it will
appear. By "better the match" I mean, is the search term found in the
title of the topic, in the index entry, in the body of the topic, or
closer to a full word.



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/





More information about the fpc-pascal mailing list