Recent

Author Topic: Offline chm Help did not open local, Onlinehelp is only opend  (Read 13345 times)

af0815

  • Hero Member
  • *****
  • Posts: 1409
Offline chm Help did not open local, Onlinehelp is only opend
« on: January 10, 2015, 02:06:40 pm »
I use the ChmHelpPkg and have all the chm in lazarusdir/docs/chm inserted. If i use the help funtion inside the code, it works. The Offlinedocs are open correct.

If i go inside of Lazarus and open a dialog like Tools->Code Templates (German: Werkzeuge->Vorlagen) and use the helpbutton, only the Onlinehelp is loaded, not the Offline. If i search in fpdoc for 'Code Templates' it was found. I see this was done by all the helpbuttons inside the Dialogs of Lazarus.

Normally the package ChmHelpPkg, should do a rewrite of the Origin (Online to Offline).

Is this correct, or is this not implemented for the Lazarus internal dokumentation ?

Lazarus built from SVN.

regards
Andreas

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12645
  • FPC developer.
Re: Offline chm Help did not open local, Onlinehelp is only opend
« Reply #1 on: January 10, 2015, 02:23:18 pm »
Afaik there is no offline IDE Help. 

FPC main docs are in latex, and library (units) reference in fpdoc (distributed as CHM)

For Lazarus, LCL is in fpdoc format, the IDE help is not.

I asked several times how to download the relevant rough html (to start working on packaging on CHM), but I was told (Vincent or Marc) there used to be a tool, but that it didn't work after a wiki update. Probably due to anti spam/bot measures.

af0815

  • Hero Member
  • *****
  • Posts: 1409
Re: Offline chm Help did not open local, Onlinehelp is only opend
« Reply #2 on: January 10, 2015, 02:32:40 pm »
The keyword used by the ide is '_Code_Templates'. The help in fpdoc is found with 'code templates' in user.chm::/user/usersu53.html.

So i think the content is here, but not the binding from the ide-topics to the chm-topics.
regards
Andreas

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12645
  • FPC developer.
Re: Offline chm Help did not open local, Onlinehelp is only opend
« Reply #3 on: January 10, 2015, 02:50:07 pm »
The keyword used by the ide is '_Code_Templates'. The help in fpdoc is found with 'code templates' in user.chm::/user/usersu53.html.

That is true. Note the screenshot in that text to see /which/ IDE's code templates are described there.

Quote
So i think the content is here, but not the binding from the ide-topics to the chm-topics.

That is true. The Textmode IDE help is probably not linked to those topics. But I doubt that is what you were talking about.

af0815

  • Hero Member
  • *****
  • Posts: 1409
Re: Offline chm Help did not open local, Onlinehelp is only opend
« Reply #4 on: January 10, 2015, 03:15:05 pm »
That is true. The Textmode IDE help is probably not linked to those topics. But I doubt that is what you were talking about.
I am Talking about the Lazarus-IDE help to the contetnt visible in fpdoc, if you press the Button in the Lazarus-Code Templates-Help Button :-)
regards
Andreas

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12645
  • FPC developer.
Re: Offline chm Help did not open local, Onlinehelp is only opend
« Reply #5 on: January 10, 2015, 03:22:34 pm »
I am Talking about the Lazarus-IDE help to the contetnt visible in fpdoc, if you press the Button in the Lazarus-Code Templates-Help Button :-)

Yes, so again, that is only online afaik.  That code templates link in the FPC user manual is about the textmode IDE, not lazarus.

That being said, if we ever have Lazarus fpdoc help we must make sure the keywords don't clash with the textide ones :_)

af0815

  • Hero Member
  • *****
  • Posts: 1409
Re: Offline chm Help did not open local, Onlinehelp is only opend
« Reply #6 on: January 10, 2015, 03:37:06 pm »
That being said, if we ever have Lazarus fpdoc help we must make sure the keywords don't clash with the textide ones :_)
Or generate a lazuser.chm, withe the correct content for Lazarus and only based on the actual user.chm but not depended.

Ok, so this point is now clear.
regards
Andreas

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12645
  • FPC developer.
Re: Offline chm Help did not open local, Onlinehelp is only opend
« Reply #7 on: January 10, 2015, 03:39:28 pm »
Step one is to get the content in a repeatable way. (iow not saving every page manually)

