Page 2 of 2
Re: SpellCheck lib/include (32bit and 64bit) - hunspell wrap
Posted: Thu May 05, 2016 9:37 pm
by Fangbeast
Yes, it works. (has the British and US spelling libraries included)... but absolutely no Aussie slang.
Maaaaaate!! Fair suck of the sav!! I'll take a beak at it, wotcha!
Just realised that it's a userlib and that may break between pb versions so I am too scared to try it! PrincieD hasn't been around in ages in case something goes wrong and I wouldn't be able to fix it.
Re: SpellCheck lib/include (32bit and 64bit) - hunspell wrap
Posted: Fri May 06, 2016 1:07 pm
by blueb
Fangbeast wrote:
Just realised that it's a userlib and that may break between pb versions so I am too scared to try it! PrincieD hasn't been around in ages in case something goes wrong and I wouldn't be able to fix it.
Not quite correct....
You're not forced to use the UserLib version. If you want to use the source code version, modify the example like this...
Code: Select all
XIncludeFile "Source\SpellCheck.pbi"
Now the example will use the include file.
blueb
Re: SpellCheck lib/include (32bit and 64bit) - hunspell wrap
Posted: Fri May 06, 2016 11:13 pm
by Fangbeast
Not quite correct....
That's normal for me!!
Code: Select all
XIncludeFile "Source\SpellCheck.pbi"
That's what I get for not having a quick look, too busy being tired:):)
Will be able to play tonight when the family is asleep.
By the way, I did see an Australian dictionary somewhere, just can't remember where that was on my travels.
Re: SpellCheck lib/include (32bit and 64bit) - hunspell wrap
Posted: Tue Jul 18, 2017 6:24 pm
by Little John
This is exactly what I need.
Thank you so much, Chris!
Re: SpellCheck lib/include (32bit and 64bit) - hunspell wrap
Posted: Mon Nov 02, 2020 3:56 pm
by XCoder
Thanks, PrincieD.
I have posted a spelling checker that uses your library at
viewtopic.php?f=12&t=76205. This underlines mispelt words with a red wavy line.
Re: SpellCheck lib/include (32bit and 64bit) - hunspell wrapper
Posted: Tue Apr 05, 2022 4:38 am
by DeanH
XCoder, I have downloaded and tried the basic SpellChecker. It works well in 32-bit PureBasic 5.73 and 6.00 (beta 6) but crashes for me in 64-bit. I'm running Windows 10.
An "Assembler error" messagebox appears with:
purebasic.asm [783];
mov, dx, [p.p_theString]
processed: mov rdx, [p.p_theString]
error: undefined symbol 'p.p_theString'.
My knowledge of assembly is woeful. Would you be able to look into it?
Thanks.
Re: SpellCheck lib/include (32bit and 64bit) - hunspell wrapper
Posted: Tue Apr 05, 2022 5:40 am
by Paul
DeanH wrote: Tue Apr 05, 2022 4:38 am
It works well in 32-bit PureBasic 5.73 and 6.00 (beta 6) but crashes for me in 64-bit. I'm running Windows 10.
Modify the IsAlpha() procedure and change the line containing...
to this...
Re: SpellCheck lib/include (32bit and 64bit) - hunspell wrapper
Posted: Tue Apr 05, 2022 10:21 am
by XCoder
Thanks for pointing out the bug. I have updated the code for the spelling checker and put the link to the updated code in my original post at
https://www.purebasic.fr/english/viewto ... 92#p582792
Re: SpellCheck lib/include (32bit and 64bit) - hunspell wrapper
Posted: Wed Apr 06, 2022 1:18 am
by DeanH
Thanks. That fixed it.