Re: [fpc-devel] Determin file size - how?y

2011-12-19 Thread Michael Schnell

On 12/16/2011 02:10 PM, Michael Schnell wrote:
I might be inclined to follow in case that there is a script that 
creates an combined CHM file for fpc language, rtl, lazarus IDE, LCL, 
(and ...) from the svn sources.



Regarding the (and...).
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?y

2011-12-19 Thread Michael Schnell

On 12/16/2011 02:10 PM, Michael Schnell wrote:

I might be inclined to follow in case that there is a script that
creates an combined CHM file for fpc language, rtl, lazarus IDE, LCL,
(and ...) from the svn sources.


Regarding the (and...),

The user should ba able to include things things like the synapse docu 
(e.g.: http://synapse.ararat.cz/doc/help/httpsend.html )


This of course suggests not to force creating some huge merged file (be 
it the complete CHM or just an index), but use a viewer with real-time 
merging capacities (such as the Delphi help viewer or fpDOC).


-Michael
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?y

2011-12-19 Thread Michael Schnell

On 12/17/2011 10:58 AM, Marco van de Voort wrote:


Not currently. But the problems wrt that are in the toplevel systems (latex
and fpdoc), not CHM.
In fact it seems to be  the CHM viewer that (AFAIK) (other than the INF 
viewer) does not work on multiple files at the same time.

I myself don't see much benefit in a unified copy. It violates the
FPC-lazarus division. I do sometimes have doubts wrt the fcl-rtl division.
Of course I agree. multiple files are more handy, but  then the viewer 
needed to be able to do multi-file searching.

And searching should work with multiple files too.

You mean CHM-files. In fact the Delphi help viewer seems to do this.

There are also
possibilities to merge the indexes and TOCs of multiple CHM files afaik.
Interesting. So _this_ should be done by a script rather than merging 
the files.

So there is no immediate need to integrate the systems, but with the new
fpdoc project support it might be possible. But I'm not planning on
supporting such things and building them for releases.

Thanks for your past and future work.
-Michael

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Stack alignment on i386

2011-12-19 Thread Den Jean
On Monday 19 December 2011 08:04:30 zeljko wrote:
 How ? 
The binding now aligns the stack before calling the Qt libraries



___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?y

2011-12-19 Thread Graeme Geldenhuys
On 16 December 2011 14:25, Michael Schnell wrote:
 On 12/16/2011 12:42 PM, Marco van de Voort wrote:

 It's fine, but like most built-in engines it is not google.

 Can it do and and or  and search for multi word strings ?

 (In fact I don't know wheter DocView can do these...)

Yes, DocView supports many search term formats...

  my phrase - Will seach for that exact phrase
  my phrase   - will search for any of those two words.
  my +phare   - will search for a topic that contains both works (not
necessarly next to each other)
  my -phrase   - will searchfor a topic that contains 'my', but not 'phrase'

DocView also has a rating system - to indicate how exact / close the
patch was. DocView also searches for variations of words if an exact
phrase was not specified.


Example:
Here is the DocView search result for 'file +handling' using the RTL.INF file.

   http://opensoft.homeip.net:8080/~graemeg/docview_search_result.png

Typing the two works 'file handling'  (without any quotes) in the
Index tab search field, would also have found the file handling
routines help topic.



-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?y

2011-12-19 Thread Graeme Geldenhuys
On 16 December 2011 14:51, Marco van de Voort wrote:

 They are roughly from the same period, and nearly equivalent in any way.

Not even close, but that is a debate best left for another time.


 And because the format isn't dead.

Didn't Microsoft drop CHM format too? ;-)  Anyway, INF is far from
dead - in fact it is making a comeback with fpGUI. :) Also eComStation
still exists, OS/2 installs still exist, and fpGUI based projects all
use INF too. Dead is only if _nobody_ uses it any more - INF is far
from that. I'm already working on a Object Pascal implemented INF
compiler (though a open-source C++ version already exists), and
extensions to the INF format.

[No need for a response from you, I just wanted to correct your false
statement.]



-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?y

2011-12-19 Thread Graeme Geldenhuys
On 16 December 2011 15:10, Michael Schnell wrote:
 I might be inclined to follow in case that there is a script that creates an
 combined CHM file for fpc language, rtl, lazarus IDE, LCL, (and ...) from
 the svn sources.

Which DocView can already do today with the INF files.  ;-)


  $ docview rtl+fcl+lcl+ref



