Sublime Text on OSX: Spell Checker Not Learning

I am trying to run spellcheck for ST2 on OSX (10.6.8 and 10.8.5). The built-in solution does a pretty good job, especially for LaTeX files. I see words underlined in red if ST2 thinks they contain a typo. But if I want to “ignore” these words (without highlighting then) and restarting Sublime Text, they are highlighted again (the same thing happens with ST3).

I can’t even find a list of ignored words, and I get the impression that ST seems to “forget” these words. I tried to add the list manually to the settings file Preference.sublime: no effect.

The CheckBounce plugin looks like a promising alternative, although there is no LaTeX support (most commands are highlighted as incorrect).

Any ideas?

+8
sublimetext2 latex spell-checking macos
source share
3 answers

See the ignored_words section below. You need to manually add the words to the settings file. I installed the settings files for the hot keys to have easy access.

/ Users / HOME / Library / Application Support / Sublime Text 2 / Packages / Custom / Settings .sublime-settings

 { "auto_complete_triggers": [ { "characters": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?", "selector": "text.shtml" } ], "color_scheme": "Packages/User/lawlist.tmTheme", "find_selected_text": false, "font_face": "Courier", "font_size": 18.0, "forward_sync": true, "ignored_packages": [ "Vintage" ], "ignored_words": [ "Joinder", "\\bf\\uline", "\\begin{singlespace*}", "\\end{singlespace*}", "\\begin{tightcenter}", "\\end{tightcenter}", "\\begin{document}", "\\end{document}", "quotingsetup", "renewenvironment", "doublespace", "flushright", "minipage", "pagestyle", "uuline", "textbf" ], "inverse_cursor_state": true, "keep_focus": false, "scroll_past_end": true, "show_full_path": true, "word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?" } 
+7
source share

It seems that the ignore_word command in your sublime does not add the word to the ignored_words list. I am currently using ST3 and it has the same problem. So I made a small plugin so that the ignore xxxxx context command adds a word to the ignored_words list in your user preferences.sublime-settings .

Here is the repository: https://github.com/zcold/ignore_words

  • If you use package management, just add a new repository and install a plugin called ignore_words .
  • If you are not using package management, simply create the ignore_words folder in ${sublime}\data\packages\ and copy the ignoreword.py file from the specified repository to this folder.

I hope it solves your problem.

+5
source share

One way to resolve this issue is to manually add the word to the dictionary. Find the .dic file, there you will see a large list of words followed by the word/p [CAT=,G=,N=] format word/p [CAT=,G=,N=] These things after the word are the features of the word (for example, the name itself, female, ...) Find a similar word and copy this part of your entry. Save the file, restart the editor (to reload the dictionary), and you should be good to go :)

0
source share

All Articles