LadyDefile / Wordsmith-DalamudPlugin

Wordsmith is a Dalamud Plugin aiming to make roleplay easier, more convenient, and harder to accidentally "wrong chat" your post.
7 stars 3 forks source link

Dictionary not working #44

Closed RueD123 closed 10 months ago

RueD123 commented 11 months ago

Updated recently after new patch Dictionary is not working unless you go into settings , reload dictionary, then apply Only one scratch pad in use

smskhyron commented 10 months ago

Since FF14 6.5 the spell check doesn't highlight misspelled words. Using the tips above doesn't fix it for me. I'm a horrible speller, hoping you can fix it. :) Ty

LadyDefile commented 10 months ago

I've been rather busy and haven't had the opportunity to look into the issue but I should be able to check in on it in the next day or two and figure out why it's not functioning properly.

smskhyron commented 10 months ago

Totally understand, and of course no rush. appreciate you looking when you get time.

LadyDefile commented 10 months ago

I can't seem to replicate the issue yet. I'll keep playing with it though. If you check your logs, do you see any errors from Wordsmith?

smskhyron commented 10 months ago

Sorry, I'm not to savvy with all this, i didn't see a log under the wordsmith folder, nor a button for logs when in the plugin itself. I can look at the logs if you dont mind pointing me to where I could look for them. I did just uninstall and reinstall it, reset it to default, and deleted my custom dictionary. I still have the issue where misspelled words dont show like it used to. Thanks!

LadyDefile commented 10 months ago

Sorry, I'm not to savvy with all this, i didn't see a log under the wordsmith folder, nor a button for logs when in the plugin itself. I can look at the logs if you dont mind pointing me to where I could look for them. I did just uninstall and reinstall it, reset it to default, and deleted my custom dictionary. I still have the issue where misspelled words dont show like it used to. Thanks!

Absolutely! So Dalamud has a built-in logging system. Just type /xllogs and the log console should appear.

smskhyron commented 10 months ago

thanks! unfortunately, the logs dont show any errors for wordsmith, just that it loaded. I search for the word "word" and "dictionary" and "spell" and nothing. If there is something else i should search for, please let me know. thanks again!

LadyDefile commented 10 months ago

You should be able to scroll through and look for any lines that are colored red. Any text in red is an error message. Also, just to be sure, you are able to view this link, yes? https://github.com/LadyDefile/WordsmithDictionaries/blob/main/library/lang_en

In the mean time you can also try using local dictionary. To use local dictionary you need to follow the steps below:

Note that if you use a local dictionary file, any future updates may delete this file and require you to follow the above steps again or require you place them in a different folder.

I initially moved to this web-based dictionary because it's over 30MB on its own which doesn't seem like much but in the context of a Dalamud Plugin, it was massive (Most plugins are just 1-3MB). It was actually so big that it caused the Dalamud building system (which validates packages and ensures no malicious code gets through) to actually crash when I attempted to add a second language.

LurasaPomya commented 10 months ago

I have had similar issues and the above directions didn't seem to work, or more it's not detected on the list of dictionaries even after restarting my game. The Dictionaries directory did not even exist till I created it.

I did however notice some things, with the web dictionary still that may help hopefully? If I disable "Auto Spell check" and hit apply it still seems to auto spell check. Though if I do keep this disabled manually triggering the spell check seems to work just fine for me. I also can replicate triggering the spell check anytime I hit apply. I don't have to reload a dictionary. Just apply on settings and it'll spell check. I'm not sure if this helps but don't hesitate to ask me for more. I'm happy to provide what i can.

LurasaPomya commented 10 months ago

I'm not sure how I add stuff I use GitLab more than GitHub and it seems to be a bit different. So I'm sorry if there should be a proper place to add. But it also seems it's only checking the first word.

If I do something like wnats this teh and manually spell check. It only checks wnats. If I ignore it and just hit enter it won't check teh. If I spell check a 2nd time, use the spell check to correct wnats to want it won't trigger on teh. But if I run a spell check a third time, it will then noticed teh.

LadyDefile commented 10 months ago

I'm not sure how I add stuff I use GitLab more than GitHub and it seems to be a bit different. So I'm sorry if there should be a proper place to add. But it also seems it's only checking the first word.

If I do something like wnats this teh and manually spell check. It only checks wnats. If I ignore it and just hit enter it won't check teh. If I spell check a 2nd time, use the spell check to correct wnats to want it won't trigger on teh. But if I run a spell check a third time, it will then noticed teh.

That is very strange behavior. I'll look into this a bit more. Thanks for letting me know.

smskhyron commented 10 months ago

The steps for a local dictionary didn't work for me, but I tried the trick Lurasa mentioned, turning off autospell, and it will then check one misspelled for me too

Didn't see any relevant errors in the logs

I also noticed that if I just go to the "text" menu then "spellcheck" to manually tell it to check, it will then highlight the first misspelled word as well.

And maybe im remembering it wrong, but i thought it would give spelling suggestions sometimes when you right click if it has ideas on what you might be trying to spell? that might just be me remembering wrong though lol

Anyway, hope the above info helps. and thank you

LadyDefile commented 10 months ago

Yes, you should be able to get word suggestions like this: image

If you could send me your Wordsmith config file, maybe I can figure out what the cause is there.

LadyDefile commented 10 months ago

I believe I have identified a build flaw in the Wordsmith system that should fix some big problems. The problem was wrapped in a build flag preprocessor statement which is a fancy way of saying "It only worked right when I was testing it". Update should be out shortly. If you still have issues, please open another ticket.