[...but enough of the p**sing contest.]


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?y

2011-12-19 Thread Michael Schnell

On 12/19/2011 10:08 AM, Graeme Geldenhuys wrote:

http://opensoft.homeip.net:8080/~graemeg/docview_search_result.png


Sorry I cant see that due the the companies firewall blocking homeip. :-(

You'd rather attach the picture to the message. :-)

-Michael
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?y

2011-12-19 Thread Michael Schnell

On 12/19/2011 10:20 AM, Graeme Geldenhuys wrote:

Which DocView can already do today with the INF files. ;-)

Which in fact is the point of this (off-topic) discussion right now. :-)

-Michael
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?y

2011-12-19 Thread Michael Schnell

On 12/19/2011 10:08 AM, Graeme Geldenhuys wrote:


Yes, DocView supports many search term formats...

   my phrase - Will seach for that exact phrase
   my phrase   - will search for any of those two words.
   my +phare   - will search for a topic that contains both works (not
necessarly next to each other)
   my -phrase   - will searchfor a topic that contains 'my', but not 'phrase'

Great !
Thanks for you help on help.

(I hope that this explanation is right on the fingertips of anybody who 
installed DocView in Lazarus.

Trying to check this I tied to compile the DocView project but I git:
  /usr/bin/ld: warning: 
/home/mschnell/Downloads/svn/fpGUI/docview/src/units/i386-linux/link.res 
contains output sections; did you forget -T?
  /usr/bin/ld: 
/home/mschnell/Downloads/svn/fpGUI/lib/i386-linux/fpg_x11.o: undefined 
reference to symbol 'FcFontSetDestroy'
  /usr/bin/ld: note: 'FcFontSetDestroy' is defined in DSO 
/usr/lib/libfontconfig.so.1 so try adding it to the linker command line

  /usr/lib/libfontconfig.so.1: could not read symbols: Invalid operation
  docview.lpr(42,1) Error: Error while linking
  docview.lpr(42,1) Fatal: There were 1 errors compiling module, stopping

  obviously silly me forgot something essential (again)
)

I sincerely hope that finally DocView will get fully integrated in the 
Lazarus IDE on the default distribution.




DocView also has a rating system - to indicate how exact / close the
patch was. DocView also searches for variations of words if an exact
phrase was not specified.


Example:
Here is the DocView search result for 'file +handling' using the RTL.INF file.

http://opensoft.homeip.net:8080/~graemeg/docview_search_result.png

Typing the two works 'file handling'  (without any quotes) in the
Index tab search field, would also have found the file handling
routines help topic.

This does sound great.

-Michael

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Graeme Geldenhuys
On 15 December 2011 17:48, Marco van de Voort  wrote:
 Afaik docview does not work within the IDE at all, only via the external
 tools option?

There is no reason it can't work within the Lazarus IDE. I simply find
it easier using the External Tools option of Lazarus IDE, MSEide,
Delphi IDE, etc. Using the External Tools options means no need for
recompiling the IDE just to get context sensitive help, plus it will
work with any IDE or programmer editor.


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Michael Schnell

On 12/19/2011 10:41 AM, Graeme Geldenhuys wrote:

On 15 December 2011 17:48, Marco van de Voort  wrote:

Afaik docview does not work within the IDE at all, only via the external
tools option?

There is no reason it can't work within the Lazarus IDE.
I did not understand what Marco meant by the lazarus internal help 
registration. Docview does do context sensitive help in the Editor, but 
maybe there is even more that is supported for integrated rather than 
external tools.

  no need for recompiling the IDE
In fact I don't see a problem with this. You need to recompile the 
Lazarus IDE when adding/updating GUI components, so this is nicely 
supported.


-Michael
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Graeme Geldenhuys
On 16 December 2011 13:33, Marco van de Voort  wrote:
 Graeme started working on it when CHM was already mostly
 operational.

mostly operational doesn't entrust a lot of confidence.


  Most of his original arguments were based on disk sizes and
 little implementation gotchas, not on functionality. I still don't see the
 point of inf.

For the record, disk size (even though the size difference is huge)
was largely a bonus feature. The speed of INF was a major contributor
(considering CHM is just an archive of very verbose HTML files). Also
the fact that any non-Microsoft CHM viewer absolutely sucks, and that
all but one [lhelp] of those are written in C/C++ [thus I can't
contribute] was another point to consider. LHelp's output also looks
terrible and is much slower than most CHM viewers.

