Commit graph

22 commits

Author SHA1 Message Date
TheJackiMonster 41e59d71c1
Fix newline changes to read universally
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-12 16:18:43 +01:00
TheJackiMonster 82fe3262af
Prevent initial crash by changes in spellchecking
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-07 19:36:37 +01:00
Tobias Frisch 3d4eef2b49
Merge pull request #1214 from TheShadowblast123/develop
Update spellchecker.py And Fixed crashing
2023-12-07 16:06:03 +01:00
Tobias Frisch 892f8f0592
Merge pull request #1226 from drmousse/develop
Crash on spellcheck context menu #1224
2023-12-07 15:35:59 +01:00
mousse 56dac84932 issue 1224: contextmenu on unknown word in context of pyspellchecker and symspellpy 2023-09-20 16:24:55 +02:00
Shadow fbab930c44 Update spellchecker.py
Corrected issue where words within certain quotations would show up as incorrectly spelled (ex: 'I'm fine') would indicate both words are misspelled
2023-09-12 18:57:03 -07:00
Christian Freitag e267699667 - Adjusted open calls to use \n as newline for all platforms instead of guessing it 2023-08-07 13:09:55 +02:00
TheJackiMonster 7e05b72d83
Hotfix of unhandled exception by language_tool_python (#870)
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2021-04-30 20:46:30 +02:00
TheJackiMonster fc08e9b740
Fix changing language in LanguageTool spellchecker
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2021-04-16 19:44:24 +02:00
Belug 9bb64d2471 Fix errors when language tool isn't installed 2021-04-11 11:07:20 -04:00
TheJackiMonster b090c11a9c
Fixed multiple processes for LanguageTool by using one instance only
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2021-04-11 16:02:41 +02:00
Alexandre 4107c48ea9
Fix 860 languagetool get locale language (#861)
* Fix #860 missing get_locale_language on languagetool

* Update spellchecker.py

Co-authored-by: Tobias Frisch <thejackimonster@gmail.com>
2021-04-11 14:31:06 +02:00
TheJackiMonster 83fae3f286
Fixed LanguageTool spellchecker working with newer versions
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2021-04-04 22:30:33 +02:00
TheJackiMonster ad21d5faa5
Fixed finding suggestions using enchant and word selection without external dictionary 2021-02-22 01:13:19 +01:00
TheJackiMonster 12be4c3a3d
Fixed all Python syntax warnings 2021-02-21 23:45:34 +01:00
TheJackiMonster ac8cb3e403
Added support for LanguageTool via 'language_check' as advanced spellchecker 2021-02-19 15:44:38 +01:00
Youness Alaoui d513351162 spellchecker: Add file header to spellchecker.py 2019-04-30 09:54:31 -06:00
Youness Alaoui f9b181ff67 spellchecker: Improve support for symspellpy
Add support for 6.3.8 which has delete_dictionary_entry and do not use gzipped
pickle. Also give higher priority to symspellpy vs pyspellchecker.
List symspellpy dictionaries by order of cached vs non-cached.
symspellpy 6.3.8 is now the minimum version required and add support for showing
that information to the user.
Also add support for spellcheck libraries that are installed but without dicts.
2019-04-30 09:54:31 -06:00
Youness Alaoui e1edccc7d3 spellchecker: Add SymSpellPy support
SymSpell is a great spellchecker which works a lot faster than
pyspellchecker for finding suggestions but is a bit slow at
loading dictionaries (about 15 seconds initially, 2 seconds if
using a cached version).
SymSpell also doesn't come with dictionaries, so the code is currently
using dictionaries from pyspellchecker, so if pyspellchecker isn't
installed, then the user won't see any available dictionaries.
Eventually, would need to have an interface for people to manage
dictionaries for it.
2019-04-30 09:54:31 -06:00
Youness Alaoui e1b063a953 spellchecker: improve custom dictionary support
Improves the custom dictionary support by making it more generic
and moving it to the base class. Also makes PyEnchant uses a custom
PWL (Personal Word List) file within manuskript's resources directory
and made pyspellchecker detect available languages automatically.
2019-04-30 09:54:31 -06:00
Youness Alaoui 20c5586a6c Add support for pyspellchecker as an alternative to PyEnchant
This modifies the Spellchecker abstraction to add a new dictionary support, with
support for pyspellchecker. It also changes the main UI so that multiple libraries
can be supported and dictionaries provided to the user. The custom dictionary of
pyspellchecker has to be handled manually, and the performance and words of this
library isn't on par with PyEnchant, but at least it works with 64 bits.

Fixes #505
2019-04-30 09:54:31 -06:00
Youness Alaoui d0f02cb2a7 Add a Spellchecker abstraction layer and clean up code
This is in preparation for adding support for additional spellchecking libraries
other than PyEnchant which seems to be unmaintained and does not build in
Windows 64 bit.
2019-04-30 09:54:31 -06:00