TSE: Spellcheck: Optionally download the necessary hunspell DLLs

11 views
Skip to first unread message

knud van eeden

unread,
Oct 9, 2025, 8:43:10 AMOct 9
to SemWare TSE Pro Text Editor
Hello,

FYI:

1. You could download the DLLs necessary for hunspell here


(note: it might be necessary to check the download and give permission if applicable)

2. Unzip in any directory

3. Then compile spellchkh.s in that directory

4. Then run spellchkh.mac and follow the steps as usual for the TSE spellcheck.

with friendly greetings
Knud van Eeden


Claus Futtrup

unread,
Oct 11, 2025, 1:33:19 PMOct 11
to sem...@googlegroups.com
Hi Knud

Thank you for picking up the idea to integrate hunspell with TSE.
I don't use spell checkers myself in any of my text editors, but hunspell should have several advantages over the built-in spell checker, like:

Includes morphological analyzer (breaks down the words into morphemes), so that complex word compounds can be spell checked.
Multi-language support (maybe some Dutch people here?)
Multi format support (e.g. Unicode UTF-8).

Your implementation uses an existing DLL, but please note that hunspell is open source and could easily be compiled for Linux.

With kind regards,
Claus
--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/semware/152597579.1167242.1760013783590%40mail.yahoo.com.


knud van eeden

unread,
Oct 11, 2025, 3:12:42 PMOct 11
to sem...@googlegroups.com

Hi Knud

Note that the current spellchkh.s kind of works, but it gives bad SuggestWord()
options.

On the other hand SpellCheckWord works OK, thus if it passes the spellcheck
without further errors then it looks pretty good about the spelling in general 
e.g. in that block.


The issue is in the spelltsehun.dll which is compiled in Borland C++ version
5.5.1 which gives at the moment some not very compatible with 'SuggestWord()'
results.

But it can thus spell check different natural languages which is already kind
of interesting.

===

> Thank you for picking up the idea to integrate hunspell with TSE.

Yes, the mentioning was rather crucial, that triggered the attention.

---

> I don't use spell checkers myself in any of my text editors, but hunspell should have several advantages over the built-in spell checker, like:
> Includes morphological analyzer (breaks down the words into morphemes), so that complex word compounds can be spell checked.

That definitely is not activated.
It uses only exactly the same (simple) DLL functions as in spellchk.s

constant PATHLEN = 255
// dll "spell.dll"
dll "spelltsehun.dll"
    integer proc OpenSpell(string fn) : "_OpenSpell"
    integer proc CloseSpell() : "_CloseSpell"
    integer proc SpellCheckWord(string st) : "_SpellCheckWord"
    integer proc SuggestWord(string st) : "_SuggestWord"
            proc GetSuggestion(var string st, integer n) : "_GetSuggestion"
            proc RemoveQuotes(var string st) : "_RemoveQuotes"
end

---
> Multi-language support 
That has already been implemented here, see screenshot.

---
> Multi format support (e.g. Unicode UTF-8).

TSE can not handle UTF-8, only ASCII.
And it must all be 32 bits, not 64 bits.

---

> Your implementation uses an existing DLL, but please note that hunspell is open source 

I do not think so.

It was very difficult to find a correct hunspell DLL, and took me 2 days of searching and trying.

Or the found did not work (could no be loaded in TSE), or was 64 bits.

Many different versions, all or compiled with MingW or compiled with Microsoft Visual Studio.

And worst of all it was in very many versions DEPENDENT on other e.g. MingW or Visual Studio
DLLs which then also should be present. But then does DLLs did not work and could not be loaded.

This hunspell.dll which I added was thus AND independent of other DLLs and also
worked. Basiclly the only one found until now.

---

> and could easily be compiled for Linux.

Compiling for Linux is out of the question in the current approach, as Linux does not know DLLs.
And this spellchkh.s is based on the spellchk.s DLL version which only works in Microsoft Windows.

So one has to build from scratch again something for TSE for Linux is the current assumption.

===





Inline image

with friendly greetings
Knud van Eeden

knud van eeden

unread,
Oct 11, 2025, 3:21:06 PMOct 11
to sem...@googlegroups.com
Additionally does TSE by design not handel the Linux equivalent
fro a DLL, thus .so files.

That would be an option but thus not possible.

Reply all
Reply to author
Forward
0 new messages