I work 99% of the time under Linux, and the Linux CHM viewers all
suck. Slow, limited features, prone to crash etc. Creating DocView
gave me full control: the programming language I know and love,
something I can maintain, advanced searching [which is super fast],
runtime concatenation of INF files [extremely handy], auto Index
generation [configurable in the Option dialog], bookmark support, and
very importantly, inline help annotation support [something I use very
often].


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?y

2011-12-19 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said:
 
  And because the format isn't dead.
 
 Didn't Microsoft drop CHM format too? ;-) 

Only for own use. Afaik it is still recommended for 3rd party usage in 
Windows 8.

 Anyway, INF is far from
 dead - in fact it is making a comeback with fpGUI. :) Also eComStation
 still exists, OS/2 installs still exist, and fpGUI based projects all
 use INF too

Yes, and I still have access to a PDP too, so that is a real lively
community too :-)

 Dead is only if _nobody_ uses it any more - INF is far
 from that. I'm already working on a Object Pascal implemented INF
 compiler (though a open-source C++ version already exists), and
 extensions to the INF format.
 [No need for a response from you, I just wanted to correct your false
 statement.]

You wanted to express your own view on dead, which I don't share. 
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said:
  Graeme started working on it when CHM was already mostly
  operational.
 
 mostly operational doesn't entrust a lot of confidence.

Compared to somebody saying he is resurrecting some old OS/2 technology, it
is a miracle of confidence.
 
  ?Most of his original arguments were based on disk sizes and
  little implementation gotchas, not on functionality. I still don't see the
  point of inf.
 
 For the record, disk size (even though the size difference is huge)
 was largely a bonus feature. 

No, at the time, you kept raving about it. Only when you started
implementing more features, your tune changed.

 The speed of INF was a major contributor
 (considering CHM is just an archive of very verbose HTML files).

And INF is just an archive or whatever markup it uses.

 Also the fact that any non-Microsoft CHM viewer absolutely sucks, and that
 all but one [lhelp] of those are written in C/C++ [thus I can't
 contribute] was another point to consider.  LHelp's output also looks
 terrible and is much slower than most CHM viewers.

Yes, but that was because other people decided to roll their own. And I
tried docview on windows and IMHO it was unusable. 
 
 gave me full control: the programming language I know and love,
 something I can maintain, advanced searching [which is super fast],

All that was available for CHM too, PLUS the generation facilities.

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Graeme Geldenhuys
On 19 December 2011 12:03, Michael Schnell  wrote:
 There is no reason it can't work within the Lazarus IDE.

 I did not understand what Marco meant by the lazarus internal help
 registration. Docview does do context sensitive help in the Editor, but


He meant for help inside the IDE dialogs. For example: pressing F1 (or
clicking the Help button) inside the Environment Options dialog.
Again, there is no technical reason why DocViewer can't be registered
inside Lazarus IDE - I just don't see the point, so didn't bother
creating such a add-on package. Why do I say this? Because currently
that is just a stupid point to raise, because Lazarus IDE help is ONLY
available online in the wiki site. So neither LHelp (or any other CHM
viewer) or DocView (INF viewer) is much use there - until Lazarus IDE
actually uses a help format better suited than the wiki site.


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said:
  There is no reason it can't work within the Lazarus IDE.
 
  I did not understand what Marco meant by the lazarus internal help
  registration. Docview does do context sensitive help in the Editor, but
 
 He meant for help inside the IDE dialogs.

No I didn't. There is a helpsystem (for all help) abstraction inside
Lazarus. docview bypasses that. This means that having docview and
some other helpfile type can't be searched together, while in the case of
CHM it can.

I'm not sure that is a good thing though.

 that is just a stupid point to raise, because Lazarus IDE help is ONLY
 available online in the wiki site. So neither LHelp (or any other CHM
 viewer) or DocView (INF viewer) is much use there - until Lazarus IDE
 actually uses a help format better suited than the wiki site.

The wiki help used to be downloadable using a tool, but that failed after a
wiki engine update (or some other anti-bot/spam measure in the
engine/webserver)

Otherwise I would have already transformed the help into CHM.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Graeme Geldenhuys
On 19 December 2011 12:12, Marco van de Voort  wrote:
 For the record, disk size (even though the size difference is huge)
 was largely a bonus feature.

 No, at the time, you kept raving about it.