af0815

  • Hero Member
  • *****
  • Posts: 1409
Re: Offline chm Help did not open local, Onlinehelp is only opend
« Reply #8 on: January 10, 2015, 04:17:23 pm »
Step one is to get the content in a repeatable way. (iow not saving every page manually)
This can be done in two ways
First: Reactivating of the old wiki scanner (lazarus-ccr) and convert the wikipages into html (and fight against spam-blocker :-) )
Second: A snapshot from the wiki db is generated, extract and processed like First step

Update:
the old wiki scanner is not operable, because it looks like the wiki is protected by the 'bad behavior'.

« Last Edit: January 10, 2015, 09:16:37 pm by af0815 »
regards
Andreas


af0815

  • Hero Member
  • *****
  • Posts: 1409
Re: Offline chm Help did not open local, Onlinehelp is only opend
« Reply #10 on: January 11, 2015, 08:54:55 am »
Second: A snapshot from the wiki db is generated, extract and processed like First step

Maybe, this  information helps: ....
No, the technique is wellknown, but the way is not gone today. I think the soloution can only come from the Team around the Wiki Server, if the give a way to process the data from the wiki other people can use this way to generate Offline-Help (eg. by a snapshoot via ftp). I have not found any soloution yet to work around the blocking software and to get the wiki content.
regards
Andreas

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12645
  • FPC developer.
Re: Offline chm Help did not open local, Onlinehelp is only opend
« Reply #11 on: January 11, 2015, 11:07:11 am »
No, the technique is wellknown, but the way is not gone today. I think the soloution can only come from the Team around the Wiki Server, if the give a way to process the data from the wiki other people can use this way to generate Offline-Help (eg. by a snapshoot via ftp). I have not found any soloution yet to work around the blocking software and to get the wiki content.

That is the same conclusion I reached about 2.5 years ago. Nothing changed since, though I have to admit I didn't really continuously pressured people.

For the second step (export to help conversion, fixing up links, CHM etc) have a look at the programs (.pp's) in the fpcdoc repository (the ones that postprocess the latex generated html to chm)

af0815

  • Hero Member
  • *****
  • Posts: 1409
Re: Offline chm Help did not open local, Onlinehelp is only opend
« Reply #12 on: January 11, 2015, 12:52:09 pm »
That is the same conclusion I reached about 2.5 years ago. Nothing changed since, though I have to admit I didn't really continuously pressured people.

For the second step (export to help conversion, fixing up links, CHM etc) have a look at the programs (.pp's) in the fpcdoc repository (the ones that postprocess the latex generated html to chm)

Yes the caveeat is the first step. And also there are interesting parts in the lazarus-ccr.

BTW i have tested with an older Browsers, it is also not working with the Lazarsu wiki. But the actual major browsers work.
regards
Andreas

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Offline chm Help did not open local, Onlinehelp is only opend
« Reply #13 on: January 11, 2015, 03:00:58 pm »
I have not found any soloution yet to work around the blocking software and to get the wiki content.

The wiki does have an export page in the toolbox section. If you choose a Category (e. g. IDE) rather than a single page, it will export all pages in that category as a single .xml file. This may go part way to helping you get content (without slowing the wiki server to a crawl for other users).

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1119
Re: Offline chm Help did not open local, Onlinehelp is only opend
« Reply #14 on: January 11, 2015, 05:23:44 pm »
I have not found any soloution yet to  ...  get the wiki content.

Just one naive question: running a copy of the wiki content on a local server would not solve the problem with anti spam/bot measures?

Static HTML tree dumps for mirroring or CD distribution
MediaWiki 1.5 includes routines to dump a wiki to HTML, rendering the HTML with the same parser used on a live wiki. As the following page states, putting one of these dumps on the web unmodified will constitute a trademark violation. They are intended for private viewing in an intranet or desktop installation.
http://en.wikipedia.org/wiki/Wikipedia:Database_download#Static_HTML_tree_dumps_for_mirroring_or_CD_distribution

See below where and how to make downloads:
http://dumps.wikimedia.org/
http://en.wikipedia.org/wiki/Wikipedia:Database_download#Where_do_I_get...
« Last Edit: January 11, 2015, 05:29:54 pm by valdir.marcos »

 

TinyPortal © 2005-2018