| Summary: | [PATCH] Fix some of the stuff that the spell checker incorrectly flags as misspelled | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Michael <mdunphy> |
| Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | mdunphy |
| Priority: | NOR | ||
| Version First Reported In: | Git | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/kate/934d5022a10b8d24f473169f2ae282efd858509b | Version Fixed/Implemented In: | 4.11 |
| Sentry Crash Report: | |||
| Attachments: |
Screenshot before
Screenshot after Test case LaTeX code The patch for latex.xml |
||
Created attachment 81516 [details]
Screenshot before
Created attachment 81517 [details]
Screenshot after
Created attachment 81518 [details]
Test case LaTeX code
Created attachment 81519 [details]
The patch for latex.xml
Git commit 89a36fa5eb3e766c7fad7e01f8bf7b213dab6a1c by Dominik Haumann. Committed on 08/08/2013 at 15:49. Pushed by dhaumann into branch 'master'. TeX: avoid spell checking where not wanted Thanks to Michael for the patch! FIXED-IN: 4.11.1 M +44 -0 examples/syntax/highlight.tex M +34 -5 part/syntax/data/latex.xml http://commits.kde.org/kate/89a36fa5eb3e766c7fad7e01f8bf7b213dab6a1c Git commit 934d5022a10b8d24f473169f2ae282efd858509b by Dominik Haumann. Committed on 08/08/2013 at 15:49. Pushed by dhaumann into branch 'KDE/4.11'. TeX: avoid spell checking where not wanted Thanks to Michael for the patch! FIXED-IN: 4.11.1 M +44 -0 examples/syntax/highlight.tex M +34 -5 part/syntax/data/latex.xml http://commits.kde.org/kate/934d5022a10b8d24f473169f2ae282efd858509b |
Hi, The spell checker in Kile (and kate / katepart / kwrite) flags a lot of stuff that should not be flagged, such as arguments to commands like \input{mydata.tex} -- there's no need to spell check "mydata.tex". So, I've hacked at the latex.xml syntax file (newest, from git) a bit to cleanup some of the most obvious ones. The changes are: 1) Add a highlighting rule "Option Text" which is identical to "Normal Text" except spell checking disabled. 2) Add a list of commands with type "SpecialCommand", and their options/parameters are highlighted via "Option Text" 3) Options to type "FancyLabel" are highlighted via "Option Text" 4) Changed the highlighting rule "Comment" to not be spell checked. Thanks to petko / papam2parky for this fix via https://bugs.launchpad.net/ubuntu/+source/kile/+bug/380860/comments/35 See attachments spelling1.png/spelling2.png for some common examples. I doubt this list is exhaustive. However it does make the spell checker considerably less annoying to use as one no longer needs to click "Ignore" dozens of times. Reproducible: Always