At the time I (like many others) had a very limited monthly Internet
data bundle size (150MB to be exact) - so the size of downloads was a
very important point too. Now I have access to an uncapped Internet
account - so the size is not so much a issue for me any more, though
it could still be for others.


 And I tried docview on windows and IMHO it was unusable.

Maybe you just used a very old version of DocView. Either way, I would
love to hear more about those unusable problems you experienced. If
you don't mind, would you please email them to me in private - I would
like to improve the DocView experience in any way I can.


 All that was available for CHM too, PLUS the generation facilities.

At the time I implemented DocView and INF support, the CHM code in FPC
had no Index support, dog slow TOC support and many other issues. But
I believe most of those issues have been addressed over the last 2 or
so years. Either way the crap Linux CHM viewers problem still
persists.


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Henry Vermaak

On 19/12/11 10:12, Marco van de Voort wrote:

gave me full control: the programming language I know and love,
something I can maintain, advanced searching [which is super fast],


All that was available for CHM too, PLUS the generation facilities.


There seems to be some great tools for chm in the debian repo.  One of 
the apps (archmage) can even serve chm contents on an http server 
(standalone or apache).


Henry
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Graeme Geldenhuys
On 19 December 2011 12:16, Marco van de Voort  wrote:
 The wiki help used to be downloadable using a tool, but that failed after a
 wiki engine update (or some other anti-bot/spam measure in the
 engine/webserver)

 Otherwise I would have already transformed the help into CHM.

I have used a HTML-to-INF converter in the past too. Creating a
offline archive file is not so much the problem. One major problem
still remains though... a wiki site is a spaghetti mess of topics and
information. No structure at all, thus causing huge amounts of
outdated or duplicated information. Not to mention the fact that the
wiki site we are talking about, contains information from two separate
projects: FPC and Lazarus.

Anyway, this is a topic that should rather be discussed [yet again] in
the Lazarus mailing list, not here.


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said:

  And I tried docview on windows and IMHO it was unusable.
 
 Maybe you just used a very old version of DocView. Either way, I would
 love to hear more about those unusable problems you experienced. If
 you don't mind, would you please email them to me in private - I would
 like to improve the DocView experience in any way I can.

Sorry, no time, no interest, got a working helpsystem :-)

  All that was available for CHM too, PLUS the generation facilities.
 
 At the time I implemented DocView and INF support, the CHM code in FPC
 had no Index support, dog slow TOC support and many other issues.

They were not all problems in the CHM package, rather than the systems that
read them. Yes, binary index and TOC improved speed, but it was more
something from bringing down from 0.9s to 0.3s 

 But I believe most of those issues have been addressed over the last 2 or
 so years.  Either way the crap Linux CHM viewers problem still persists.

That can't be a reason to start INF because when you started with INF, there
were not even crap linux viewers for it.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Graeme Geldenhuys
On 19 December 2011 12:32, Henry Vermaak  wrote:

 There seems to be some great tools for chm in the debian repo.  One of the
 apps (archmage) can even serve chm contents on an http server (standalone or
 apache).

IBM and other third party members did that with the INF format too.
IBM still has some of those sites available online.


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Michael Schnell

On 12/19/2011 11:32 AM, Henry Vermaak wrote:


There seems to be some great tools for chm in the debian repo.  One of 
the apps (archmage) can even serve chm contents on an http server 
(standalone or apache).


That does look like a nice candidate for creating an external tool for 
Lazarus from (though pascal based tools seem more appropriate).


-Michael
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Marco van de Voort
In our previous episode, Henry Vermaak said:
  something I can maintain, advanced searching [which is super fast],
 
  All that was available for CHM too, PLUS the generation facilities.
 
 There seems to be some great tools for chm in the debian repo.  One of 
 the apps (archmage) can even serve chm contents on an http server 
 (standalone or apache).

I don't like using full browsers for help. They are relatively slow and
don't provide as convenient access to the parts that make a helpsystems
a helpsystem (index, TOC, search).

Still, I'm apparently the only one, since most new helpsystems are client
server based on hidden webservers afaik.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Henry Vermaak

On 19/12/11 10:40, Marco van de Voort wrote:

In our previous episode, Henry Vermaak said:

something I can maintain, advanced searching [which is super fast],


All that was available for CHM too, PLUS the generation facilities.


