-
Notifications
You must be signed in to change notification settings - Fork 106
SpellChecker.isMisspelled always return false on Windows 10 #72
Comments
Seeing this on linux as well. |
Another example is I have changed to a package called |
I got it working on linux. Thanks, |
I have the same issue when using it on Windows 7. Adding the |
Any progress on this? :( |
I know it is late, but I forced it to work. |
Hey Guys, I was having the same issues in Linux. I fixed it by adding this:
Where Basically it sets the dictionary, then uses a function to get the path of the hunspell dictionary. On Mac it was working without this line of code, for some reason the code didn't work on Linux until I manually set the language & dictionary. |
On Windows 10 and Mac, this library uses the system libraries to do spell checking. That means you have to look at the system to figure out what the spell-checking isn't working. Linux doesn't provide that nor does it have standard locations for dictionary files. That means we can't make any assumptions or automatically enable it on Linux without a locale+directory or a specific dictionary file to work with. The |
Aha - that makes sense now. Quick question: do you know why results on Mac and Linux might be different, if the dictionary files are the same? I checked the .aff and .dic files with MD5 hash and they're identical, but on Linux the suggested words are often different than on Mac. |
Unless you set an environment variable, the Mac completely ignores the dictionary file and uses the operating system one instead. Doesn't even try to open it. |
Ohhhhh that's why. I was banging my head against a wall for a couple hours yesterday trying to figure this out. I'll send an environment variable. Thanks! |
You can use https://github.com/Wulf/nodehun in the meanwhile. |
For example,
mathched
is misspelled formatched
.SpellChecker.isMisspelled
works well on Mac OS X but it always return false on Windows 10.The text was updated successfully, but these errors were encountered: