cfinke / Typo.js

A client-side JavaScript spellchecker that uses Hunspell-style dictionaries.
Other
501 stars 110 forks source link

Unable to load affData or wordsData or debug why #73

Closed tubsandcans closed 2 years ago

tubsandcans commented 4 years ago

I've tried so many different combinations of dictionaryPath value and the relative directory containing the .aff and .dic files, and I still cannot get Typo to (apparently) load anything off disk. Furthermore, the library does not indicate that anything bad has happened. Inspecting the dictionary object reveals a perfectly normal looking dictionary object, except that there are no rules and everything typed gets marked as mis-spelled.

I've looked through the source, and it is very straightforward how dictionaryPath gets used and I know I'm referring to the on-disk locations correctly (as far as I can tell). If I put a location I know does not exist, the dictionary object looks no different than a 'correct' dictionaryPath value. Something is definitely up here.

cfinke commented 2 years ago

Hello @tubsandcans, sorry for missing this when it was reported. Do you know if this issue still exists for you, or were you able to solve it?

tubsandcans commented 2 years ago

Hello @tubsandcans, sorry for missing this when it was reported. Do you know if this issue still exists for you, or were you able to solve it?

Sorry, I'm unable to provide a satisfying answer here since I was put on another project and the people who took over the spell checker ended up going with a different library.