There seems to be some great tools for chm in the debian repo.  One of
the apps (archmage) can even serve chm contents on an http server
(standalone or apache).


I don't like using full browsers for help. They are relatively slow and
don't provide as convenient access to the parts that make a helpsystems
a helpsystem (index, TOC, search).


Yes, it's definitely not ideal.  I do like having tabs of multiple help 
topics open at the same time, though.


Henry
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Graeme Geldenhuys
On 19 December 2011 12:38, Marco van de Voort  wrote:

 Sorry, no time, no interest, got a working helpsystem :-)

That's what I thought... Just spreading FUD.


 That can't be a reason to start INF because when you started with INF, there
 were not even crap linux viewers for it.

You are wrong. chmsee, chmview, gnochm, xchm, kchmviewer etc all
existing long before I started working on DocView. Do a Google search
to find the history of each of those projects - that's if you have the
time and interest. ;-)


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said:
  That can't be a reason to start INF because when you started with INF, there
  were not even crap linux viewers for it.
 
 You are wrong. chmsee, chmview, gnochm, xchm, kchmviewer etc all
 existing long before I started working on DocView. Do a Google search
 to find the history of each of those projects - that's if you have the
 time and interest. ;-)

Crap viewers for INF I meant.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Michael Schnell

On 12/19/2011 11:32 AM, Henry Vermaak wrote:


There seems to be some great tools for chm in the debian repo. 


Do you know if they provide support for loading multiple CHM  files 
simultaneously for providing combined search capabilities and can do 
appropriate search (and / multi word phrases  / maybe or / ...)


-Michael

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Marco van de Voort
In our previous episode, Henry Vermaak said:
 
  I don't like using full browsers for help. They are relatively slow and
  don't provide as convenient access to the parts that make a helpsystems
  a helpsystem (index, TOC, search).
 
 Yes, it's definitely not ideal.  I do like having tabs of multiple help 
 topics open at the same time, though.

The Windows CHM system supports something like that, but it is not under
full control of the user. It is more that the CHM can open multiple windows
for e.g. special indexes. 

If I had infinite time I'd investigate that a bit deeper for overviews of
string routines, filehandling etc. (one of the things the current help is
lacking most IMHO. Fpdoc should probably get some tagging system)

From past discussions with Graeme, I remember that he also responded that
INF has some windowing functionality.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Michael Schnell

On 12/19/2011 11:51 AM, Marco van de Voort wrote:
The Windows CHM system supports something like that, but it is not 
under full control of the user. It is more that the CHM can open 
multiple windows for e.g. special indexes.


Of course, for a work in progress (such as the FPC/Lazarus help) it 
would be nice to provide the user with the choice to either use local 
help files or to dynamically pull them from the software provider's 
website (I don't know if docView supports this).


-Michael
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] MakeSkel and FPDoc projects

2011-12-19 Thread Sven Barth
Am 19.12.2011 04:05 schrieb Hans-Peter Diettrich drdiettri...@aol.com:

 Mattias Gaertner schrieb:


 I understand that conflicts can arise, when the same XML file is
modified by different means. But it is not nice when the IDE then crashes.


 Can you create a stacktrace?


 How?

 The IDE only disappears, silently, including the console window :-(

Then you need to start Lazarus with appropriate arguments from a cmd (or
PowerShell) window.

Regards,
Sven
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?y

2011-12-19 Thread Graeme Geldenhuys
On 19 December 2011 11:36, Michael Schnell wrote:


 Sorry I cant see that due the the companies firewall blocking homeip. :-(

A few have reported this before. Just four more months and I'll have
my own new domain, and not a DynDNS one. :)


 You'd rather attach the picture to the message. :-)

I'm not sure about the size limit of attachments - hopefully 16KB is
not too big for this mailing list.



-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
attachment: docview_search_result.png___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Stack alignment on i386

2011-12-19 Thread Henry Vermaak

On 18/12/11 12:37, Den Jean wrote:

Hi,

to interface with c libraries containing SSE code,
the stack must be aligned to 16 bytes.

Currently the default -mpreferred-stack-boundary=num of gcc provides for this.

However current fpc 2.4.4 does not align the stack as such.
I do not know if this correct or not when reading things like:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40838#c8
http://groups.google.com/group/ia32-abi/browse_thread/thread/4f9b3e5069943bf1



Ow, we hit this problem.  We are calling a library that uses opencv 
(where SSE instructions are used).  Luckily we can add -mstackrealign to 
the CFLAGS of our library.  People without an interface lib will be in 
trouble, though.


Henry
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?y

2011-12-19 Thread Graeme Geldenhuys
On 19 December 2011 11:41, Michael Schnell wrote:
 Thanks for you help on help.

It's all mentioned in the docview.inf help file that is included with
the binary download of DocView. :)


 Trying to check this I tied to compile the DocView project but I git:
  /usr/bin/ld: warning:
 /home/mschnell/Downloads/svn/fpGUI/docview/src/units/i386-linux/link.res
 contains output sections; did you forget -T?
  /usr/bin/ld: /home/mschnell/Downloads/svn/fpGUI/lib/i386-linux/fpg_x11.o:
 undefined reference to symbol 'FcFontSetDestroy'
  /usr/bin/ld: note: 'FcFontSetDestroy' is defined in DSO
 /usr/lib/libfontconfig.so.1 so try adding it to the linker command line
  /usr/lib/libfontconfig.so.1: could not read symbols: Invalid operation

