Open jeremyspiegel opened 5 years ago
👋 Hey! This module is a bit in a wild state - it was born out of multiple teams collaborating on spellchecking in Electron apps, but we've all taken slightly different paths without a strong interest to combine them again. @nornagon and I are colleages and trade back and forth with fixing this damn thing. My source is here, which to be fair, is virtually impossible to find.
That being said, thanks a ton for taking a look - I'll spend some more time on this today and tomorrow, hopefully hunting down the mistake!
👋Hi! Thanks for taking a look! Sorry I missed that branch in your fork before.
This package (
electron-spellchecker
) depends on @felixrieseberg/spellchecker. That npm package points to https://github.com/atom/node-spellchecker as its git repo, but it seems that@felixrieseberg/spellchecker
is diverged from that code (@felixrieseberg/spellchecker
is at version 4.0.8 butatom/node-spellchecker
is at 3.5.3). I can't find a public place for the source for@felixrieseberg/spellchecker
.In the switch from using
@nornagon/spellchecker
to@felixrieseberg/spellchecker
forelectron-spellchecker
, the functionality ofcheckSpelling
seems to have been broken. Inmain.cc
inside@felixrieseberg/spellchecker
, I found the following commented out code inSpellchecker::CheckSpelling
:This makes it so that we're not actually passing the input down into the hunspell library. The
string->Write(reinterpret_cast<uint16_t *>(text.data()));
wasn't commented out in the 4.0.7 version in@nornagon/spellchecker
.@felixrieseberg, why was this code commented out, and where is the source maintained? Thanks!