Commit graph

8 commits

Author SHA1 Message Date
Ivailo Monev
2b45ac1a73 kdeui: fix spell check of words at ends
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-11 14:39:22 +03:00
Ivailo Monev
7d571cb02a kdeui: rehightlight after changing current KSpellHighlighter lananguage
this can be done by callers but is not, makes changing of language from the
plasma spellcheck applet take effect for example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-10 00:05:43 +03:00
Ivailo Monev
802b68d0a3 kdeui: KSpeller and KSpellHighlighter optimization
2x to 3x faster on practical test cases

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-07 18:46:21 +03:00
Ivailo Monev
044df213ec kdeui: check the word size in KSpeller::start() and KSpellHighlighter::highlightBlock() when chopping punctuation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-13 20:16:35 +03:00
Ivailo Monev
01107bb214 kdeui: remove whitespace at the start and end of word from the spelling classes
for when the icu boundary finder gets it wrong

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-13 00:39:42 +03:00
Ivailo Monev
2a8c7a06e2 kdeui: merge KSpellBackgroundChecker into KSpeller
it is actually faster to no do it in a thread for the use case of Kate
because too many threads may be created

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-10 11:31:16 +03:00
Ivailo Monev
38d645d132 kdeui: use the same char format as Kate in KSpellHighlighter
something that was not done by the previous implementation

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-10 01:23:08 +03:00
Ivailo Monev
7f7eb09b35 kdeui: spelling classes reimplementation
not leaking enchant dictionaries, simpler implementation and its not
spread across 2 libraries (kdecore and kdeui)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-09 20:45:52 +03:00