I have no idea why you keep struggling to compile projects, but from
the above message, it seems you are missing the 'libfontconfig1-dev'
package. If not, move your response the the fpc-pascal mailing list,
or the fpgui.support newsgroup please. I'll try and help you further
there.


 I sincerely hope that finally DocView will get fully integrated in the
 Lazarus IDE on the default distribution.

I doubt it, DocView is not written with the LCL framework. But anybody
is welcome to port the UI of docview to the LCL framework.



-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Graeme Geldenhuys
On 19 December 2011 12:40, Marco van de Voort  wrote:
 I don't like using full browsers for help. They are relatively slow and
 don't provide as convenient access to the parts that make a helpsystems
 a helpsystem (index, TOC, search).


+1


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Graeme Geldenhuys
On 19 December 2011 12:48, Marco van de Voort  wrote:
 You are wrong. chmsee, chmview, gnochm, xchm, kchmviewer etc all
 existing long before I started working on DocView. Do a Google search
 to find the history of each of those projects - that's if you have the
 time and interest. ;-)

 Crap viewers for INF I meant.


In that case, you're still wrong. IBM's iview.exe, which is a Windows
INF viewer that can run happily under Linux WINE, is very crap too.
;-)  I checked the file date of iview.exe, which is 2001-08-13 (though
the copyright notice says 1994) - so it was also available way before
I started DocView. No Linux INF viewers existed before DocView [that I
know of].


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Graeme Geldenhuys
On 19 December 2011 12:51, Marco van de Voort  wrote:
 The Windows CHM system supports something like that, but it is not under
 full control of the user. It is more that the CHM can open multiple windows
 for e.g. special indexes.

Just curious.

I remember years ago I had an application that used HLP help (Win95
days). The application had a tutor mode - teaching the end-user how
to use certain features of the application. The HLP help viewer
displayed a popup window with instructions. As soon as the user
completed one instruction in the application, the tutor window
automatically updated to the next instruction. It is as if the
application and help viewer communicated with each other.  I've seen
this done in OS/2 as well.

Do you know if CHM supports this?


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Michael Schnell

On 12/19/2011 12:04 PM, Marco van de Voort wrote:

I think such webservers are mainly for local use, not remote.


