-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
294 lines (294 loc) · 7.49 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
{
"name": "grammar-check",
"main": "./lib/main",
"version": "0.3.1",
"description": "A multilingual grammar checker that dynamically highlights mistakes and proposes a correction",
"author": "Renard Simon",
"keywords": [
"spellchecker",
"grammar",
"orthographic"
],
"activationHooks": [
"core:loaded-shell-environment"
],
"repository": "https://github.com/sirenard/atom-grammar-check",
"license": "MIT",
"engines": {
"atom": ">=1.0.0 <2.0.0"
},
"dependencies": {
"gingerbread": ">=0.6.x",
"async-mutex": ">=0.3.x"
},
"configSchema": {
"usedCorrecter": {
"type": "string",
"default": "ginger",
"description": "Choose which corrector must be used",
"order": 1,
"enum": [
{
"value": "languagetool",
"description": "languagetool"
},
{
"value": "ginger",
"description": "ginger"
}
]
},
"language": {
"type": "string",
"default": "auto",
"description": "Choose which language languagetool will use use",
"order": 2,
"enum": [
{
"value": "auto",
"description": "auto"
},
{
"value": "ar",
"description": "Arabic"
},
{
"value": "ast-ES",
"description": "Asturian"
},
{
"value": "be-BY",
"description": "Belarusian"
},
{
"value": "br-FR",
"description": "Breton"
},
{
"value": "ca-ES",
"description": "Catalan"
},
{
"value": "ca-ES-valencia",
"description": "Catalan (Valencian)"
},
{
"value": "zh-CN",
"description": "Chinese"
},
{
"value": "da-DK",
"description": "Danish"
},
{
"value": "nl",
"description": "Dutch"
},
{
"value": "nl-BE",
"description": "Dutch (Belgium)"
},
{
"value": "en",
"description": "English"
},
{
"value": "en-AU",
"description": "English (Australian)"
},
{
"value": "en-CA",
"description": "English (Canadian)"
},
{
"value": "en-GB",
"description": "English (GB)"
},
{
"value": "en-NZ",
"description": "English (New Zealand)"
},
{
"value": "en-ZA",
"description": "English (South African)"
},
{
"value": "en-US",
"description": "English (US)"
},
{
"value": "eo",
"description": "Esperanto"
},
{
"value": "fr",
"description": "French"
},
{
"value": "gl-ES",
"description": "Galician"
},
{
"value": "de",
"description": "German"
},
{
"value": "de-AT",
"description": "German (Austria)"
},
{
"value": "de-DE",
"description": "German (Germany)"
},
{
"value": "de-CH",
"description": "German (Swiss)"
},
{
"value": "el-GR",
"description": "Greek"
},
{
"value": "ga-IE",
"description": "Irish"
},
{
"value": "it",
"description": "Italian"
},
{
"value": "ja-JP",
"description": "Japanese"
},
{
"value": "km-KH",
"description": "Khmer"
},
{
"value": "nb",
"description": "Norwegian (Bokmål)"
},
{
"value": "fa",
"description": "Persian"
},
{
"value": "pl-PL",
"description": "Polish"
},
{
"value": "pt",
"description": "Portuguese"
},
{
"value": "pt-AO",
"description": "Portuguese (Angola preAO)"
},
{
"value": "pt-BR",
"description": "Portuguese (Brazil)"
},
{
"value": "pt-MZ",
"description": "Portuguese (Moçambique preAO)"
},
{
"value": "pt-PT",
"description": "Portuguese (Portugal)"
},
{
"value": "ro-RO",
"description": "Romanian"
},
{
"value": "ru-RU",
"description": "Russian"
},
{
"value": "de-DE-x-simple-language",
"description": "Simple German"
},
{
"value": "sk-SK",
"description": "Slovak"
},
{
"value": "sl-SI",
"description": "Slovenian"
},
{
"value": "es",
"description": "Spanish"
},
{
"value": "es-AR",
"description": "Spanish (voseo)"
},
{
"value": "sv",
"description": "Swedish"
},
{
"value": "tl-PH",
"description": "Tagalog"
},
{
"value": "ta-IN",
"description": "Tamil"
},
{
"value": "uk-UA",
"description": "Ukrainian"
}
]
},
"languagetoolUrl": {
"type": "string",
"default": "http://localhost:8081",
"description": "URL of the language tool server. It's better to have a local language tool server ([see here](https://dev.languagetool.org/http-server.html)) due to the big amount of requests",
"order": 3
},
"excludedScopes": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"meta.reference.latex",
"string.other.math.tex",
"variable.parameter.*",
"keyword.*",
"support.*",
"meta.function.environment.*",
"punctuation.*",
"markup.raw.verbatim.latex"
],
"description": "List of sub-scopes that will be ignored. The scopes will be parsed as regular expressions.",
"order": 4
},
"includedScopes": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"text.tex.latex",
".*comment.*"
],
"description": "List of sub-scopes that are allowed to be checked. The scopes will be parsed as regular expressions.",
"order": 5
},
"languageToolStartServerCommand": {
"type": "string",
"default": "java -cp ./LanguageTool-5.5/languagetool-server.jar org.languagetool.server.HTTPServer --port 8081",
"description": "If a local server is used, this command will be executed at startup to start the server more information on local server [here](https://dev.languagetool.org/http-server.html).",
"order": 6
},
"languageToolStopServerCommand": {
"type": "string",
"default": "myCommand=\"java -cp ./LanguageTool-5.5/languagetool-server.jar org.languagetool.server.HTTPServer --port 8081\";ps -ax | grep \"$myCommand\" | while read -r line; do kill $(echo $line | cut -d ' ' -f1) 2> /dev/null; done",
"description": "If a local server is used, this command will be executed when the package is deactivated. The default value works on linux, you just have to change on the first instruction the variable `myCommand` and set it with the command that you execute to start the server. The command looks for the process and kill it ",
"order": 7
}
}
}