Commit graph

8 commits

Author SHA1 Message Date
Ivailo Monev
88f812efce kdeui: do not call KSpeller::start() from KSpeller::setText()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-10 01:34:27 +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
be5e962187 generic: compiler warning fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-18 04:07:46 +02: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
f381447813 kdeui: add personal words to dictionary when changing it
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-10 02:22:28 +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