Re: [Lazarus] lHelp improvements

2020-12-30 Thread Mattias Gaertner via lazarus
On Wed, 30 Dec 2020 21:44:21 +0300 Andrey Sobol via lazarus wrote: >[...] > I know about it. But the main problem is that the Lhelp is another > application. Need to transfer preference data (search pathes and > registered database files info) to lHelp. Without this I can`t do > nothing better

Re: [Lazarus] lHelp improvements

2020-12-30 Thread Andrey Sobol via lazarus
Querying all registered help databases is easy: lcl unit lazhelpintf for i:=0 to HelpDatabases.Count-1 do HelpDatabases[i]... For example the IDE registers fpdoc help for RTL, FCL and LCL to open the lazarus-ccr web pages. The chmhelppkg replaces them with its own and opens chm files inste

Re: [Lazarus] lHelp improvements

2020-12-28 Thread Mattias Gaertner via lazarus
On Mon, 28 Dec 2020 21:05:00 +0100 Marco van de Voort via lazarus wrote: >[...] > It is wise to bring this up early, because it might require changes > to the general Lazarus  help system, since lhelp needs to get a list > of registered help files at once (so it can manage the combined index > t

Re: [Lazarus] lHelp improvements

2020-12-28 Thread Sergey Bodrov via lazarus
chm indexes opens and reads in milliseconds. But filling Index TreeView in LHelp takes seconds of time. Place BeginUpdate / EndUpdate around TreeView filling, and delay will gone. hh.exe can use external combined Index and Search for multiple chm's. On Sun, Dec 27, 2020, 17:15 Соболь Андрей Евген

Re: [Lazarus] lHelp improvements

2020-12-28 Thread Marco van de Voort via lazarus
Op 12/28/2020 om 4:03 PM schreef Andrey Sobol via lazarus: Afaik most of the binary indexes (index, FTS) can be mergesorted together rather cheaply and then stored on disk. Using these rather than converting everything to text and then parse that again would make it very fast. This is what

Re: [Lazarus] lHelp improvements

2020-12-28 Thread Andrey Sobol via lazarus
Afaik most of the binary indexes (index, FTS) can be mergesorted together rather cheaply and then stored on disk. Using these rather than converting everything to text and then parse that again would make it very fast. This is what HH does. Even faster is caching the result of the merge on

Re: [Lazarus] lHelp improvements

2020-12-28 Thread Marco van de Voort via lazarus
Op 12/28/2020 om 2:03 AM schreef Mattias Gaertner via lazarus: - When I press F1 for the lHelp enabled for context searching, then Lazarus send group of command as got BeginUpdate got BeginUpdate got rturl, filename M:\lazarus\docs\chm\fcl.chm, url /index.html got rturl, f

Re: [Lazarus] lHelp improvements

2020-12-28 Thread Werner Pamler via lazarus
Am 28.12.2020 um 02:03 schrieb Mattias Gaertner via lazarus: What package opens hh.exe in Lazarus? No special package needed. As I described in https://wiki.freepascal.org/Installing_Help_in_the_IDE#Installing_CHM_help_.28Lazarus_1.0_and_later.29, hh.exe (the Windows help viewer) can be made to

Re: [Lazarus] lHelp improvements

2020-12-27 Thread Andrey Sobol via lazarus
On Sun, 27 Dec 2020 17:15:23 +0300 Соболь Андрей Евгеньевич via lazarus wrote: Hi, guys. I am trying to do the lHelp more convenient. Great! And after I have combined a chm indexes on start, I think about next step. What I see... 1. Exist a contradiction of behavior for contex searching

Re: [Lazarus] lHelp improvements

2020-12-27 Thread Mattias Gaertner via lazarus
On Sun, 27 Dec 2020 17:15:23 +0300 Соболь Андрей Евгеньевич via lazarus wrote: > Hi, guys. > > I am trying to do the lHelp more convenient. Great! > And after I have > combined a chm indexes on start, I think about next step. What I > see... > 1. Exist a contradiction of behavior for contex

[Lazarus] lHelp improvements

2020-12-27 Thread Соболь Андрей Евгеньевич via lazarus
Hi, guys. I am trying to do the lHelp more convenient. And after I have combined a chm indexes on start, I think about next step. What I see... 1. Exist a contradiction of behavior for contex searching through hh.exe (windows) an lHelp (this is for first start of help subsystem): - When I press