What would be the best way to hook into Mac/Windows spell check capabilities for TextEditor? Subclass? Invisible overlay? Has this been considered as a feature at some point?
I don’t think the Juce framework needs a large multi-language database attached to it, or an internet driven API. Might be a good idea though, why not add one yourself?
You could take the ICU approach and have a system package with all the data so it’s not part of the codebase and only needs to be installed when needed.
I would love a juce_ICU module for better localisation support.
I thought Windows and Mac provided an API for spell check, so I was thinking about a wrapper around those. Not fully cross platform, I admit.
One approach would be to use a dedicated spell-checking library rather than trying to build the whole feature into TextEditor yourself. You could handle misspelled-word detection separately and then use TextEditor highlighting or custom drawing to underline errors. This would keep the editor logic cleaner and make it easier to add suggestions or a right-click correction menu later.