You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Here are additional details for debugging for working with the library.
2
+
3
+
## Plugins
4
+
5
+
_Spell Check_ allows for plugins to provide additional spell checking functionality. See the `PLUGINS.md` file in the repository on how to write a plugin.
6
+
7
+
## Debugging
8
+
9
+
Debugging messages for this library can be enabled by going into the developer console and running the following:
Copy file name to clipboardExpand all lines: README.md
+40-7Lines changed: 40 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,25 @@ To enable _Spell Check_ for your current file type: put your cursor in the file,
20
20
21
21
## Changing the dictionary
22
22
23
-
To change the language of the dictionary, set the "Locales" configuration option to the IETF tag (en-US, fr-FR, etc). More than one language can be used, simply separate them by commas.
23
+
Except for Mac, Atom needs to know what language to use to perform spell-checking. To list these, set the "Locales" configuration option to the IETF tag (en-US, fr-FR, etc). More than one language can be used, simply separate them by commas.
24
+
25
+
If no locale is given, then Atom will attempt to infer the language based on environment variables and settings.
26
+
27
+
If any value is given for the "Locales", then Atom will not automatically add the browser language. So, if your browser is United States English (`en-US`), leaving this blank will still do US English checking. However, if it the "Locales" is set to French (`fr-FR`), then the checker will only check French. If the "Locales" is set to `en-US, fr-FR`, then both languages will be checked.
24
28
25
29
### Missing Languages
26
30
27
31
This plugin uses the existing system dictionaries. If a locale is selected that is not installed, a warning will pop up when a document that would be spell-checked is loaded. To disable this, either remove the incorrect language from the "Locales" configuration or clear the check on "Use Locales" to disable it entirely.
28
32
29
33
To get the search paths used to look for a dictionary, make sure the "Notices Mode" is set to "console" or "both", then reload Atom. The developer's console will have the directory list.
30
34
31
-
#### Windows 8 and Higher
35
+
## Mac
36
+
37
+
On the Mac, checking "Use System" will use the operating system's spellchecking library. This uses all of the user's loaded dictionaries and doesn't require any customization within Atom.
38
+
39
+
Checking "Use Locales" and providing locales would use Hunspell as additional dictionaries. Having "Use Locales" checked but no locales given will do nothing.
40
+
41
+
## Windows 8 and Higher
32
42
33
43
For Windows 8 and 10, this package uses the Windows spell checker, so you must install the language using the regional settings before the language can be chosen inside Atom.
34
44
@@ -40,11 +50,13 @@ If your Windows user does not have Administration privileges, you'll need to do
40
50
41
51

42
52
43
-
Once the additional language is added, Atom will need to be restarted.
53
+
Once the additional language is added, Atom will need to be restarted and configured to use it. Add the IEFT tag into the "Locales" setting for the language to be set.
54
+
55
+
If a Hunspell dictionary is found on a path (see below), it will be used in favor of the Windows API.
44
56
45
-
*Previously, setting `SPELLCHECKER_PREFER_HUNSPELL` environment variable would change how checking works. Now this is controlled by the system and locale checker to use the operating system version or Hunspell respectively.*
57
+
## Linux
46
58
47
-
If locale is not set, Atom will attempt to use the current locale from the environment variable; if that is missing, `en-US` will be used. The dictionary for `en-US` is shipping with Atom but all other locale-based checkers will need to be downloaded from another source.
59
+
For all Linux-based operating systems, "Use System" does nothing. It can remained checked but has no impact. "Use Locales" is required for spell-checking.
For all platforms, a Hunspell-compatible dictionary is also supported. To use this, a `.dic` and `.aff` need to be located in one of the default search directories or in a directory entered into "Locale paths" (multiples may be entered with commas separating them). If the appropriate files are found for the locale and "Use Locales" is checked, then the dictionary will be used.
104
+
105
+
For example, if the following is set, then `/usr/share/hunspell/en_US.dic` will be used:
106
+
107
+
- Use Locales: checked
108
+
- Locales: `en-US`
109
+
- Locale Paths: `/usr/share/hunspell`
110
+
111
+
If "Locales" is not provided, then the user's current language will be inferred from environmental settings.
112
+
113
+
In addition to what is provided, the following paths are checked:
114
+
115
+
-`/usr/share/hunspell` (Linux only)
116
+
-`/usr/share/myspell` (Linux only)
117
+
-`/usr/share/myspell/dicts` (Linux only)
118
+
-`/` (Mac only)
119
+
-`/System/Library/Spelling` (Mac only)
120
+
-`C:\` (Windows only)
121
+
122
+
Dictionaries can be downloaded from various sites (such as [wooorm's repository](https://github.com/wooorm/dictionaries) or [LibreOffice's](https://github.com/LibreOffice/dictionaries)), but the file has to be renamed `locale.dic` and `locale.aff`.
90
123
91
-
_Spell Check_ allows for plugins to provide additional spell checking functionality. See the `PLUGINS.md` file in the repository on how to write a plugin.
124
+
*Example locations to download are not an endorsement.*
0 commit comments