Recent

Author Topic: Integrated Help TOC  (Read 18322 times)

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: Integrated Help TOC
« Reply #15 on: August 19, 2012, 03:01:56 pm »
Sure, a PDF manual. Mr Feature Creep ;) Next, you'll want it searchable, cross platform, with context-sensitive help - hey, perhaps a bit like the chm viewer we have now ;)

(More seriously, having the chms as pdf would be nice - and they already exist for the FPC part of things. Presumably you could create an lcl.pdf using fpdoc - though on Linux only)

But there already IS lcl.chm file! Why make it a pdf when chm is already a better solution for class reference? I mentioned pdf only as an option for the _non-existing_ IDE manual, because it's easier to do - a quick and dirty job could be to create a document, slap many IDE screenshots in it and write short descriptions for everything on them... and here comes a basic IDE manual for the totally clueless :)

I don't really see my propositions as a case of "creeping featuritis", the changes I propose are actually quite small (read it again ;) ). Ok, perhaps I didn't write clearly enough...

...
It was about http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/gentoc.pp?root=docs&view=log being a simple script. It will also generate an entry for the LCL and lazutils (the latter since yesterday) when run in a directory with these in them.
...

So you say toc.chm should also link to lcl.chm if I understood correctly? The toc.chm I got with Lazarus does not...
« Last Edit: August 19, 2012, 04:53:51 pm by TurboRascal »
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12715
  • FPC developer.
Re: Integrated Help TOC
« Reply #16 on: August 19, 2012, 03:31:44 pm »
Amy:  I assume they took the 2.6.0 FPC documentation, added lcl.chm, but didn't regenerate the toc.chm file.

Try http://www.stack.nl/~marcov/toc.chm  (also knows "lazutils.chm")

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: Integrated Help TOC
« Reply #17 on: August 19, 2012, 03:43:10 pm »
Try http://www.stack.nl/~marcov/toc.chm  (also knows "lazutils.chm")

This one does link to the lcl.chm and lazutils.chm, thanks! It's strange that Lazarus comes with the file lacking that Lazarus-specific part... I've checked both in the 1.0RC1 release and trunk and it's the same. Perhaps a bug should be filed for this?

Now, if only we had a Help menu item which would invoke that file, that's it. I guess that calls for another bug report?
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Integrated Help TOC
« Reply #18 on: August 19, 2012, 03:54:14 pm »
Sure, a PDF manual. Mr Feature Creep ;) Next, you'll want it searchable, cross platform, with context-sensitive help - hey, perhaps a bit like the chm viewer we have now ;)

(More seriously, having the chms as pdf would be nice - and they already exist for the FPC part of things. Presumably you could create an lcl.pdf using fpdoc - though on Linux only)

Also I don't understand what online help page you refer to, there is only that html doc you get when you click Online Help

But there already IS lcl.chm file! Why make it a pdf when chm is already a better solution for class reference? I mentioned pdf only as an option for the _non-existing_ IDE manual, because it's easier to do - a quick and dirty job could be to create a document, slap many IDE screenshots in it and write short descriptions for everything on them... and here comes a basic IDE manual for the totally clueless :)

I don't really see my propositions as a case of "creeping featuritis", the changes I propose are actually quite small (read it again ;) ). Ok, perhaps I didn't write clearly enough...

...
It was about http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/gentoc.pp?root=docs&view=log being a simple script. It will also generate an entry for the LCL and lazutils (the latter since yesterday) when run in a directory with these in them.
...

So you say toc.chm should also link to lcl.chm if I understood correctly? The toc.chm I got with Lazarus does not...
Uhm Arny, could you mess with the quote tags a bit please?

Quote
But there already IS lcl.chm file! Why make it a pdf when chm is already a better solution for class reference? I mentioned pdf only as an option for the _non-existing_ IDE manual
So you meant that? Sorry, I must have skimmed that part. I mistakenly thought you'd meant LCL.

There are, BTW already some manuals written. Motaz on this forum has written one. There's one in French which is fairly comprehensive. It just lacks somebody to slam them into the docs folder and perhaps pretty them up.

See the wiki (documentation article I'd think) for details on links etc.
« Last Edit: August 19, 2012, 03:57:12 pm by BigChimp »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Integrated Help TOC
« Reply #19 on: August 19, 2012, 03:57:50 pm »
This one does link to the lcl.chm and lazutils.chm, thanks! It's strange that Lazarus comes with the file lacking that Lazarus-specific part... I've checked both in the 1.0RC1 release and trunk and it's the same. Perhaps a bug should be filed for this?

Now, if only we had a Help menu item which would invoke that file, that's it. I guess that calls for another bug report?
Yes & yes ;)
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: Integrated Help TOC
« Reply #20 on: August 19, 2012, 05:04:45 pm »
Uhm Arny, could you mess with the quote tags a bit please?

Messing with the quote tags above - done ;)

So you meant that? Sorry, I must have skimmed that part. I mistakenly thought you'd meant LCL.

 ;D

