>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.
plugin Spell Checker
-
- Posts: 2245
- Joined: 25.08.2021 18:15
this is ok wish. plugin is updated:>- Is there a setting to turn off all processing on a mouse click so that there is no delay from it?
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.
-
- Posts: 2245
- Joined: 25.08.2021 18:15
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Cannot see it on Ubuntu 20.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)
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)?
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: plugin spell checker
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;
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;
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: plugin spell checker
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
2- attach the lexer LCF file here
Re: plugin spell checker
Hmmm! For me as you will see it is almost the same.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_
Here is the file.
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: plugin Spell Checker
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
- 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
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: plugin Spell Checker
- 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'!
Ie style is named 'Comment' and your file .cuda-lexmap has the 'Comments' with -s.
So, system works OK. Just add parser 'Text'!