Bug 33857 - [PATCH] Automated spellchecking reqested in kate etc.
Summary: [PATCH] Automated spellchecking reqested in kate etc.
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: part (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 120859 136046 138529 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-18 12:48 UTC by nregnat
Modified: 2010-05-06 01:39 UTC (History)
21 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Use Firefox's inline spell checker (160 bytes, text/html)
2008-10-08 22:33 UTC, Cride5
Details
On-The-Fly Spellcheck v0.1 (53.05 KB, patch)
2009-02-14 11:43 UTC, Michel Ludwig
Details
On-The-Fly Spellcheck v0.11 (53.08 KB, patch)
2009-02-14 17:27 UTC, Michel Ludwig
Details
On-The-Fly Spellcheck v0.12 (58.69 KB, patch)
2009-02-25 12:36 UTC, Michel Ludwig
Details
On-The-Fly Spellcheck v0.13 (74.15 KB, patch)
2009-07-01 10:16 UTC, Michel Ludwig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nregnat 2001-10-18 12:40:39 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kate
Version:           KDE 2.2.1 
Severity:          wishlist
Installed from:    Debian Packages
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: Not Specified

It would be great if you could include a function to automatically check the spelling of a text. Look at StarOffice or Microsoft Word - red waves shows you instantly if you misspelled a word. It is very uncomfortable to do spellchecking manually. Lot's of KDE-programs would benefit from this including kate kmail and so on.

Thanks and keep up the good work

Nikolaus Regnat

(Submitted via bugs.kde.org)
Comment 1 Frans Pop 2004-10-09 15:13:17 UTC
I use kate a lot ATM to write a manual for the Debian Installer in xml/sgml.
It would really be great if kate would add spell checking as-you-type like e.g. kmail does.

Would it be possible to have one or more settings that makes the spell checker ignore text in tags and comments?
Maybe also a configuration option to enable checking as-you-type only for selected file types (based on highlight mode?).

It would also be great if there would be an easy option to change the language for spellchecking without having to change kate's configuration (like the View/Dictionary option in kmail's Composer).

I think spell checking as-you-type is one of the very few missing features in kate.

TIA,
Frans Pop
Comment 2 adham has 2004-12-06 14:48:20 UTC
Is this feature planned for kate in the near future....
Comment 3 Eleonora 2006-01-27 11:30:51 UTC
I also would like this feature. The check boxes ar rather unproductive. If keywords can be colored, I do not see, why wrong words cannot be colored as easyly  as the keywords. The spell checking interface is also there.  Thanks, Eleonora
Comment 4 Anders Lund 2006-01-27 20:15:09 UTC
*** Bug 120859 has been marked as a duplicate of this bug. ***
Comment 5 Vdovin Evgenii 2006-11-02 12:52:29 UTC
There is a duplicate wish 136046 http://bugs.kde.org/show_bug.cgi?id=136046
Comment 6 Dirk Stoecker 2006-11-02 13:08:15 UTC
*** Bug 136046 has been marked as a duplicate of this bug. ***
Comment 7 Eike Welk 2007-01-26 18:03:25 UTC
See related whish 80865
https://bugs.kde.org/show_bug.cgi?id=80865
Comment 8 FiNeX 2007-12-11 14:24:21 UTC
Spell check added on KDE4 version of kate
Comment 9 Kostas Zarogoulidis 2008-02-06 18:05:36 UTC
Is there a plan to add it too for KDE3?
Comment 10 Stefan Endrullis 2008-04-11 16:50:24 UTC
@FiNeX
I'm using the KDE4 version of kate, but I could not find the on-the-fly spell check. I even didn't find anything about it on the web. I rather think that your comment was a joke, right? ;)

If this major feature would be really implemented it would be mentioned on kate's homepage kate-editor.org and on many other websites. But there's nothing about an on-the-fly spell checker.
Comment 11 Stefan Endrullis 2008-08-02 14:29:24 UTC
Well, this issue is about the auto / inline / on-the-fly spell check, because issues like bug 136046 has been marked as duplicates of this bug.

And now it's marked as RESOLVED and FIXED. Thus on-the-fly check has been implemented! Thank you very much! This was one of the most wanted kate features. I suppose most of the kate and kile fans here are already using the feature now.

