plugin Spell Checker

Plugins for SynWrite and CudaText...
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

>is it possible to store the "enchant" folder with custom dictionaries somewhere in the CudaText folder?

Sorry, Enchant lib don't allow to change this AFAIK.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

>- Is there a setting to turn off all processing on a mouse click so that there is no delay from it?
this is ok wish. plugin is updated:
2022.11.27
* change: instead of install.inf, write event-options (on_open/on_change_slow) to plugins.ini
* change: by default, on_click handler is off, so context menu won't be updated after click on a word; to turn the on_click on - use the "Configure events" command
Last edited by main Alexey on 27.11.2022 11:10, edited 1 time in total.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

>Also, even if you call the `Remove marks` command, it is impossible to select a word that was misspelled by double-clicking
Cannot see this! I can dbl-click to select a word a) after spell check (with underlines), b) after I remove all marks.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

There is a problem (checked on an "empty" distribution), only the first word is added to the dictionary by the "Add" button, nothing happens after that, the dictionary will have only one word (if you delete it, you can add a new "one word" again)
Cannot see it on Ubuntu 20.
dict folder is: ~/.config/enchant (I fixed this in the readme now).
and after I did 'check text with suggestions' and added 2 wrong words, dict file has these 2 words.
then added 3 words more. dict file has 5 words now.
en_US.dic

after app restart, 'check' sees 5 bad words in dict file.

must be Enchant issue in Win version? can you try to update Enchant libs (find on web)?
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

problem with only one word in dict files was solved. thanks @dinkumoil for the patch. plugin updated.
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: plugin spell checker

Post by Stem75 »

The question i have might be for the lexer category but it involves spell checker so
i thought it is better to ask here.

I am trying to make a simple lexer as default for txt files or new untitled-unsaved tabs.
But when i am installing it and selecting (my lexer) i don't have underlined spell check for all the words (especially those that don't belong to a parser - basically all the normal text), although when i right click the word i have the suggestions.
If on the other hand i choose (none) as lexer it underlines ok.
I am not saying that the plugin has a problem but what am i doing wrong.

example wrong words: afteer the time haas past

In SynWrite lexer properties at the commenting tab i am adding:

Styles of comments:
Comments

Styles of strings:
Text,Separator,Parenthesis,Quote ... and all the Parsers i am editing.

Is this setup ok;
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: plugin spell checker

Post by main Alexey »

1- 'Commenting' tab: make sure you add names of _styles_ (style == set of color, back-color, bold), not names of _parsers_ (parser == RegEx rule).
2- attach the lexer LCF file here
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: plugin spell checker

Post by Stem75 »

main Alexey wrote: 22.01.2024 15:22 make sure you add names of _styles_ (style == set of color, back-color, bold), not names of _parsers_
Hmmm! For me as you will see it is almost the same.

Here is the file.
Default.7z
(1.27 KiB) Downloaded 284 times
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: plugin Spell Checker

Post by main Alexey »

I created file Default.cuda-lexmap by hands.

- style "Separ" is spell checked - ok (I see red underlines under word in '============separ===========')
- style 'Text' is NOT spell checked, but lexer MUST have 'parser' for this style. it does not have parser.
- style 'Comments' is NOT checked - will think why
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: plugin Spell Checker

Post by main Alexey »

- style 'Comment' is checked OK if I correct the typo in Default.cuda-lexmap.
Ie style is named 'Comment' and your file .cuda-lexmap has the 'Comments' with -s.

So, system works OK. Just add parser 'Text'!
Post Reply