OK, Then an update button (downloading the changed helpfile(s)  (or 
their diffs) would be helpful.


-Michael

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said:
  for e.g. special indexes.
 
 Just curious.
 
 I remember years ago I had an application that used HLP help (Win95
 days). The application had a tutor mode - teaching the end-user how
 to use certain features of the application. The HLP help viewer
 displayed a popup window with instructions. As soon as the user
 completed one instruction in the application, the tutor window
 automatically updated to the next instruction. It is as if the
 application and help viewer communicated with each other.  I've seen
 this done in OS/2 as well.
 
 Do you know if CHM supports this?

The Windows CHM help is instrumentable. But it is also said to be mostly a
first time effort, with MS already directing resources to htmlhelp2 (and
later 3), so many parts don't work reliably or are not implemented, and
doing it is horribly underdocumented.

The trouble is that the successors (which I didn't like, too many loose
files) never was distributed for general use (only for Windows, VS and
Office internal help)

I never tried to instrument CHM beyond simple lookup, but from what I know
from reading CHM webpages with some effort you can do quite some
instrumentation.  Usually by using different aspects of CHM access:

there are three ways to access the htmlhelp(=chm) system:

- via the API (see winunits-base example dir for examples)
- via the hh.exe commandline utility
- via an OCX, originally meant for in browser use.

and then using mostly API, but hh for stuff that doesn't function properly.

But most of the info I have on this is from win98 period. 

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?

2011-12-19 Thread Marco van de Voort
In our previous episode, Michael Schnell said:
  I think such webservers are mainly for local use, not remote.
 
 OK, Then an update button (downloading the changed helpfile(s)  (or 
 their diffs) would be helpful.

Currently CHMs are typically generated  only twice an year, and the URL is 
always the same.

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?y

2011-12-19 Thread Graeme Geldenhuys
On 19 December 2011 16:18, Michael Schnell  wrote:

 Because I thought that during a discussion, I should use the latest version
 of DocView. So I tried to recompile the project (which of course deleted the
 executable file)

...[snip]...

 Yep. But I can't seem to easily install it. The RPM requires devel(libdl)
 which I also don't have.

Yeah, it seems you development platform isn't setup correctly. I use
Ubuntu on all my systems, which are DEB based, so I can't comment on
RPM packages sorry.

In a pinch, you can however download the latest binary of DocView from
the fpGUI SourceForge project files. I supply binaries for Linux and
Windows (the 'docview-xxx' files). This was released 2 weeks ago.

   http://sourceforge.net/projects/fpgui/files/fpGUI/0.8/



 I seem to remember that I did compile docview some time ago, but I may be
 wrong. In fact it does not come with an svn update.

1) I don't use a SubVersion repository for fpGUI.
2) I don't include binaries in the source code repository. The only
exceptions are the
wipfc (INF compiler) binaries which I got from the OpenWatcom project.


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Determin file size - how?y

2011-12-19 Thread Michael Schnell

On 12/19/2011 03:53 PM, Graeme Geldenhuys wrote:

http://sourceforge.net/projects/fpgui/files/fpGUI/0.8/


This of course did work.

Thanks !
-Michael
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-19 Thread Mattias Gaertner
On Sun, 18 Dec 2011 13:45:07 +0100
Jonas Maebe jonas.ma...@elis.ugent.be wrote:


 On 18 Dec 2011, at 13:22, Sven Barth wrote:
[...]
  Yes, that was indeed a bit complicated, but this way I might be able to use 
  the JVM compiler in Lazarus easily for the creation of Android application 
  (though Lazarus first needs to learn about the unicodestrings modeswitch,

What's that?

[...]

Mattias
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-19 Thread Paul Ishenin

20.12.2011 7:00, Mattias Gaertner пишет:

On Sun, 18 Dec 2011 13:45:07 +0100
Jonas Maebejonas.ma...@elis.ugent.be  wrote:



On 18 Dec 2011, at 13:22, Sven Barth wrote:
[...]

Yes, that was indeed a bit complicated, but this way I might be able to use the JVM 
compiler in Lazarus easily for the creation of Android application (though Lazarus first 
needs to learn about the unicodestrings modeswitch,


What's that?


A modeswitch introduced in the JVM branch to turn the string type to 
unicodestring (similar to {$H+} turns string to ansistring).


Best regards,
Paul Ishenin


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-19 Thread Paul Ishenin

18.12.2011 20:45, Jonas Maebe wrote:


And final fields.


Final methods can't be overriden in the descendants. But what are final 
fields for?


Best regards,
Paul Ishenin

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-19 Thread Felipe Monteiro de Carvalho
On Tue, Dec 20, 2011 at 1:00 AM, Paul Ishenin i...@kmiac.ru wrote:
 Final methods can't be overriden in the descendants. But what are final
 fields for?

I think they are the way to write a constant in Java. Because they
have no procedural elements, they need to work around with class
elements to do everything.

-- 
Felipe Monteiro de Carvalho
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-19 Thread Paul Ishenin

20.12.2011 10:47, Felipe Monteiro de Carvalho пишет:

On Tue, Dec 20, 2011 at 1:00 AM, Paul Ishenini...@kmiac.ru  wrote:

Final methods can't be overriden in the descendants. But what are final
fields for?


I think they are the way to write a constant in Java. Because they
have no procedural elements, they need to work around with class
elements to do everything.


FPC classes support internal constants so I don't believe Jonas would 
add another syntax element for already existent feature.


Best regards,
Paul Ishenin

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel