taggui icon indicating copy to clipboard operation
taggui copied to clipboard

This will add spell checking to TagGUI

Open dai9000 opened this issue 7 months ago • 2 comments

I have updated image_tags_editor.py file to use pyenchant (pip install pyenchant), to give spell checking for the Add Tag line and the text area under it in the TagGUI program: image_tags_editor.py - https://pastebin.com/JdssRWqu

The Add Tag area is a little clunky, as the whole line turns red if you misspell anything in the line, but just right click and it will tell you the word and give you replacement options or add to dictionary.

In the larger edit tags text area area below it, it works like you would expect, by putting a red dashed type underline under any misspelled words when you click in it for editing, and letting you right click for replacements or add to dictionary.

This file is based off the v1.32.2 version of TagGUI widgets directory, but unless you've changed a bunch of stuff in the image_tags_editor.py, this will be a drop in replacement and give spell checking to the current TagGUI too, as the changelog says this file hasn't been change in a year.

Thanks again for a great program!

dai9000 avatar May 22 '25 21:05 dai9000

New updates made to spell checker: Made it so you can add words it thinks are spelled correctly to show up as misspelled. (eg: it said "od", a typo of "of" was correct, and I don't expect to use "od" in any captions, so can now add words that need to show as misspelled when I make typos.)

Also made it so when you click the text area to edit, the font and line spacing is just a tad smaller, so scroll bars won't initially show up when you start editing. This keeps the words closer to the same location to make it easier to zero in on the area your need to edit and keeps you from having to scroll up and down to fit text in area after scroll bars would appear with the regular text size used in view only mode.

Here's the updated file: image_tags_editor.py - https://pastebin.com/gWs0MpZQ

dai9000 avatar May 27 '25 02:05 dai9000

If anyone is interested, I've also added a simple spell check and LanguageTool spellcheck on my taggui_video fork. I'll check later how you did it @dai9000 to see if we can get ideas from one another's implementation!

diodiogod avatar Nov 19 '25 11:11 diodiogod