Recent

Author Topic: [solved] load hunspell.dll  (Read 10833 times)

dbannon

  • Hero Member
  • *****
  • Posts: 787
    • tomboy-ng, a rewrite of the classic Tomboy
Re: load hunspell.dll
« Reply #30 on: February 20, 2018, 11:55:58 am »
For anyone watching with great excitement (or any excitement at all), I've made a reasonable start on that wiki page about using hunspell from a Lazarus App.

http://wiki.freepascal.org/spelling

If no one objects in the next day I'll find somewhere to link it from ...

Many thanks for the help I've had on this topic. I'll mark it solved.

David
« Last Edit: February 20, 2018, 11:57:34 am by dbannon »
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

Thaddy

  • Hero Member
  • *****
  • Posts: 9284
Re: [solved] load hunspell.dll
« Reply #31 on: February 20, 2018, 12:05:10 pm »
A couple of remarks:
- Hunspell does not rely on Lazarus
- None of the examples in the wiki are compileable without some knowledge about creating a project that can actually compile your code.
- Try to add a simple command-line project or a full, small, Lazarus project to remedy that.

Examples should compile. Yours do, but not for a beginner or intermediate. You have to guess a lot.

Keep up the good work, though.
also related to equus asinus.

dbannon

  • Hero Member
  • *****
  • Posts: 787
    • tomboy-ng, a rewrite of the classic Tomboy
Re: [solved] load hunspell.dll
« Reply #32 on: February 20, 2018, 12:23:52 pm »
Yes Thaddy, I am aware of what you are saying. My original idea was to post a zip file of my test project, I think that would be a useful thing. But the wiki does not allow me to do that and I'm uncomfortable putting something on my private website that others may run, it (my website) is not IMHO sufficiently secure.

Posting pas, lfm and lpi files as text to be screen scrapped is just not on. I considered a command line demo, but my rough draft rapidly became far too long and was quite unrealistic, anyone using this unit will almost certainly be using a GUI ...

So, best of a bad set I'm afraid.

Quote
- Hunspell does not rely on Lazarus

Not sure what you mean by that. Its true but what do you mean in this context ?

But thanks for your comments and encouragement. I very much doubt I'll ever be a good enough coder to contribute much that way, but I can write docs and do think Lazarus needs better docs !

David
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

rvk

  • Hero Member
  • *****
  • Posts: 3842
Re: [solved] load hunspell.dll
« Reply #33 on: February 20, 2018, 12:27:43 pm »
Yes, a complete example (including binary for 32 and 64 bit) with installable package and example would be best.
Something like this: https://github.com/cutec-chris/hunspell

It could be hosted as separate project at https://github.com/tomboy-notes/lazhunspell or something.

As you can see from other wiki pages, there is always a download section. Pointing it to a github repository is easiest. The user can download it, install the .lpk package and try the example. In that you don't need to add complete sources on the wiki-page. Just the parts you want to explain.

Also, if tomboy-ng is for 32 and 64 bit compilation, maybe renaming libhunspell.dll to libhunspell32.dll and libhunspell64.dll would be easier. Inexperienced users don't need to worry because the source will either load the 32.dll or the 64.dll. Otherwise they need to rename and delete one.
« Last Edit: February 20, 2018, 12:30:07 pm by rvk »

dbannon

  • Hero Member
  • *****
  • Posts: 787
    • tomboy-ng, a rewrite of the classic Tomboy
Re: [solved] load hunspell.dll
« Reply #34 on: February 21, 2018, 12:56:59 am »
Hmm, wish I had found Chris's site before I put all that work in.

Its not mentioned anywhere on the Wiki, the forum has a couple of mentions to the cutec-chris but not hunspell project therein. Overall, cutec-chris seems a huge collection of forks, most way out of date ??

On the other hand, Chris's code, or who ever's code it is, has the usual "not one word of documentation". Not even a README.md.  I really value good example code but its not enough !   

<rant>
I get really frustrated to see so much effort put in (in particular into Lazarus) by such skilled people and but they cannot take the time to add a single line that says what a function does. Look at LazUFT8, LazFileUtils for example. I though the blue CRT gun had failed on my screen, then remembered I was using a LED flat screen .....
</rant>

I'll link the wiki spelling page to Chris's site, if people want a shrink wrapped demo, they can take his, if they want to understand the bigger picture, they can read mine !

David
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng