Summary: | spelling does not detect latex commands | ||
---|---|---|---|
Product: | [Applications] kile | Reporter: | Sascha Effert <fermat> |
Component: | general | Assignee: | Michel Ludwig <michel.ludwig> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gdarecki, lukacs.arpad, niburu1, pierre.francois |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Sascha Effert
2009-04-28 12:43:23 UTC
I can confirm, this bug also applies to me. 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. Fixed in kdelibs 4.4 with Kile 2.1. 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. (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/ (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? (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). (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. |