Bug 190906 - spelling does not detect latex commands
Summary: spelling does not detect latex commands
Status: RESOLVED FIXED
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-28 12:43 UTC by Sascha Effert
Modified: 2019-06-27 11:57 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Effert 2009-04-28 12:43:23 UTC
Version:           2.1 (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

Using kile 2.1, kde 4.2.2 under ubuntu 9.04 Tools->Spelling... the spell correction does not recordnize latex commands, options or comments and wants to correct them. E.g. \textit is suggested to be replaced.
Comment 1 Darek 2009-05-18 16:39:45 UTC
I can confirm, this bug also applies to me.
Comment 2 Pierre-Francois Laquerre 2009-06-04 12:41:24 UTC
Same problem here (2.0.81 on KDE 4.2.2, kubuntu). Seeing as how Kile is a Latex editor, it's a bit sad that its default spell checker doesn't support Latex markup.
Comment 3 Michel Ludwig 2009-09-17 23:12:21 UTC
Fixed in kdelibs 4.4 with Kile 2.1.
Comment 4 niburu1 2010-07-31 19:28:30 UTC
The fix is not entirely adequate. E.g. \bibliography is not marked as a spelling error but \bibliographystyle, \emph, \lnot, etc. are. It appears there's only a select "few" commands that are being ignored by spell check, but EVERY command should be ignored, i.e. every string of the form '\<command>'. I imagine this is even easier to implement then creating a "blacklist" of commands to ignore which is why it surprises me that this route was not chosen.
Comment 5 Michel Ludwig 2010-07-31 23:18:38 UTC
(In reply to comment #4)
> The fix is not entirely adequate. E.g. \bibliography is not marked as a
> spelling error but \bibliographystyle, \emph, \lnot, etc. are. It appears
> there's only a select "few" commands that are being ignored by spell check,  > but EVERY command should be ignored, i.e. every string of the form
> '\<command>'.I imagine this is even easier to implement then creating a
> "blacklist" of commands to ignore which is why it surprises me that this 
> route was not chosen.

This is exactly what is done.

Please ensure that you are using (at least) KDE 4.4, and that you are using the most recent LaTeX highlighting file (latex.xml). You might also want to delete an old version of it in

  $HOME/.kde/share/apps/katepart/syntax/
Comment 6 niburu1 2010-08-01 00:17:54 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > The fix is not entirely adequate. E.g. \bibliography is not marked as a
> > spelling error but \bibliographystyle, \emph, \lnot, etc. are. It appears
> > there's only a select "few" commands that are being ignored by spell check,  > but EVERY command should be ignored, i.e. every string of the form
> > '\<command>'.I imagine this is even easier to implement then creating a
> > "blacklist" of commands to ignore which is why it surprises me that this 
> > route was not chosen.
> 
> This is exactly what is done.
> 
> Please ensure that you are using (at least) KDE 4.4, and that you are using the
> most recent LaTeX highlighting file (latex.xml). You might also want to delete
> an old version of it in
> 
>   $HOME/.kde/share/apps/katepart/syntax/

Ah, I'm using a custom latex.xml file I saved in my local directory so that I could get syntax highlighting to behave nicely with my dark color scheme. I suppose I might have to remove that to get spell check to work correctly, but whether spell check ignores '\...' strings *should* be independent of the syntax highlighting file. Why is the one dependent on the other?
Comment 7 Michel Ludwig 2010-08-01 13:42:35 UTC
(In reply to comment #6)
> Ah, I'm using a custom latex.xml file I saved in my local directory so that I
> could get syntax highlighting to behave nicely with my dark color scheme. I
> suppose I might have to remove that to get spell check to work correctly, but
> whether spell check ignores '\...' strings *should* be independent of the
> syntax highlighting file. Why is the one dependent on the other?

It's because the highlighting files specify which parts of the document are being spell checked.

If you just want to adjust the colours for highlighting, there is no need to modify the highlighting files themselves. You can set the colours in the configuration dialog (Configure Kile / Editor / Fonts & Colours / Highlighting Text Styles and then choose Markup / LaTeX).
Comment 8 Árpi 2019-06-27 11:57:49 UTC
(In reply to Michel Ludwig from comment #3)
> Fixed in kdelibs 4.4 with Kile 2.1.

I am still experiencing this behaviour in kile 2.9.91 using kde 5.44.0 in kubuntu 18.04.2.