Could someone tell me how to active it in kate or kile? What's the trick? ;)
Comment 12 Zayed Al-Saidi 2008-08-14 11:24:47 UTC
This feature should be ON by the default (if it really implemented in KDE 4.
1  !!) 
Comment 13 Stefan Endrullis 2008-08-14 12:32:12 UTC
Could someone reopen this issue please because it has been accidentally marked as RESOLVED and FIXED.
Comment 14 Ingomar Wesp 2008-08-25 19:20:26 UTC
Stefan Endrullis wrote:
> Could someone reopen this issue please because it has been accidentally
> marked as RESOLVED and FIXED.

Considering that this bug has quite a few votes, reopening it soon would be a much appreciated move. BTW: Automatic language-detection through Sonnet (if can really do that) would also be a nice feature in that context...
Comment 15 FiNeX 2008-09-28 21:11:19 UTC
Reopened: automatic highlight of wrong words is not implemented yet.

Comment 16 Stefan Endrullis 2008-09-29 08:48:41 UTC
Thanks, FiNeX.
Comment 17 Cride5 2008-10-08 22:33:19 UTC
Created attachment 27749 [details]
Use Firefox's inline spell checker

Been waiting for donkeys years for this ... its just un-hurd of!

In the mean time I'm using Firefox's spell checker with this textarea page.
Comment 18 Dan Beeler 2008-12-14 05:49:31 UTC
Indeed! Most of the time there would be little using in having something powerful like Oo if this were available. rhinocerous <--see! useful!
Comment 19 FiNeX 2008-12-26 14:26:21 UTC
*** Bug 138529 has been marked as a duplicate of this bug. ***
Comment 20 Paweł Prażak 2009-01-30 12:20:14 UTC
I'm not sure if it was suggested already, but I would really love to see this function i kate/kwrite.
And it should also be able to check spelling in source code comments _only_, to not to have whole window red with underlined syntax and function names and stuff, just the comments.
Comment 21 Michel Ludwig 2009-02-01 11:49:52 UTC
Guys, you might be pleased to hear that I've started to work on this...

Currently, there are some performance issues with the arbitrary highlighting that have to be resolved first. But after that basic on-the-fly spell checking should work.

Comment 22 Stefan Endrullis 2009-02-01 14:43:21 UTC
That's great! Thank you very much, Michel.
Comment 23 Michel Ludwig 2009-02-14 11:43:30 UTC
Created attachment 31288 [details]
On-The-Fly Spellcheck v0.1

This is a first version of the on-the-fly spell checking functionality. Please note that it is not finished yet and there is still room for performance improvements.

I just want to see how well it works on other machines. Please try it out!
Comment 24 Michel Ludwig 2009-02-14 17:27:59 UTC
Created attachment 31300 [details]
On-The-Fly Spellcheck v0.11

Fixes a crash at start-up.
Comment 25 Vdovin Evgenii 2009-02-16 07:03:23 UTC
In kate folder on my computer (Ubuntu 8.10, kde4 only) I have the following folders and files:  default.katesession  externaltools  icons  kateui.rc  on-the-fly-spellcheck.patch  pics  plugins  tips . In particular, I have no dialogs, utils, and data folders, so I cannot apply the patch.
Comment 26 Michel Ludwig 2009-02-16 14:56:00 UTC
You would have to download the source files, basically the kdesupport, kdelibs and kdebase (for kwrite) modules.

You can find some instructions here:

http://techbase.kde.org/Getting_Started/Build/KDE4

Then, you would have to apply the patch on the 'kate' subdirectory in kdelibs.
Comment 27 Michel Ludwig 2009-02-25 12:36:33 UTC
Created attachment 31632 [details]
On-The-Fly Spellcheck v0.12

Updated patch which uses less SmartRanges for improved performance.
Comment 28 Karli 2009-06-09 20:56:56 UTC
I also don't know how to apply the patch and I would really really need this feature!

