Commit graph

5 commits

Author SHA1 Message Date
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