There are, BTW already some manuals written. Motaz on this forum has written one. There's one in French which is fairly comprehensive. It just lacks somebody to slam them into the docs folder and perhaps pretty them up.

See the wiki (documentation article I'd think) for details on links etc.

I'm not too much concerned wit the IDE help/manual ATM - after all, I (mostly) know how to use the IDE (until something occasionally changes) ;) As everybody else, I'm currently more concerned with scratching an itch. ;) To me, the most useful feature is the ability to easily access and browse programmer's technical references anytime from the help menu, so I'm proposing changes in that direction.

Yes & yes ;)

So, if no one objects or informs me there already are such reports posted, I'll post the bug reports...
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: Integrated Help TOC
« Reply #21 on: August 19, 2012, 09:32:14 pm »
I understand. My point was that having lhelp open all chm files will at least give you an overview of all available help files, whether you press F1 for context-sensitive help or a Help key combo or menu command, which shouldn't.

This way, searching for concepts that may exist in another (or multiple) chm file is possible

To me there isn't much difference between the toc.chm and directly showing the help files in lhelp as the former only shows the titles and a brief description of the files, but I can understand you'd want to see it.... and of course, opening toc.chm if not doing context-sensitive help makes sense.

When we're at it, just a comment for this since I saw you filed a bug report. For what I can see, the choice of the proper chm file in context help is handled the same way as in Delphi, by popping up the dialog asking you to choose if you need the same keyword from say, RTL or LCL...

If I understand correctly what you're asking, that feature seems to be an already done solution...
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Integrated Help TOC
« Reply #22 on: August 20, 2012, 07:33:58 am »
I think you don't understand correctly...

If I press F1 on an LCL identifier, lhelp pops up with LCL help.
Now I can't search for RTL or other concepts then as their CHMs don't open. This is not nice if you don't know if you are using the best keyword/tool for the job (example: don't know if it's documented already but there is DirectoryExistsUTF8 in Lazarus and DirectoryExists in FPC).
I also can't browse other help files.

I'd have to open the other chms manually in lhelp for this to happen.l
« Last Edit: August 20, 2012, 07:51:13 am by BigChimp »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Integrated Help TOC
« Reply #23 on: August 20, 2012, 07:46:48 am »
Quote
If I press F1 on an LCL identifier, lhelp pops up with LCL help. I can't search for RTL or other concepts then as their CHMs don't open. I also can't browse other help files.
That's weird... I even have my chm help settings empty and lhelp knows which chm to open... (not only for identifiers, but keywords are also supported)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Integrated Help TOC
« Reply #24 on: August 20, 2012, 07:51:47 am »
That's weird... I even have my chm help settings empty and lhelp knows which chm to open... (not only for identifiers, but keywords are also supported)
I'm not saying it doesn't know what chm file it should open. I edited the post above, hope it helps clarify what I mean.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Integrated Help TOC
« Reply #25 on: August 20, 2012, 08:19:08 am »
OK, I see what you mean is since lhelp only opens 1 specific chm, you can't search for other things from currently opened lhelp.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Integrated Help TOC
« Reply #26 on: August 20, 2012, 08:28:34 am »
Yep. And you can't browse through them either.

That might be partially worked around by opening toc.chm, but:
1. you'll have to first manually open the chms via the links there anyway
2. toc.chm doesn't get opened when starting lhelp (because the only way it is started now is with context-sensitive help which should end up e.g. in lcl.chm, never in toc.chm)

Edit: hint: the patch in the issue works too well: it fixes the issue by opening all chm and all other help files (including online help) the first time the system starts lhep.
I need help from somebody to strip it down to only opening the chms ;)
« Last Edit: August 20, 2012, 08:30:55 am by BigChimp »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: Integrated Help TOC
« Reply #27 on: August 20, 2012, 09:34:55 am »
Yep. And you can't browse through them either.

That might be partially worked around by opening toc.chm, but:
1. you'll have to first manually open the chms via the links there anyway
2. toc.chm doesn't get opened when starting lhelp (because the only way it is started now is with context-sensitive help which should end up e.g. in lcl.chm, never in toc.chm)

Ah, now I see... you actually want more or less the same thing as I do - the ability to open any help file at will. The only difference is that you want it when you already get context help open, while I want to get that from the menu. I guess both options would be welcome and make the help system closer to Delphi's...
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Integrated Help TOC
« Reply #28 on: August 20, 2012, 10:14:27 am »
Yep.
Quote
So, if no one objects or informs me there already are such reports posted, I'll post the bug reports...
Did you get a chance to file those reports - or were there already bug reports on this? Haven't seen anything related come up.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: Integrated Help TOC
« Reply #29 on: August 20, 2012, 05:42:46 pm »
Did you get a chance to file those reports - or were there already bug reports on this? Haven't seen anything related come up.

I've checked on the mantis too, the only report the relevant search returns is yours. :) So I guess I'll file the reports...
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

 

TinyPortal © 2005-2018