Could somebody explain it step-by-step please, I am not the Linux geek (yet) 
Thank you very much
Comment 29 Karthik Periagaram 2009-06-28 16:12:36 UTC
Is there any reason why this is not in the official packages? I use KWrite pretty heavily and it sucks that it can't point out spelling mistakes as I type. Seeing as how kate/kwrite support plugins, could this not be added as one of the plugins?
Comment 30 spiralofhope 2009-06-28 16:44:06 UTC
> Is there any reason why this is not in the official packages?

Because it's not done yet.

--

Karli, I recommend you ask on a KDE forum for help with patching:
http://forum.kde.org
Comment 31 Michel Ludwig 2009-07-01 10:16:46 UTC
Created attachment 34960 [details]
On-The-Fly Spellcheck v0.13

Ok guys, here is new version with even better performance. In cases when there are lots of mistakes things can still get quite slow, though. I fear that the arbitrary highlighting mechanism in KatePart will have to optimised to remedy this.

Now it is also possible to use the highlighting system to specify which parts of text should be on-the-fly checked. I've introduced a new attribute "spellChecking" for "itemDatas" in the highlighting files. The patch demonstrates this new feature on LaTeX commands, which are no longer on-the-fly checked.

Finally, I'd be really happy if someone could try this whole thing out :). You can find set up and compilation instructions on http://techbase.kde.org. You will need to compile kdelibs (with the patch applied on KatePart) and for example, kwrite from kdebase.
Comment 32 Christoph Cullmann 2009-07-07 19:25:40 UTC
SVN commit 992778 by cullmann:

add patch from Michel Ludwig for on-the-fly spell checking in katepart
seems to work nice, default off
BUG: 33857
still missing: config dialog page should provide way to switch language



 M  +7 -0      CMakeLists.txt  
 M  +2 -0      data/katepartsimpleui.rc  
 M  +2 -0      data/katepartui.rc  
 M  +98 -0     dialogs/katedialogs.cpp  
 M  +41 -0     dialogs/katedialogs.h  
 M  +19 -4     document/katedocument.cpp  
 M  +9 -0      document/katedocument.h  
 M  +2 -2      syntax/data/latex.xml  
 M  +11 -0     syntax/kateextendedattribute.cpp  
 M  +5 -1      syntax/kateextendedattribute.h  
 M  +13 -1     syntax/katehighlight.cpp  
 M  +2 -0      syntax/katehighlight.h  
 M  +25 -0     utils/kateconfig.cpp  
 M  +5 -0      utils/kateconfig.h  
 M  +9 -0      utils/kateglobal.cpp  
 M  +12 -0     utils/kateglobal.h  
 M  +57 -5     view/kateview.cpp  
 M  +22 -0     view/kateview.h  
 M  +4 -0      view/kateviewinternal.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=992778
Comment 33 Mathias Panzenböck 2009-07-07 20:11:53 UTC
Yay! So will this be in KDE 4.3.1 or 4.4.0? (I guess it definitely won't be in 4.3.0.)
Comment 34 Matthew Woehlke 2009-07-08 01:45:15 UTC
> Yay! So will this be in KDE 4.3.1 or 4.4.0? (I guess it definitely won't be in
> 4.3.0.)

From the commit, it's "already" in 4.4.0. Since it is a feature, I don't think policy allows backporting it to 4.3.x, ergo I don't expect it to land there.
Comment 35 Christoph Cullmann 2009-07-08 10:55:38 UTC
It will ship with KDE 4.4.
As a new feature, no backport allowed, anyways, there will be more fixes needed to this feature for 4.4.

If Michel or others want to provide more patches, just drop them on the kwrite-devel list.

Thanks again to Michel for the great work!!!
Comment 36 niburu1 2010-01-10 00:47:01 UTC
Are there any straightforward instructions for installing this patch? I can't find anything on techbase.kde.org as suggested by Michel.
Comment 37 Maciej Pilichowski 2010-01-10 08:56:36 UTC
Simply install latest Kate, it is included.
Comment 38 Dominik Haumann 2010-01-10 14:46:45 UTC
Wait until KDE 4.4 is officially released. This is the easiest way.
Comment 39 Christian Herzberg 2010-05-06 01:39:35 UTC
Thanks for this feature. I'm on KDE SC 4.4.3 now and it works great for me.

Thanks a lot for all efforts
kindest regards